public interface SipServletRequest extends SipServletMessage, javax.servlet.ServletRequest
SipServletMessage.HeaderForm| Modifier and Type | Method and Description |
|---|---|
void |
addAuthHeader(SipServletResponse challengeResponse,
AuthInfo authInfo)
This method allows the addition of the appropriate authentication header(s)
to the request that was challenged with a challenge response.
|
void |
addAuthHeader(SipServletResponse challengeResponse,
String username,
String password)
This method allows the addition of the appropriate authentication header(s)
to the request that was challenged with a challenge response without needing
the creation and/or maintenance of the AuthInfo object.
|
SipServletRequest |
createCancel()
Returns a CANCEL request object.
|
SipServletResponse |
createResponse(int statuscode)
Creates a response for this request with the specifies status code.
|
SipServletResponse |
createResponse(int statusCode,
String reasonPhrase)
Creates a response for this request with the specifies status code and reason phrase.
|
B2buaHelper |
getB2buaHelper()
Returns the B2buaHelper associated with this request.
|
Address |
getInitialPoppedRoute()
If a top route header had been removed by the container upon initially receiving this request,
then this method can be used to retrieve it.
|
javax.servlet.ServletInputStream |
getInputStream()
Always returns null.
|
int |
getMaxForwards()
Returns the value of the Max-Forwards header.
|
Address |
getPoppedRoute()
If a top route header had been removed by the container upon receiving this request, then this method can be used to retrieve it.
|
Proxy |
getProxy()
Returns the Proxy object associated with this request.
|
Proxy |
getProxy(boolean create)
Returns the Proxy object associated with this request.
|
BufferedReader |
getReader()
Always returns null.
|
SipApplicationRoutingRegion |
getRegion()
This method allows the application to obtain the region it was invoked in for this SipServletRequest.
|
URI |
getRequestURI()
Returns the request URI of this request.
|
SipApplicationRoutingDirective |
getRoutingDirective()
Returns the SipApplicationRoutingDirective associated with this request.
|
URI |
getSubscriberURI()
Returns the URI of the subscriber for which this application is invoked to serve.
|
boolean |
isInitial()
Returns true if this is an initial request.
|
void |
pushPath(Address uri)
Adds a Path header field value to this request.
|
void |
pushRoute(Address uri)
Adds a Route header field value to this request with Address argument.
|
void |
pushRoute(SipURI uri)
Adds a Route header field value to this request.
|
void |
send()
Causes this request to be sent.
|
void |
setMaxForwards(int n)
Sets the value of the Max-Forwards header.
|
void |
setRequestURI(URI uri)
Sets the request URI of this request.
|
void |
setRoutingDirective(SipApplicationRoutingDirective directive,
SipServletRequest origRequest)
Sets the application routing directive for an outgoing request.
|
addAcceptLanguage, 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, getMethod, 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, setParameterableHeadergetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncvoid addAuthHeader(SipServletResponse challengeResponse, AuthInfo authInfo)
challengeResponse - The challenge response (401/407) receieved from a UAS/Proxy.authInfo - The AuthInfo object that will add the Authentication headers to the request.void addAuthHeader(SipServletResponse challengeResponse, String username, String password)
challengeResponse - the challenge response (401/407) receieved from a UAS/Proxy.username - password - SipServletRequest createCancel()
SipServletResponse createResponse(int statuscode)
SipServletResponse createResponse(int statusCode, String reasonPhrase)
B2buaHelper getB2buaHelper()
Address getInitialPoppedRoute()
javax.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream in interface javax.servlet.ServletRequestIOExceptionint getMaxForwards()
Address getPoppedRoute()
Proxy getProxy() throws TooManyHopsException
Note that the URI parameters added to the Record-Route header using
Proxy.getRecordRouteURI() should be retrieved from the URI of
the popped route Address using
poppedRoute.getURI().getParameter() and not using
poppedRoute.getParameter().
TooManyHopsExceptionProxy getProxy(boolean create) throws TooManyHopsException
TooManyHopsExceptionBufferedReader getReader() throws IOException
getReader in interface javax.servlet.ServletRequestIOExceptionSipApplicationRoutingRegion getRegion()
IllegalStateException - if this method is called on a request that is not initial.URI getSubscriberURI()
IllegalStateException - if this method is called on a request that is not initial.SipApplicationRoutingDirective getRoutingDirective() throws IllegalStateException
IllegalStateException - if called on a request that is not initialURI getRequestURI()
boolean isInitial()
void pushPath(Address uri)
void pushRoute(Address uri)
void pushRoute(SipURI uri)
void send()
throws IOException
send in interface SipServletMessageIOExceptionvoid setMaxForwards(int n)
void setRequestURI(URI uri)
void setRoutingDirective(SipApplicationRoutingDirective directive, SipServletRequest origRequest) throws IllegalStateException
IllegalStateExceptionCopyright © 2014. All Rights Reserved.