public interface SipFactory
| Modifier and Type | Method and Description |
|---|---|
Address |
createAddress(String addr)
Returns a Address corresponding to the specified string.
|
Address |
createAddress(URI uri)
Returns an Address with the specified URI and no display name.
|
Address |
createAddress(URI uri,
String displayName)
Returns a new Address with the specified URI and display name.
|
SipApplicationSession |
createApplicationSession()
Returns a new SipApplicationSession.
|
SipApplicationSession |
createApplicationSessionByKey(String sipApplicationKey)
Returns a new SipApplicationSession identified by the specified SipApplicationKey.
|
AuthInfo |
createAuthInfo()
Creates a new AuthInfo object that can be used to provide authentication information on servlet initiated requests.
|
Parameterable |
createParameterable(String s)
Creates a new Parameterable parsed from the specified string.
|
SipServletRequest |
createRequest(SipApplicationSession appSession,
String method,
Address from,
Address to)
Returns a new request object with the specified request method, From, and To headers.
|
SipServletRequest |
createRequest(SipApplicationSession appSession,
String method,
String from,
String to)
Returns a new request object with the specified request method, From, and To headers.
|
SipServletRequest |
createRequest(SipApplicationSession appSession,
String method,
URI from,
URI to)
Returns a new request object with the specified request method, From, and To headers.
|
SipServletRequest |
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.
|
SipURI |
createSipURI(String user,
String host)
Constructs a SipURI with the specified user and host components.
|
URI |
createURI(String uri)
Returns a URI object corresponding to the specified string, which should represent an escaped SIP, SIPS, or tel URI.
|
Address createAddress(String addr) throws ServletParseException
ServletParseExceptionAddress createAddress(URI uri)
Address createAddress(URI uri, String displayName)
SipApplicationSession createApplicationSession()
SipApplicationSession createApplicationSessionByKey(String sipApplicationKey)
sipApplicationKey - - id for the SipApplicationSessionAuthInfo createAuthInfo()
Parameterable createParameterable(String s) throws ServletParseException
ServletParseExceptionSipServletRequest createRequest(SipApplicationSession appSession, String method, Address from, Address to)
SipServletRequest createRequest(SipApplicationSession appSession, String method, String from, String to) throws ServletParseException
ServletParseExceptionSipServletRequest createRequest(SipApplicationSession appSession, String method, URI from, URI to)
SipServletRequest createRequest(SipServletRequest origRequest, boolean sameCallId)
SipURI createSipURI(String user, String host)
URI createURI(String uri) throws ServletParseException
ServletParseExceptionCopyright © 2016. All Rights Reserved.