|
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 | ||||||||
java.lang.Object
com.convergin.common.sal.ext.api.SalApplication
public abstract class SalApplication
An abstract class to be sub-classed to create a SAL application. This class receives incoming messages through the service method. This method calls doRequest or doResponse for incoming requests and responses, respectively. These two methods in turn dispatch on request method or status code to one of the following methods:
The default implementation of doAck, doCancel and all the response handling methods are empty. All other request handling methods reject the request with a 500 error response. Subclasses of SalApplication will usually override one or more of these methods.
| Field Summary | |
|---|---|
static java.lang.String |
SAL_FACTORYThe name of the SalFactory attribute whose value is an instance of the SipFactory interface. |
| Constructor Summary | |
|---|---|
SalApplication() |
|
| Method Summary | |
|---|---|
void |
destroy()Called by the SalApplication container to indicate that this SalApplication is being taken out of service. |
protected void |
doAck(SalRequest req)Invoked by the server (via the service method) to handle incoming ACK requests. |
protected void |
doBranchResponse(SalResponse resp)Invoked by the server to handle intermediate final responses only if this Servlet behaves as a proxy. |
protected void |
doBye(SalRequest req)Invoked by the server (via the service method) to handle incoming BYE requests. |
protected void |
doCancel(SalRequest req)Invoked by the server (via the service method) to handle incoming CANCEL requests. |
protected void |
doErrorResponse(SalResponse resp)Invoked by the server (via the doResponse method) to handle incoming 4xx - 6xx class responses. |
protected void |
doInfo(SalRequest req)Invoked by the server (via the service method) to handle incoming INFO requests. |
protected void |
doInvite(SalRequest req)Invoked by the server (via the service method) to handle incoming INVITE requests. |
protected void |
doMessage(SalRequest req)Invoked by the server (via the service method) to handle incoming MESSAGE requests. |
protected void |
doNotify(SalRequest req)Invoked by the server (via the service method) to handle incoming NOTIFY requests. |
protected void |
doOptions(SalRequest req)Invoked by the server (via the service method) to handle incoming OPTIONS requests. |
protected void |
doPrack(SalRequest req)Invoked by the server (via the service method) to handle incoming PRACK requests. |
protected void |
doProvisionalResponse(SalResponse resp)Invoked by the server (via the doResponse method) to handle incoming 1xx class responses. |
protected void |
doPublish(SalRequest req)Invoked by the server (via the service method) to handle incoming PUBLISH requests. |
protected void |
doRedirectResponse(SalResponse resp)Invoked by the server to notify the servlet of incoming 3xx class responses. |
protected void |
doRefer(SalRequest req)Invoked by the server (via the service method) to handle incoming REFER requests. |
protected void |
doRegister(SalRequest req)Invoked by the server (via the service method) to handle incoming REGISTER requests. |
protected void |
doRequest(SalRequest req)Invoked to handle incoming requests. |
protected void |
doResponse(SalResponse resp)Invoked to handle incoming responses. |
protected void |
doSubscribe(SalRequest req)Invoked by the server (via the service method) to handle incoming SUBSCRIBE requests. |
protected void |
doSuccessResponse(SalResponse resp)Invoked by the server (via the doResponse method) to handle incoming 2xx class responses. |
protected void |
doUpdate(SalRequest req)Invoked by the server (via the service method) to handle incoming UPDATE requests. |
SalConfig |
getSalConfig()Returns this sal application SalConfig object. |
void |
init(SalConfig config)Called by the SalApplication container to indicate that this SalApplication is being placed into service. |
void |
service(SalRequest req, SalResponse resp)Invoked to handle incoming SAL messages: requests or responses. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SAL_FACTORY
| Constructor Detail |
|---|
public SalApplication()
| Method Detail |
|---|
public SalConfig getSalConfig()
public void init(SalConfig config)
throws SalApplicationException
This implementation stores the SalConfig object it receives from the container for later use. When overriding this form of the method, call super.init(config).
config - the SalConfig object that contains configuration information for this instance.SalApplicationExceptionpublic void destroy()
public void service(SalRequest req,
SalResponse resp)
throws SalApplicationException,
java.io.IOException
This method dispatched to doRequest() or doResponse() as appropriate. SalApplications will not usually need to override this method.
req - the request to handle, or null if the triggering event was an incoming responseresp - incoming response or null if the triggering event was an incoming requestSalApplicationExceptionjava.io.IOException
protected void doRequest(SalRequest req)
throws SalApplicationException,
java.io.IOException
req - represents the incoming SIP requestSalApplicationExceptionjava.io.IOException
protected void doInvite(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL INVITE requestSalApplicationExceptionjava.io.IOException
protected void doAck(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL ACK requestSalApplicationExceptionjava.io.IOException
protected void doPublish(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL PUBLISH requestSalApplicationExceptionjava.io.IOException
protected void doOptions(SalRequest req)
throws SalApplicationException,
java.io.IOException
req - represents the incoming SAL OPTIONS requestSalApplicationExceptionjava.io.IOException
protected void doBye(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL BYE requestSalApplicationExceptionjava.io.IOException
protected void doCancel(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL CANCEL requestSalApplicationExceptionjava.io.IOException
protected void doRegister(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL REGISTER requestSalApplicationExceptionjava.io.IOException
protected void doSubscribe(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL SUBSCRIBE requestSalApplicationExceptionjava.io.IOException
protected void doNotify(SalRequest req)
throws SalApplicationException,
java.io.IOException
req - represents the incoming SAL NOTIFY requestSalApplicationExceptionjava.io.IOException
protected void doMessage(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL MESSAGE requestSalApplicationExceptionjava.io.IOException
protected void doInfo(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL INFO requestSalApplicationExceptionjava.io.IOException
protected void doPrack(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL PRACK requestSalApplicationExceptionjava.io.IOException
protected void doUpdate(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL UPDATE requestSalApplicationExceptionjava.io.IOException
protected void doRefer(SalRequest req)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
req - represents the incoming SAL REFER requestSalApplicationExceptionjava.io.IOException
protected void doResponse(SalResponse resp)
throws SalApplicationException,
java.io.IOException
doProvisionalResponse(com.convergin.common.sal.ext.api.SalResponse), doSuccessResponse(com.convergin.common.sal.ext.api.SalResponse), doBranchResponse(com.convergin.common.sal.ext.api.SalResponse), doRedirectResponse(com.convergin.common.sal.ext.api.SalResponse) or doErrorResponse(com.convergin.common.sal.ext.api.SalResponse).resp - the response objectSalApplicationExceptionjava.io.IOException
protected void doProvisionalResponse(SalResponse resp)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
resp - the response objectSalApplicationExceptionjava.io.IOException
protected void doSuccessResponse(SalResponse resp)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
resp - the response objectSalApplicationExceptionjava.io.IOException
protected void doRedirectResponse(SalResponse resp)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
resp - the response objectSalApplicationExceptionjava.io.IOException
protected void doErrorResponse(SalResponse resp)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to do something useful.
resp - the response objectSalApplicationExceptionjava.io.IOException
protected void doBranchResponse(SalResponse resp)
throws SalApplicationException,
java.io.IOException
The default implementation is empty and must be overridden by subclasses to handle intermediate final responses received on a ProxyBranch.
resp - the response objectSalApplicationExceptionjava.io.IOException
|
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 | ||||||||