| Package | Description |
|---|---|
| javax.servlet.sip | |
| javax.servlet.sip.ar |
| Modifier and Type | Method and Description |
|---|---|
SipServletRequest |
SipServletResponse.createAck()
Returns an ACK request object corresponding to this response.
|
SipServletRequest |
SipServletRequest.createCancel()
Returns a CANCEL request object.
|
SipServletRequest |
B2buaHelper.createCancel(SipSession session)
Creates a new CANCEL request to cancel the initial request sent on the other leg.
|
SipServletRequest |
SipServletResponse.createPrack()
Creates a PRACK request object corresponding to this response.
|
SipServletRequest |
SipFactory.createRequest(SipApplicationSession appSession,
String method,
Address from,
Address to)
Returns a new request object with the specified request method, From, and To headers.
|
SipServletRequest |
SipFactory.createRequest(SipApplicationSession appSession,
String method,
String from,
String to)
Returns a new request object with the specified request method, From, and To headers.
|
SipServletRequest |
SipFactory.createRequest(SipApplicationSession appSession,
String method,
URI from,
URI to)
Returns a new request object with the specified request method, From, and To headers.
|
SipServletRequest |
B2buaHelper.createRequest(SipServletRequest origRequest)
Creates a new request object belonging to a new SipSession.
|
SipServletRequest |
SipFactory.createRequest(SipServletRequest origRequest,
boolean sameCallId)
Deprecated.
usage of this method is deprecated. Setting the sameCallId flag to "true" actually breaks the provisions of [RFC 3261] where the Call-ID value is to be unique accross dialogs. Instead use a more general method defined on the B2buaHelper B2buaHelper.createRequest(SipServletRequest)
Creates a new request object belonging to a new SipSession.
The new request is similar to the specified origRequest in that the method and the majority of header fields are copied from origRequest to the new request.
The SipSession created for the new request also shares the same SipApplicationSession associated with the original request.
This method satisfies the following rules:
The From header field of the new request has a new tag chosen by the container.
The To header field of the new request has no tag.
If the sameCallId argument is false, the new request (and the corresponding SipSession)
is assigned a new Call-ID. Record-Route and Via header fields are not copied.
As usual, the container will add its own Via header field to the request
when it's actually sent outside the application server.
For non-REGISTER requests, the Contact header field is not copied but is populated by the container as usual.
This method provides a convenient and efficient way of constructing the second "leg" of a B2BUA application.
It is used only for the initial request.
Subsequent requests in either leg must be created using SipSession.createRequest(java.lang.String) as usual.
|
SipServletRequest |
B2buaHelper.createRequest(SipServletRequest origRequest,
boolean linked,
Map<String,List<String>> headerMap)
Creates a new request object belonging to a new SipSession.
|
SipServletRequest |
B2buaHelper.createRequest(SipSession session,
SipServletRequest origRequest,
Map<String,List<String>> headerMap)
Creates a new subsequent request based on the specified original request.
|
SipServletRequest |
SipSession.createRequest(String method)
Returns a new request object.
|
SipServletRequest |
B2buaHelper.getLinkedSipServletRequest(SipServletRequest req)
If a new request is created based on an existing one with the link
argument true using or using the new request gets implicitly linked with
the original request.
|
SipServletRequest |
Proxy.getOriginalRequest()
Returns the request received from the upstream caller.
|
SipServletRequest |
ProxyBranch.getRequest()
Returns the request associated with this branch.
|
SipServletRequest |
SipServletResponse.getRequest()
Returns the request associated with this response.
|
SipServletRequest |
SipErrorEvent.getRequest()
Returns the request object associated with this SipErrorEvent.
|
| Modifier and Type | Method and Description |
|---|---|
SipServletRequest |
B2buaHelper.createRequest(SipServletRequest origRequest)
Creates a new request object belonging to a new SipSession.
|
SipServletRequest |
SipFactory.createRequest(SipServletRequest origRequest,
boolean sameCallId)
Deprecated.
usage of this method is deprecated. Setting the sameCallId flag to "true" actually breaks the provisions of [RFC 3261] where the Call-ID value is to be unique accross dialogs. Instead use a more general method defined on the B2buaHelper B2buaHelper.createRequest(SipServletRequest)
Creates a new request object belonging to a new SipSession.
The new request is similar to the specified origRequest in that the method and the majority of header fields are copied from origRequest to the new request.
The SipSession created for the new request also shares the same SipApplicationSession associated with the original request.
This method satisfies the following rules:
The From header field of the new request has a new tag chosen by the container.
The To header field of the new request has no tag.
If the sameCallId argument is false, the new request (and the corresponding SipSession)
is assigned a new Call-ID. Record-Route and Via header fields are not copied.
As usual, the container will add its own Via header field to the request
when it's actually sent outside the application server.
For non-REGISTER requests, the Contact header field is not copied but is populated by the container as usual.
This method provides a convenient and efficient way of constructing the second "leg" of a B2BUA application.
It is used only for the initial request.
Subsequent requests in either leg must be created using SipSession.createRequest(java.lang.String) as usual.
|
SipServletRequest |
B2buaHelper.createRequest(SipServletRequest origRequest,
boolean linked,
Map<String,List<String>> headerMap)
Creates a new request object belonging to a new SipSession.
|
SipServletRequest |
B2buaHelper.createRequest(SipSession session,
SipServletRequest origRequest,
Map<String,List<String>> headerMap)
Creates a new subsequent request based on the specified original request.
|
protected void |
SipServlet.doAck(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming ACK requests.
|
protected void |
SipServlet.doBye(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming BYE requests.
|
protected void |
SipServlet.doCancel(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming CANCEL requests.
|
protected void |
SipServlet.doInfo(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming INFO requests.
|
protected void |
SipServlet.doInvite(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming INVITE requests.
|
protected void |
SipServlet.doMessage(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming MESSAGE requests.
|
protected void |
SipServlet.doNotify(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming NOTIFY requests.
|
protected void |
SipServlet.doOptions(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming OPTIONS requests.
|
protected void |
SipServlet.doPrack(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming PRACK requests.
|
protected void |
SipServlet.doPublish(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming PUBLISH requests.
|
protected void |
SipServlet.doRefer(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming REFER requests.
|
protected void |
SipServlet.doRegister(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming REGISTER requests.
|
protected void |
SipServlet.doRequest(SipServletRequest req)
Invoked to handle incoming requests.
|
protected void |
SipServlet.doSubscribe(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming SUBSCRIBE requests.
|
protected void |
SipServlet.doUpdate(SipServletRequest req)
Invoked by the server (via the service method) to handle incoming UPDATE requests.
|
SipServletRequest |
B2buaHelper.getLinkedSipServletRequest(SipServletRequest req)
If a new request is created based on an existing one with the link
argument true using or using the new request gets implicitly linked with
the original request.
|
void |
SipServletRequest.setRoutingDirective(SipApplicationRoutingDirective directive,
SipServletRequest origRequest)
Sets the application routing directive for an outgoing request.
|
| Constructor and Description |
|---|
SipErrorEvent(SipServletRequest request,
SipServletResponse response)
Constructs a new SipErrorEvent.
|
| Modifier and Type | Method and Description |
|---|---|
SipApplicationRouterInfo |
SipApplicationRouter.getNextApplication(SipServletRequest initialRequest,
SipApplicationRoutingRegion region,
SipApplicationRoutingDirective directive,
SipTargetedRequestInfo targetedRequestInfo,
Serializable stateInfo)
This method is called by the container when a servlet sends or proxies an initial SipServletRequest.
|
Copyright © 2016. All rights reserved.