|
Oracle Communications Service Broker SAL API Reference Reference Release 6.0 E26227-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SalFactory
Factory interface for a variety of SAL Application API abstractions.
| Method Summary | |
|---|---|
Address |
createAddress(java.lang.String sipAddress)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, java.lang.String displayName)Returns a new Address with the specified URI and display name. |
SalApplicationSession |
createApplicationSession()Returns a new SalApplicationSession. |
MessageContent |
createMessageContent()Creates a new MessageContent with no bodies. |
SalRequest |
createRequest(SalApplicationSession salAppSession, java.lang.String method, Address from, Address to)Returns a new request object with the specified request method, From, and To headers. |
SalRequest |
createRequest(SalApplicationSession salAppSession, java.lang.String method, java.lang.String from, java.lang.String to)Returns a new request object with the specified request method, From, and To headers. |
SalRequest |
createRequest(SalApplicationSession salAppSession, java.lang.String method, URI from, URI to)Returns a new request object with the specified request method, From, and To headers. |
SipURI |
createSipURI(java.lang.String user, java.lang.String host)Constructs a SipURI with the specified user and host components. |
URI |
createURI(java.lang.String uri)Returns a URI object corresponding to the specified string, which should represent an escaped SIP, SIPS, or tel URI. |
| Method Detail |
|---|
URI createURI(java.lang.String uri)
throws SalApplicationParseException
This method returns a SipURI object if the specified string is a sip or a sips URI, and a TelURL object if it's a tel URL.
If the specified URI string contains any reserved characters, it will be escaped, in accordance with RFC2396.
uri - the SIP, SIPS, or tel string to parseSalApplicationParseException
SipURI createSipURI(java.lang.String user,
java.lang.String host)
If the specified URI string contains any reserved characters, they will be escaped in accordance with RFC2396.
user - user part of the new SipURIhost - host part of the new SipURI
Address createAddress(java.lang.String sipAddress)
throws SalApplicationParseException
The specified address string must be UTF-8 encoded. Furthermore, if the URI component of the address string contains any reserved characters then they will be escaped in accordance with RFC2396 as indicated for createURI(String)
sipAddress - valid value of SIP From or To headerSalApplicationParseExceptionAddress createAddress(URI uri)
uri - the URI of the returned Address
Address createAddress(URI uri,
java.lang.String displayName)
uri - URI of the new AddressdisplayName - display name of the new Address
SalRequest createRequest(SalApplicationSession salAppSession,
java.lang.String method,
Address from,
Address to)
This method is used by SalApplications acting as SAL clients in order to send a request in a new call leg. The container is responsible for assigning the request appropriate Call-ID and CSeq headers, as well as Contact header if the method is not REGISTER.
This method makes a copy of the from and to arguments and associates them with the new SalSession. Any component of the from and to URIs not allowed in the context of SAL From and To headers are removed from the copies [refer Table 1, Section 19.1.1, RFC3261]. This includes, headers and various parameters. Also, a "tag" parameter in either of the copied from or to is also removed, as it is illegal in an initial To header and the container will choose it's own tag for the From header. The copied from and to addresses can be obtained from the SipSession but must not be modified by applications.
salAppSession - the application session to which the new SalSession and SalRequest belongsmethod - the method of the new request, e.g. "INVITE"from - value of the From headerto - value of the To header
SalRequest createRequest(SalApplicationSession salAppSession,
java.lang.String method,
URI from,
URI to)
This method is used by SalApplications acting as SAL clients in order to send a request in a new call leg. The container is responsible for assigning the request appropriate Call-ID and CSeq headers, as well as Contact header if the method is not REGISTER.
This method makes a copy of the from and to arguments and associates them with the new SalSession. Any component of the from and to URIs not allowed in the context of SAL From and To headers are removed from the copies [refer Table 1, Section 19.1.1, RFC3261]. This includes, headers and various parameters. Also, a "tag" parameter in either of the copied from or to is also removed, as it is illegal in an initial To header and the container will choose it's own tag for the From header. The copied from and to addresses can be obtained from the SipSession but must not be modified by applications.
salAppSession - the application session to which the new SipSession and SalRequest belongsmethod - the method of the new request, e.g. "INVITE"from - value of the From headerto - value of the To header
SalRequest createRequest(SalApplicationSession salAppSession,
java.lang.String method,
java.lang.String from,
java.lang.String to)
throws SalApplicationParseException
This method is used by SalApplications acting as SAL clients in order to send a request in a new call leg. The container is responsible for assigning the request appropriate Call-ID and CSeq headers, as well as Contact header if the method is not REGISTER.
salAppSession - the application session to which the new SalSession and SalRequest belongsmethod - the method of the new request, e.g. "INVITE"from - value of the From header -- this must be a valid Addressto - value of the To header -- this must be a valid AddressSalApplicationParseExceptionSalApplicationSession createApplicationSession()
MessageContent createMessageContent()
|
Oracle Communications Service Broker SAL API Reference Reference Release 6.0 E26227-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||