public class SipRequest extends SipMessage implements javax.servlet.sip.SipServletRequest
_characterEncoding, _fields, _method, _session, _sipMethod| Constructor and Description |
|---|
SipRequest() |
SipRequest(SipRequest other) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthHeader(javax.servlet.sip.SipServletResponse response,
javax.servlet.sip.AuthInfo authInfo) |
void |
addAuthHeader(javax.servlet.sip.SipServletResponse response,
java.lang.String username,
java.lang.String password) |
void |
addRecordRoute(javax.servlet.sip.Address route) |
protected boolean |
canSetContact() |
javax.servlet.sip.SipServletRequest |
createCancel() |
SipRequest |
createRequest(SipMethod method) |
javax.servlet.sip.SipServletResponse |
createResponse(int status) |
javax.servlet.sip.SipServletResponse |
createResponse(int status,
java.lang.String reason) |
javax.servlet.AsyncContext |
getAsyncContext() |
javax.servlet.sip.B2buaHelper |
getB2buaHelper() |
javax.servlet.DispatcherType |
getDispatcherType() |
java.util.ListIterator<Hop> |
getHops() |
javax.servlet.sip.Address |
getInitialPoppedRoute() |
javax.servlet.ServletInputStream |
getInputStream() |
SipRequest |
getLinkedRequest() |
java.util.Locale |
getLocale() |
java.util.Enumeration<java.util.Locale> |
getLocales() |
java.lang.String |
getLocalName() |
int |
getMaxForwards() |
java.lang.String |
getMethod() |
java.lang.String |
getParameter(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String[]> |
getParameterMap() |
java.util.Enumeration<java.lang.String> |
getParameterNames() |
java.lang.String[] |
getParameterValues(java.lang.String name) |
javax.servlet.sip.SipURI |
getParamUri() |
javax.servlet.sip.Address |
getPoppedRoute() |
javax.servlet.sip.Proxy |
getProxy() |
javax.servlet.sip.Proxy |
getProxy(boolean create) |
RAck |
getRAck() |
java.io.BufferedReader |
getReader() |
java.lang.String |
getRealPath(java.lang.String path) |
javax.servlet.sip.ar.SipApplicationRoutingRegion |
getRegion() |
java.lang.String |
getRemoteHost() |
javax.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String path) |
javax.servlet.sip.URI |
getRequestURI() |
javax.servlet.sip.ar.SipApplicationRoutingDirective |
getRoutingDirective() |
java.lang.String |
getScheme() |
java.lang.String |
getServerName() |
int |
getServerPort() |
javax.servlet.ServletContext |
getServletContext() |
java.io.Serializable |
getStateInfo() |
javax.servlet.sip.URI |
getSubscriberURI() |
javax.servlet.sip.Address |
getTopRoute() |
Transaction |
getTransaction() |
boolean |
isAsyncStarted() |
boolean |
isAsyncSupported() |
boolean |
isHandled() |
boolean |
isInitial() |
boolean |
isNextHopStrictRouting() |
boolean |
isRequest() |
static boolean |
isStrictRoutingEnabled() |
boolean |
needsContact() |
void |
pushPath(javax.servlet.sip.Address arg0) |
void |
pushRoute(javax.servlet.sip.Address route) |
void |
pushRoute(javax.servlet.sip.SipURI route) |
javax.servlet.sip.Address |
removeLastRoute() |
javax.servlet.sip.Address |
removeTopRoute() |
void |
send() |
void |
setHandled(boolean handled) |
void |
setHops(java.util.ListIterator<Hop> hops) |
void |
setInitialPoppedRoute(javax.servlet.sip.Address route) |
void |
setLinkedRequest(SipRequest request) |
void |
setMaxForwards(int maxForwards) |
void |
setMethod(SipMethod sipMethod,
java.lang.String method) |
void |
setNextHopStrinctRouting(boolean nextHopStrictRouting) |
void |
setPoppedRoute(javax.servlet.sip.Address route) |
void |
setProxy(javax.servlet.sip.Proxy proxy) |
void |
setRegion(javax.servlet.sip.ar.SipApplicationRoutingRegion region) |
void |
setRequestURI(javax.servlet.sip.URI uri) |
void |
setRoutingDirective(javax.servlet.sip.ar.SipApplicationRoutingDirective directive,
javax.servlet.sip.SipServletRequest origRequest) |
void |
setStateInfo(java.io.Serializable stateInfo) |
static void |
setStrictRoutingEnabled(boolean strictRoutingEnabled) |
void |
setSubscriberURI(javax.servlet.sip.URI uri) |
void |
setTransaction(Transaction transaction) |
javax.servlet.AsyncContext |
startAsync() |
javax.servlet.AsyncContext |
startAsync(javax.servlet.ServletRequest arg0,
javax.servlet.ServletResponse arg1) |
java.lang.String |
toString() |
java.lang.String |
toStringCompact() |
addAcceptLanguage, addAddressHeader, addHeader, addParameterableHeader, appSession, from, getAcceptLanguage, getAcceptLanguages, getAddressHeader, getAddressHeaders, getApplicationSession, getApplicationSession, getAttribute, getAttributeNames, getCallId, getCharacterEncoding, getConnection, getContent, getContentLanguage, getContentLength, getContentLengthLong, getContentType, getCSeq, getExpires, getFields, getFrom, getHandler, getHeader, getHeaderForm, getHeaderNames, getHeaders, getInitialRemoteAddr, getInitialRemotePort, getInitialTransport, getLocalAddr, getLocalPort, getParameterableHeader, getParameterableHeaders, getProtocol, getRawContent, getRemoteAddr, getRemotePort, getRemoteUser, getSession, getSession, getSipMethod, getTimeStamp, getTo, getTopVia, getToTag, getTransport, getUserIdentity, getUserPrincipal, isAck, isBye, isCancel, isCommitted, isInvite, isMethod, isNotify, isPrack, isRegister, isSecure, isSubscribe, isSystemHeader, isUpdate, isUserInRole, removeAttribute, removeHeader, removeTopVia, session, setAcceptLanguage, setAddressHeader, setAttribute, setCharacterEncoding, setCommitted, setConnection, setContent, setContentLanguage, setContentLength, setContentType, setExpires, setHandler, setHeader, setHeaderForm, setInitialRemoteAddr, setInitialRemotePort, setInitialTransport, setParameterableHeader, setSession, setTimeStamp, setUserIdentity, toclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getLocalAddr, getLocalPort, getProtocol, getRemoteAddr, getRemotePort, isSecure, removeAttribute, setAttribute, setCharacterEncodingaddAcceptLanguage, addAddressHeader, addHeader, addParameterableHeader, getAcceptLanguage, getAcceptLanguages, getAddressHeader, getAddressHeaders, getApplicationSession, getApplicationSession, getAttribute, getAttributeNames, getCallId, getCharacterEncoding, getContent, getContentLanguage, getContentLength, getContentType, getExpires, getFrom, getHeader, getHeaderForm, getHeaderNames, getHeaders, getInitialRemoteAddr, getInitialRemotePort, getInitialTransport, getLocalAddr, getLocalPort, getParameterableHeader, getParameterableHeaders, getProtocol, getRawContent, getRemoteAddr, getRemotePort, getRemoteUser, getSession, getSession, getTo, getTransport, getUserPrincipal, isCommitted, isSecure, isUserInRole, removeAttribute, removeHeader, setAcceptLanguage, setAddressHeader, setAttribute, setCharacterEncoding, setContent, setContentLanguage, setContentLength, setContentType, setExpires, setHeader, setHeaderForm, setParameterableHeaderpublic SipRequest()
public SipRequest(SipRequest other)
public boolean isRequest()
isRequest in class SipMessagepublic void setMethod(SipMethod sipMethod, java.lang.String method)
public java.lang.String getMethod()
getMethod in interface javax.servlet.sip.SipServletMessageSipServletMessage.getMethod()public void setTransaction(Transaction transaction)
public Transaction getTransaction()
getTransaction in class SipMessageprotected boolean canSetContact()
canSetContact in class SipMessagepublic void send()
throws java.io.IOException
send in interface javax.servlet.sip.SipServletMessagesend in interface javax.servlet.sip.SipServletRequestjava.io.IOExceptionSipServletRequest.send()public javax.servlet.sip.Address getTopRoute()
throws javax.servlet.sip.ServletParseException
javax.servlet.sip.ServletParseExceptionpublic javax.servlet.sip.Address removeTopRoute()
public void setPoppedRoute(javax.servlet.sip.Address route)
public void addRecordRoute(javax.servlet.sip.Address route)
public javax.servlet.sip.SipServletRequest createCancel()
createCancel in interface javax.servlet.sip.SipServletRequestpublic SipRequest createRequest(SipMethod method)
public javax.servlet.sip.SipServletResponse createResponse(int status)
createResponse in interface javax.servlet.sip.SipServletRequestSipServletRequest.createResponse(int)public javax.servlet.sip.SipServletResponse createResponse(int status,
java.lang.String reason)
createResponse in interface javax.servlet.sip.SipServletRequestSipServletRequest.createResponse(int, String)public boolean needsContact()
needsContact in class SipMessagepublic javax.servlet.sip.SipURI getParamUri()
public java.lang.String getParameter(java.lang.String name)
getParameter in interface javax.servlet.ServletRequestpublic java.util.Enumeration<java.lang.String> getParameterNames()
getParameterNames in interface javax.servlet.ServletRequestpublic java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues in interface javax.servlet.ServletRequestpublic java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameterMap in interface javax.servlet.ServletRequestpublic java.lang.String getScheme()
getScheme in interface javax.servlet.ServletRequestpublic java.lang.String getServerName()
getServerName in interface javax.servlet.ServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestServletRequest.getServerPort()public java.lang.String getRemoteHost()
getRemoteHost in interface javax.servlet.ServletRequestServletRequest.getRemoteHost()public java.util.Locale getLocale()
getLocale in interface javax.servlet.ServletRequestpublic java.util.Enumeration<java.util.Locale> getLocales()
getLocales in interface javax.servlet.ServletRequestpublic RAck getRAck() throws javax.servlet.sip.ServletParseException
javax.servlet.sip.ServletParseExceptionpublic javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
getRequestDispatcher in interface javax.servlet.ServletRequestpublic java.lang.String getRealPath(java.lang.String path)
getRealPath in interface javax.servlet.ServletRequestpublic java.lang.String getLocalName()
getLocalName in interface javax.servlet.ServletRequestpublic void addAuthHeader(javax.servlet.sip.SipServletResponse response,
javax.servlet.sip.AuthInfo authInfo)
addAuthHeader in interface javax.servlet.sip.SipServletRequestpublic void addAuthHeader(javax.servlet.sip.SipServletResponse response,
java.lang.String username,
java.lang.String password)
addAuthHeader in interface javax.servlet.sip.SipServletRequestpublic javax.servlet.sip.B2buaHelper getB2buaHelper()
getB2buaHelper in interface javax.servlet.sip.SipServletRequestpublic javax.servlet.sip.Address getInitialPoppedRoute()
getInitialPoppedRoute in interface javax.servlet.sip.SipServletRequestpublic void setInitialPoppedRoute(javax.servlet.sip.Address route)
public javax.servlet.ServletInputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.servlet.ServletRequestgetInputStream in interface javax.servlet.sip.SipServletRequestjava.io.IOExceptionpublic int getMaxForwards()
getMaxForwards in interface javax.servlet.sip.SipServletRequestpublic javax.servlet.sip.Address getPoppedRoute()
getPoppedRoute in interface javax.servlet.sip.SipServletRequestpublic javax.servlet.sip.Proxy getProxy()
throws javax.servlet.sip.TooManyHopsException
getProxy in interface javax.servlet.sip.SipServletRequestjavax.servlet.sip.TooManyHopsExceptionpublic javax.servlet.sip.Proxy getProxy(boolean create)
throws javax.servlet.sip.TooManyHopsException
getProxy in interface javax.servlet.sip.SipServletRequestjavax.servlet.sip.TooManyHopsExceptionpublic void setProxy(javax.servlet.sip.Proxy proxy)
public java.io.BufferedReader getReader()
throws java.io.IOException
getReader in interface javax.servlet.ServletRequestgetReader in interface javax.servlet.sip.SipServletRequestjava.io.IOExceptionpublic javax.servlet.sip.ar.SipApplicationRoutingRegion getRegion()
getRegion in interface javax.servlet.sip.SipServletRequestpublic javax.servlet.sip.URI getRequestURI()
getRequestURI in interface javax.servlet.sip.SipServletRequestpublic javax.servlet.sip.ar.SipApplicationRoutingDirective getRoutingDirective()
throws java.lang.IllegalStateException
getRoutingDirective in interface javax.servlet.sip.SipServletRequestjava.lang.IllegalStateExceptionpublic void setRoutingDirective(javax.servlet.sip.ar.SipApplicationRoutingDirective directive,
javax.servlet.sip.SipServletRequest origRequest)
throws java.lang.IllegalStateException
setRoutingDirective in interface javax.servlet.sip.SipServletRequestjava.lang.IllegalStateExceptionpublic javax.servlet.sip.URI getSubscriberURI()
getSubscriberURI in interface javax.servlet.sip.SipServletRequestpublic boolean isInitial()
isInitial in interface javax.servlet.sip.SipServletRequestpublic void pushPath(javax.servlet.sip.Address arg0)
pushPath in interface javax.servlet.sip.SipServletRequestpublic void pushRoute(javax.servlet.sip.SipURI route)
pushRoute in interface javax.servlet.sip.SipServletRequestpublic void pushRoute(javax.servlet.sip.Address route)
pushRoute in interface javax.servlet.sip.SipServletRequestpublic javax.servlet.sip.Address removeLastRoute()
public void setNextHopStrinctRouting(boolean nextHopStrictRouting)
public boolean isNextHopStrictRouting()
public void setMaxForwards(int maxForwards)
setMaxForwards in interface javax.servlet.sip.SipServletRequestpublic void setRequestURI(javax.servlet.sip.URI uri)
setRequestURI in interface javax.servlet.sip.SipServletRequestpublic javax.servlet.AsyncContext getAsyncContext()
getAsyncContext in interface javax.servlet.ServletRequestpublic javax.servlet.DispatcherType getDispatcherType()
getDispatcherType in interface javax.servlet.ServletRequestpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletRequestpublic boolean isAsyncStarted()
isAsyncStarted in interface javax.servlet.ServletRequestpublic boolean isAsyncSupported()
isAsyncSupported in interface javax.servlet.ServletRequestpublic javax.servlet.AsyncContext startAsync()
throws java.lang.IllegalStateException
startAsync in interface javax.servlet.ServletRequestjava.lang.IllegalStateExceptionpublic javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest arg0,
javax.servlet.ServletResponse arg1)
throws java.lang.IllegalStateException
startAsync in interface javax.servlet.ServletRequestjava.lang.IllegalStateExceptionpublic SipRequest getLinkedRequest()
public void setLinkedRequest(SipRequest request)
public java.io.Serializable getStateInfo()
public void setStateInfo(java.io.Serializable stateInfo)
public void setRegion(javax.servlet.sip.ar.SipApplicationRoutingRegion region)
public void setSubscriberURI(javax.servlet.sip.URI uri)
public boolean isHandled()
public void setHandled(boolean handled)
public java.util.ListIterator<Hop> getHops()
public void setHops(java.util.ListIterator<Hop> hops)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringCompact()
toStringCompact in class SipMessagepublic static boolean isStrictRoutingEnabled()
public static void setStrictRoutingEnabled(boolean strictRoutingEnabled)
Copyright © 2015. All Rights Reserved.