|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.message.SipServletMessageImpl
org.mobicents.servlet.sip.message.SipServletRequestImpl
public class SipServletRequestImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.servlet.sip.SipServletMessage |
|---|
SipServletMessage.HeaderForm |
| Field Summary | |
|---|---|
static java.util.Set<java.lang.String> |
nonInitialSipRequestMethods
|
| Fields inherited from class org.mobicents.servlet.sip.message.SipServletMessageImpl |
|---|
addressHeadersNames, attributes, currentApplicationName, defaultEncoding, dialog, headerCompact2FullNamesMappings, headerForm, headerFull2CompactNamesMappings, ianaAllowedContentTypes, isMessageSent, localAddr, localPort, message, parameterableHeadersNames, remoteAddr, remotePort, session, sipFactoryImpl, systemHeaders, transactionApplicationData, transport, userPrincipal |
| Constructor Summary | |
|---|---|
SipServletRequestImpl(javax.sip.message.Request request,
SipFactoryImpl sipFactoryImpl,
MobicentsSipSession sipSession,
javax.sip.Transaction transaction,
javax.sip.Dialog dialog,
boolean createDialog)
|
|
| Method Summary | |
|---|---|
void |
addAppCompositionRRHeader()
Add a record route header for app composition |
void |
addAuthHeader(SipServletResponse challengeResponse,
AuthInfo authInfo)
|
void |
addAuthHeader(SipServletResponse challengeResponse,
java.lang.String username,
java.lang.String password)
|
void |
addInfoForRoutingBackToContainer(java.lang.String applicationName)
Add a route header to route back to the container |
protected void |
checkMessageState()
|
SipServletRequest |
createCancel()
|
SipServletResponse |
createResponse(int statusCode)
|
SipServletResponse |
createResponse(int statusCode,
java.lang.String reasonPhrase)
|
B2buaHelper |
getB2buaHelper()
|
Address |
getInitialPoppedRoute()
|
javax.servlet.ServletInputStream |
getInputStream()
|
SipServletResponse |
getLastFinalResponse()
|
SipServletRequestImpl |
getLinkedRequest()
|
java.util.Locale |
getLocale()
|
java.util.Enumeration |
getLocales()
|
java.lang.String |
getLocalName()
|
int |
getMaxForwards()
|
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 arg0)
|
Address |
getPoppedRoute()
|
Proxy |
getProxy()
|
Proxy |
getProxy(boolean create)
|
java.io.BufferedReader |
getReader()
|
java.lang.String |
getRealPath(java.lang.String arg0)
|
SipApplicationRoutingRegion |
getRegion()
|
java.lang.String |
getRemoteHost()
|
javax.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String handler)
|
URI |
getRequestURI()
|
SipApplicationRoutingDirective |
getRoutingDirective()
|
RoutingState |
getRoutingState()
|
java.lang.String |
getScheme()
|
java.lang.String |
getServerName()
|
int |
getServerPort()
|
URI |
getSubscriberURI()
|
boolean |
is1xxResponseGenerated()
|
boolean |
isCommitted()
|
boolean |
isFinalResponseGenerated()
|
boolean |
isInitial()
|
boolean |
isSystemHeader(java.lang.String headerName)
Applications must not add, delete, or modify so-called "system" headers. |
void |
pushPath(Address uri)
|
void |
pushRoute(Address address)
|
void |
pushRoute(SipURI uri)
|
void |
send()
|
void |
setB2buaHelper(B2buaHelperImpl helperImpl)
|
void |
setLastFinalResponse(SipServletResponse finalResponse)
|
void |
setLinkedRequest(SipServletRequestImpl linkedRequest)
|
void |
setMaxForwards(int n)
|
void |
setPoppedRoute(javax.sip.header.RouteHeader routeHeader)
Set the popped route |
void |
setRequestURI(URI uri)
|
void |
setRoutingDirective(SipApplicationRoutingDirective directive,
SipServletRequest origRequest)
|
void |
setRoutingRegion(SipApplicationRoutingRegion routingRegion)
This method allows the application to set the region that the application is in with respect to this SipSession |
void |
setRoutingState(RoutingState routingState)
|
void |
setSubscriberURI(URI uri)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.servlet.ServletRequest |
|---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getLocalAddr, getLocalPort, getProtocol, getRemoteAddr, getRemotePort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
| Field Detail |
|---|
public static final java.util.Set<java.lang.String> nonInitialSipRequestMethods
| Constructor Detail |
|---|
public SipServletRequestImpl(javax.sip.message.Request request,
SipFactoryImpl sipFactoryImpl,
MobicentsSipSession sipSession,
javax.sip.Transaction transaction,
javax.sip.Dialog dialog,
boolean createDialog)
| Method Detail |
|---|
public boolean isSystemHeader(java.lang.String headerName)
SipServletMessageImpl
isSystemHeader in class SipServletMessageImplheaderName - -
either long or compact header name
public SipServletRequest createCancel()
createCancel in interface SipServletRequestpublic SipServletResponse createResponse(int statusCode)
createResponse in interface SipServletRequest
public SipServletResponse createResponse(int statusCode,
java.lang.String reasonPhrase)
createResponse in interface SipServletRequestpublic B2buaHelper getB2buaHelper()
getB2buaHelper in interface SipServletRequestpublic void setB2buaHelper(B2buaHelperImpl helperImpl)
public javax.servlet.ServletInputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.servlet.ServletRequestgetInputStream in interface SipServletRequestjava.io.IOExceptionpublic int getMaxForwards()
getMaxForwards in interface SipServletRequestpublic Address getPoppedRoute()
getPoppedRoute in interface SipServletRequestpublic void setPoppedRoute(javax.sip.header.RouteHeader routeHeader)
routeHeader - the popped route header to set
public Proxy getProxy()
throws TooManyHopsException
getProxy in interface SipServletRequestTooManyHopsException
public Proxy getProxy(boolean create)
throws TooManyHopsException
getProxy in interface SipServletRequestTooManyHopsException
public java.io.BufferedReader getReader()
throws java.io.IOException
getReader in interface javax.servlet.ServletRequestgetReader in interface SipServletRequestjava.io.IOExceptionpublic 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 SipServletRequest
public void setRoutingDirective(SipApplicationRoutingDirective directive,
SipServletRequest origRequest)
throws java.lang.IllegalStateException
setRoutingDirective in interface SipServletRequestjava.lang.IllegalStateExceptionpublic java.lang.String getLocalName()
getLocalName in interface javax.servlet.ServletRequestpublic java.util.Locale getLocale()
getLocale in interface javax.servlet.ServletRequestpublic java.util.Enumeration getLocales()
getLocales in interface javax.servlet.ServletRequestpublic java.lang.String getParameter(java.lang.String name)
getParameter in interface javax.servlet.ServletRequestpublic java.util.Map<java.lang.String,java.lang.String> getParameterMap()
getParameterMap 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 arg0)
getParameterValues in interface javax.servlet.ServletRequestpublic java.lang.String getRealPath(java.lang.String arg0)
getRealPath in interface javax.servlet.ServletRequestpublic java.lang.String getRemoteHost()
getRemoteHost in interface javax.servlet.ServletRequestpublic javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String handler)
getRequestDispatcher 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.ServletRequestpublic SipApplicationRoutingDirective getRoutingDirective()
getRoutingDirective in interface SipServletRequestpublic void send()
send in interface SipServletMessagesend in interface SipServletRequestsend in class SipServletMessageImpl
public void addInfoForRoutingBackToContainer(java.lang.String applicationName)
throws java.text.ParseException
applicationName - the application name that was chosen by the AR to route the request
java.text.ParseException
public void addAppCompositionRRHeader()
throws java.text.ParseException,
javax.sip.SipException
java.text.ParseException - if anything goes wrong while creating the record route header
javax.sip.SipException
java.lang.NullPointerExceptionpublic void setLinkedRequest(SipServletRequestImpl linkedRequest)
public SipServletRequestImpl getLinkedRequest()
public RoutingState getRoutingState()
public void setRoutingState(RoutingState routingState)
throws java.lang.IllegalStateException
routingState - the routingState to set
java.lang.IllegalStateException
public void addAuthHeader(SipServletResponse challengeResponse,
AuthInfo authInfo)
addAuthHeader in interface SipServletRequest
public void addAuthHeader(SipServletResponse challengeResponse,
java.lang.String username,
java.lang.String password)
addAuthHeader in interface SipServletRequestpublic SipServletResponse getLastFinalResponse()
public void setLastFinalResponse(SipServletResponse finalResponse)
finalResponse - 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||