public abstract class SipServletRequestImpl extends SipServletMessageImpl implements MobicentsSipServletRequest
SipServletMessage.HeaderForm| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
NON_INITIAL_SIP_REQUEST_METHODS |
static String |
STALE |
attributes, currentApplicationName, dialog, headerForm, isMessageSent, message, method, REL100_OPTION_TAG, sessionKey, sipFactoryImpl, sipSession, transactionApplicationData, transport, userPrincipal| Modifier | Constructor and Description |
|---|---|
|
SipServletRequestImpl() |
protected |
SipServletRequestImpl(javax.sip.message.Request request,
SipFactoryImpl sipFactoryImpl,
MobicentsSipSession sipSession,
javax.sip.Transaction transaction,
javax.sip.Dialog dialog,
boolean createDialog) |
addHeaderInternal, containsRel100, countChars, createParameterable, equals, getAcceptLanguage, getAcceptLanguages, getAddressHeader, getAddressHeaders, getApplicationSession, getApplicationSession, getAppSessionId, getAttribute, getAttributeMap, getAttributeNames, getCallId, getCharacterEncoding, getCompactName, getContent, getContentLanguage, getContentLength, getContentType, getCorrectHeaderName, getCorrectHeaderName, getCurrentApplicationName, getDialog, getExpires, getFrom, getFullHeaderName, getHeader, getHeaderForm, getHeaderNames, getHeaders, getLocalAddr, getLocalPort, getMessage, getMethod, getParameterableHeader, getParameterableHeaders, getProtocol, getRawContent, getRemoteAddr, getRemotePort, getRemoteUser, getSession, getSession, getSipApplicationSession, getSipSession, getSipSessionKey, getTo, getTransaction, getTransactionApplicationData, getTransport, getUserPrincipal, hashCode, isAddressTypeHeader, isMessageSent, isOrphan, isParameterable, isSecure, isSystemHeader, isSystemHeaderAndNotGruu, isSystemHeaderAndNotGruu, isUserInRole, removeHeaderInternal, setAppSessionId, setAttributeMap, setContentLength, setCurrentApplicationName, setHeaderInternal, setOrphan, setSipSession, setSipSessionKey, setTransaction, setTransport, setUserPrincipal, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetUserPrincipal, setUserPrincipalgetMessage, getSipApplicationSession, getSipSession, getTransaction, getTransactionApplicationData, isMessageSent, setSipSession, setTransactionisOrphan, setOrphangetAcceptLanguage, getAcceptLanguages, getAddressHeader, getAddressHeaders, getApplicationSession, getApplicationSession, getAttribute, getAttributeNames, getCallId, getCharacterEncoding, getContent, getContentLanguage, getContentLength, getContentType, getExpires, getFrom, getHeader, getHeaderForm, getHeaderNames, getHeaders, getLocalAddr, getLocalPort, getMethod, getParameterableHeader, getParameterableHeaders, getProtocol, getRawContent, getRemoteAddr, getRemotePort, getRemoteUser, getSession, getSession, getTo, getTransport, isSecure, isUserInRole, setContentLengthgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getLocalAddr, getLocalPort, getParameterMap, getProtocol, getRemoteAddr, getRemotePort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, startAsync, startAsyncpublic static final String STALE
public SipServletRequestImpl()
protected SipServletRequestImpl(javax.sip.message.Request request,
SipFactoryImpl sipFactoryImpl,
MobicentsSipSession sipSession,
javax.sip.Transaction transaction,
javax.sip.Dialog dialog,
boolean createDialog)
public AddressImpl.ModifiableRule getModifiableRule(String headerName)
SipServletMessageImplgetModifiableRule in class SipServletMessageImplheaderName - -
either long or compact header namepublic SipServletRequest createCancel()
createCancel in interface SipServletRequestpublic SipServletResponse createResponse(int statusCode)
createResponse in interface SipServletRequestpublic SipServletResponse createResponse(int statusCode, String reasonPhrase)
createResponse in interface SipServletRequestpublic SipServletResponse createResponse(int statusCode, String reasonPhrase, boolean validate, boolean hasBeenReceived)
public B2buaHelper getB2buaHelper()
getB2buaHelper in interface SipServletRequestpublic javax.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream in interface javax.servlet.ServletRequestgetInputStream in interface SipServletRequestIOExceptionpublic int getMaxForwards()
getMaxForwards in interface SipServletRequestpublic Address getPoppedRoute()
getPoppedRoute in interface SipServletRequestpublic javax.sip.header.RouteHeader getPoppedRouteHeader()
public void setPoppedRoute(javax.sip.header.RouteHeader routeHeader)
routeHeader - the popped route header to setpublic Proxy getProxy() throws TooManyHopsException
getProxy in interface SipServletRequestTooManyHopsExceptionpublic Proxy getProxy(boolean create) throws TooManyHopsException
getProxy in interface SipServletRequestTooManyHopsExceptionpublic BufferedReader getReader() throws IOException
getReader in interface javax.servlet.ServletRequestgetReader in interface SipServletRequestIOExceptionpublic URI getRequestURI()
getRequestURI in interface SipServletRequestpublic boolean isInitial()
isInitial in interface SipServletRequestpublic boolean isCommitted()
isCommitted in interface SipServletMessageprotected void checkMessageState()
checkMessageState in class SipServletMessageImplpublic void pushPath(Address uri)
pushPath in interface SipServletRequestpublic void pushRoute(Address address)
pushRoute in interface SipServletRequestpublic void pushRoute(SipURI uri)
pushRoute in interface SipServletRequestpublic void setMaxForwards(int n)
setMaxForwards in interface SipServletRequestpublic void setRequestURI(URI uri)
setRequestURI in interface SipServletRequestpublic void setRoutingDirective(SipApplicationRoutingDirective directive, SipServletRequest origRequest) throws IllegalStateException
setRoutingDirective in interface SipServletRequestIllegalStateExceptionpublic String getLocalName()
getLocalName in interface javax.servlet.ServletRequestpublic Locale getLocale()
getLocale in interface javax.servlet.ServletRequestpublic Enumeration<Locale> getLocales()
getLocales in interface javax.servlet.ServletRequestpublic String getParameter(String name)
getParameter in interface javax.servlet.ServletRequestpublic Enumeration<String> getParameterNames()
getParameterNames in interface javax.servlet.ServletRequestpublic String[] getParameterValues(String name)
getParameterValues in interface javax.servlet.ServletRequestpublic String getRealPath(String arg0)
getRealPath in interface javax.servlet.ServletRequestpublic String getRemoteHost()
getRemoteHost in interface javax.servlet.ServletRequestpublic javax.servlet.RequestDispatcher getRequestDispatcher(String handler)
getRequestDispatcher in interface javax.servlet.ServletRequestpublic String getScheme()
getScheme in interface javax.servlet.ServletRequestpublic String getServerName()
getServerName in interface javax.servlet.ServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestpublic SipApplicationRoutingDirective getRoutingDirective()
getRoutingDirective in interface SipServletRequestpublic void send()
throws IOException
send in interface SipServletMessagesend in interface SipServletRequestsend in class SipServletMessageImplIOExceptionpublic void send(javax.sip.address.Hop hop)
throws IOException
IOExceptionpublic boolean visitNextHop()
public void setLinkedRequest(SipServletRequestImpl linkedRequest)
public SipServletRequestImpl getLinkedRequest()
public RoutingState getRoutingState()
public void setRoutingState(RoutingState routingState) throws IllegalStateException
routingState - the routingState to setIllegalStateExceptionpublic void addAuthHeader(SipServletResponse challengeResponse, AuthInfo authInfo)
addAuthHeader in interface SipServletRequestpublic void addAuthHeader(SipServletResponse challengeResponse, String username, String password)
addAuthHeader in interface SipServletRequestpublic void addAuthHeader(SipServletResponse challengeResponse, AuthInfo authInfo, boolean cacheCredentials)
addAuthHeader in interface SipServletRequestExtpublic void addAuthHeader(SipServletResponse challengeResponse, String username, String password, boolean cacheCredentials)
addAuthHeader in interface SipServletRequestExtprotected void removeStaleAuthHeaders(javax.sip.header.WWWAuthenticateHeader responseAuthHeader)
public SipServletResponse getLastFinalResponse()
public void setResponse(SipServletResponseImpl response)
response - the finalResponse to setpublic Address getInitialPoppedRoute()
getInitialPoppedRoute in interface SipServletRequestpublic SipApplicationRoutingRegion getRegion()
getRegion in interface SipServletRequestpublic void setRoutingRegion(SipApplicationRoutingRegion routingRegion)
routingRegion - the region that the application is inpublic URI getSubscriberURI()
getSubscriberURI in interface SipServletRequestpublic void setSubscriberURI(URI uri)
public boolean is1xxResponseGenerated()
public boolean isFinalResponseGenerated()
public SipServletResponse getLastInformationalResponse()
public void setReadOnly(boolean isReadOnly)
setReadOnly in interface MobicentsSipServletRequestprotected void checkReadOnly()
public void addAcceptLanguage(Locale locale)
addAcceptLanguage in interface SipServletMessageaddAcceptLanguage in class SipServletMessageImplpublic void addAddressHeader(String name, Address addr, boolean first) throws IllegalArgumentException
addAddressHeader in interface SipServletMessageaddAddressHeader in class SipServletMessageImplIllegalArgumentExceptionpublic void addHeader(String name, String value)
addHeader in interface SipServletMessageaddHeader in class SipServletMessageImplpublic void addParameterableHeader(String name, Parameterable param, boolean first)
addParameterableHeader in interface SipServletMessageaddParameterableHeader in class SipServletMessageImplpublic void removeAttribute(String name)
removeAttribute in interface javax.servlet.ServletRequestremoveAttribute in interface SipServletMessageremoveAttribute in class SipServletMessageImplpublic void removeHeader(String name)
removeHeader in interface SipServletMessageremoveHeader in class SipServletMessageImplpublic void setAcceptLanguage(Locale locale)
setAcceptLanguage in interface SipServletMessagesetAcceptLanguage in class SipServletMessageImplpublic void setAddressHeader(String name, Address addr)
setAddressHeader in interface SipServletMessagesetAddressHeader in class SipServletMessageImplpublic void setAttribute(String name, Object o)
setAttribute in interface javax.servlet.ServletRequestsetAttribute in interface SipServletMessagesetAttribute in class SipServletMessageImplpublic void setCharacterEncoding(String enc) throws UnsupportedEncodingException
setCharacterEncoding in interface javax.servlet.ServletRequestsetCharacterEncoding in interface SipServletMessagesetCharacterEncoding in class SipServletMessageImplUnsupportedEncodingExceptionpublic void setContent(Object content, String contentType) throws UnsupportedEncodingException
setContent in interface SipServletMessagesetContent in class SipServletMessageImplUnsupportedEncodingExceptionpublic void setContentLanguage(Locale locale)
setContentLanguage in interface SipServletMessagesetContentLanguage in class SipServletMessageImplpublic void setContentType(String type)
setContentType in interface SipServletMessagesetContentType in class SipServletMessageImplpublic void setExpires(int seconds)
setExpires in interface SipServletMessagesetExpires in class SipServletMessageImplpublic void setHeader(String name, String value)
setHeader in interface SipServletMessagesetHeader in class SipServletMessageImplpublic void setHeaderForm(SipServletMessage.HeaderForm form)
setHeaderForm in interface SipServletMessagesetHeaderForm in class SipServletMessageImplpublic void setParameterableHeader(String name, Parameterable param)
setParameterableHeader in interface SipServletMessagesetParameterableHeader in class SipServletMessageImplpublic String getInitialRemoteAddr()
getInitialRemoteAddr in interface SipServletMessagegetInitialRemoteAddr in class SipServletMessageImplpublic int getInitialRemotePort()
getInitialRemotePort in interface SipServletMessagegetInitialRemotePort in class SipServletMessageImplpublic String getInitialTransport()
getInitialTransport in interface SipServletMessagegetInitialTransport in class SipServletMessageImplpublic void cleanUp()
cleanUp in class SipServletMessageImplpublic void cleanUpLastResponses()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SipServletMessageImplIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SipServletMessageImplIOExceptionpublic void updateAuthorizationHeaders(boolean useNextNonce)
Copyright © 2016. All Rights Reserved.