|
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 SalResponse
Represents SAL responses. Instances of this class are passed to SalApplication when the container receives incoming SAL responses and also, SalApplications acting as UA servers or proxies generates SAL responses of their own by creating SalResponses.
SAL responses has a three-digit status code that indicates the outcome of the corresponding request. Responses with a status code in the range of 100-199 (1xx's) are called provisional or informational and indicate progress in processing of the request. Any response with a status code of 200 or higher is a final response. A UA server may send only one final response per request but this may be preceeded by any number of provisional responses.
2xx responses indicate a successful outcome while 3xx-6xx indicate a variety of non-success conditions.
The summary of status codes is [RFC 3261]:
| Field Summary | |
|---|---|
static int |
SC_ACCEPTEDThe status code has the same meaning as in JSR 289 |
static int |
SC_ADDRESS_INCOMPLETEThe status code has the same meaning as in JSR 289 |
static int |
SC_ALTERNATIVE_SERVICEThe status code has the same meaning as in JSR 289 |
static int |
SC_AMBIGUOUSThe status code has the same meaning as in JSR 289 |
static int |
SC_BAD_EVENTThe status code has the same meaning as in JSR 289 |
static int |
SC_BAD_EXTENSIONThe status code has the same meaning as in JSR 289 |
static int |
SC_BAD_GATEWAYThe status code has the same meaning as in JSR 289 |
static int |
SC_BAD_IDENTITY_INFOThe status code has the same meaning as in JSR 289 |
static int |
SC_BAD_REQUESTThe status code has the same meaning as in JSR 289 |
static int |
SC_BUSY_EVERYWHEREThe status code has the same meaning as in JSR 289 |
static int |
SC_BUSY_HEREThe status code has the same meaning as in JSR 289 |
static int |
SC_CALL_BEING_FORWARDEDThe status code has the same meaning as in JSR 289 |
static int |
SC_CALL_LEG_DONEThe status code has the same meaning as in JSR 289 |
static int |
SC_CALL_QUEUEDThe status code has the same meaning as in JSR 289 |
static int |
SC_CONDITIONAL_REQUEST_FAILEDThe status code has the same meaning as in JSR 289 |
static int |
SC_DECLINEThe status code has the same meaning as in JSR 289 |
static int |
SC_DOES_NOT_EXIT_ANYWHEREThe status code has the same meaning as in JSR 289 |
static int |
SC_EXTENSION_REQUIREDThe status code has the same meaning as in JSR 289 |
static int |
SC_FORBIDDENThe status code has the same meaning as in JSR 289 |
static int |
SC_GONEThe status code has the same meaning as in JSR 289 |
static int |
SC_INTERVAL_TOO_BRIEFThe status code has the same meaning as in JSR 289 |
static int |
SC_INVALID_IDENTITY_HEADERThe status code has the same meaning as in JSR 289 |
static int |
SC_LOOP_DETECTEDThe status code has the same meaning as in JSR 289 |
static int |
SC_MESSAGE_TOO_LARGEThe status code has the same meaning as in JSR 289 |
static int |
SC_METHOD_NOT_ALLOWEDThe status code has the same meaning as in JSR 289 |
static int |
SC_MOVED_PERMANENTLYThe status code has the same meaning as in JSR 289 |
static int |
SC_MOVED_TEMPORARILYThe status code has the same meaning as in JSR 289 |
static int |
SC_MULTIPLE_CHOICESThe status code has the same meaning as in JSR 289 |
static int |
SC_NOT_ACCEPTABLEThe status code has the same meaning as in JSR 289 |
static int |
SC_NOT_ACCEPTABLE_ANYWHEREThe status code has the same meaning as in JSR 289 |
static int |
SC_NOT_ACCEPTABLE_HEREThe status code has the same meaning as in JSR 289 |
static int |
SC_NOT_FOUNDThe status code has the same meaning as in JSR 289 |
static int |
SC_NOT_IMPLEMENTEDThe status code has the same meaning as in JSR 289 |
static int |
SC_OKThe status code has the same meaning as in JSR 289 |
static int |
SC_PAYMENT_REQUIREDThe status code has the same meaning as in JSR 289 |
static int |
SC_PRECONDITION_FAILUREThe status code has the same meaning as in JSR 289 |
static int |
SC_PROVIDE_REFERER_IDENTITYThe status code has the same meaning as in JSR 289 |
static int |
SC_PROXY_AUTHENTICATION_REQUIREDThe status code has the same meaning as in JSR 289 |
static int |
SC_REQUEST_ENTITY_TOO_LARGEThe status code has the same meaning as in JSR 289 |
static int |
SC_REQUEST_PENDINGThe status code has the same meaning as in JSR 289 |
static int |
SC_REQUEST_TERMINATEDThe status code has the same meaning as in JSR 289 |
static int |
SC_REQUEST_TIMEOUTThe status code has the same meaning as in JSR 289 |
static int |
SC_REQUEST_URI_TOO_LONGThe status code has the same meaning as in JSR 289 |
static int |
SC_RINGINGThe status code has the same meaning as in JSR 289 |
static int |
SC_SECURITY_AGREEMENT_REQUIREDThe status code has the same meaning as in JSR 289 |
static int |
SC_SERVER_INTERNAL_ERRORThe status code has the same meaning as in JSR 289 |
static int |
SC_SERVER_TIMEOUTThe status code has the same meaning as in JSR 289 |
static int |
SC_SERVICE_UNAVAILABLEThe status code has the same meaning as in JSR 289 |
static int |
SC_SESSION_INTERVAL_TOO_SMALLThe status code has the same meaning as in JSR 289 |
static int |
SC_SESSION_PROGRESSThe status code has the same meaning as in JSR 289 |
static int |
SC_TEMPORARLY_UNAVAILABLEThe status code has the same meaning as in JSR 289 |
static int |
SC_TOO_MANY_HOPSThe status code has the same meaning as in JSR 289 |
static int |
SC_TRYINGThe status code has the same meaning as in JSR 289 |
static int |
SC_UNAUTHORIZEDThe status code has the same meaning as in JSR 289 |
static int |
SC_UNDECIPHERABLEThe status code has the same meaning as in JSR 289 |
static int |
SC_UNSUPPORTED_CERTIFICATEThe status code has the same meaning as in JSR 289 |
static int |
SC_UNSUPPORTED_MEDIA_TYPEThe status code has the same meaning as in JSR 289 |
static int |
SC_UNSUPPORTED_URI_SCHEMEThe status code has the same meaning as in JSR 289 |
static int |
SC_USE_IDENTITY_HEADERThe status code has the same meaning as in JSR 289 |
static int |
SC_USE_PROXYThe status code has the same meaning as in JSR 289 |
static int |
SC_VERSION_NOT_SUPPORTEDThe status code has the same meaning as in JSR 289 |
| Method Summary | |
|---|---|
SalRequest |
createAck()Returns an ACK request object corresponding to this response. |
SalRequest |
createPrack()Creates a PRACK request object corresponding to this response. |
java.lang.String |
getReasonPhrase()Returns the reason phrase for this response object. |
SalRequest |
getRequest()Returns the request associated with this response. |
int |
getStatus()Returns the status code of this response object. |
void |
send()Causes this response to be sent. |
void |
setStatus(int responseCode)Sets the status code of this response object. |
void |
setStatus(int responseCode, java.lang.String reasonPhrase)Sets the status code and reason phrase of this response object |
| Methods inherited from interface com.convergin.common.sal.ext.api.SalMessage |
|---|
addAddressHeader, addHeader, getAddressHeader, getAddressHeaders, getApplicationSession, getApplicationSession, getContent, getContentType, getFrom, getHeader, getHeaderNames, getHeaders, getMethod, getSession, getSession, getTo, removeHeader, setAddressHeader, setContent, setContentType, setHeader |
| Field Detail |
|---|
static final int SC_TRYING
static final int SC_RINGING
static final int SC_CALL_BEING_FORWARDED
static final int SC_CALL_QUEUED
static final int SC_SESSION_PROGRESS
static final int SC_OK
static final int SC_ACCEPTED
static final int SC_MULTIPLE_CHOICES
static final int SC_MOVED_PERMANENTLY
static final int SC_MOVED_TEMPORARILY
static final int SC_USE_PROXY
static final int SC_ALTERNATIVE_SERVICE
static final int SC_BAD_REQUEST
static final int SC_UNAUTHORIZED
static final int SC_PAYMENT_REQUIRED
static final int SC_FORBIDDEN
static final int SC_NOT_FOUND
static final int SC_METHOD_NOT_ALLOWED
static final int SC_NOT_ACCEPTABLE
static final int SC_PROXY_AUTHENTICATION_REQUIRED
static final int SC_REQUEST_TIMEOUT
static final int SC_GONE
static final int SC_CONDITIONAL_REQUEST_FAILED
static final int SC_REQUEST_ENTITY_TOO_LARGE
static final int SC_REQUEST_URI_TOO_LONG
static final int SC_UNSUPPORTED_MEDIA_TYPE
static final int SC_UNSUPPORTED_URI_SCHEME
static final int SC_BAD_EXTENSION
static final int SC_EXTENSION_REQUIRED
static final int SC_SESSION_INTERVAL_TOO_SMALL
static final int SC_INTERVAL_TOO_BRIEF
static final int SC_USE_IDENTITY_HEADER
static final int SC_PROVIDE_REFERER_IDENTITY
static final int SC_BAD_IDENTITY_INFO
static final int SC_UNSUPPORTED_CERTIFICATE
static final int SC_INVALID_IDENTITY_HEADER
static final int SC_TEMPORARLY_UNAVAILABLE
static final int SC_CALL_LEG_DONE
static final int SC_LOOP_DETECTED
static final int SC_TOO_MANY_HOPS
static final int SC_ADDRESS_INCOMPLETE
static final int SC_AMBIGUOUS
static final int SC_BUSY_HERE
static final int SC_REQUEST_TERMINATED
static final int SC_NOT_ACCEPTABLE_HERE
static final int SC_BAD_EVENT
static final int SC_REQUEST_PENDING
static final int SC_UNDECIPHERABLE
static final int SC_SECURITY_AGREEMENT_REQUIRED
static final int SC_SERVER_INTERNAL_ERROR
static final int SC_NOT_IMPLEMENTED
static final int SC_BAD_GATEWAY
static final int SC_SERVICE_UNAVAILABLE
static final int SC_SERVER_TIMEOUT
static final int SC_VERSION_NOT_SUPPORTED
static final int SC_MESSAGE_TOO_LARGE
static final int SC_PRECONDITION_FAILURE
static final int SC_BUSY_EVERYWHERE
static final int SC_DECLINE
static final int SC_DOES_NOT_EXIT_ANYWHERE
static final int SC_NOT_ACCEPTABLE_ANYWHERE
| Method Detail |
|---|
SalRequest getRequest()
int getStatus()
The Status-Code is a 3-digit integer result code that indicates the outcome of the attempt to understand and satisfy the request.
void setStatus(int responseCode)
responseCode - status code of this response
void setStatus(int responseCode,
java.lang.String reasonPhrase)
responseCode - status code of this responsereasonPhrase - short textual description of the status codejava.lang.String getReasonPhrase()
void send()
throws java.io.IOException
java.io.IOException - if a transport error occurs when trying to send this responsejava.lang.IllegalStateException - if this response was received from downstream or if it has already been sentSalRequest createAck()
SalRequest createPrack()
|
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 | ||||||||