|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReasonHeader
This interface represents the Reason header, as defined by RFC3326, this header is not part of RFC3261.
The ReasonHeader provides information on why a SIP request was issued, often useful when creating services and also used to encapsulate a final status code in a provisional response, which is needed to resolve the "Heterogeneous Error Response Forking Problem".
The Reason header field appears to be most useful for BYE and CANCEL requests, but it can appear in any request within a dialog, in any CANCEL request and in 155 (Update Requested) responses. When used in requests, clients and servers are free to ignore this header field. It has no impact on protocol processing.
Examples of the ReasonHeader usage are:
Field Summary | |
---|---|
static java.lang.String |
NAME
Name of ReasonHeader |
Method Summary | |
---|---|
int |
getCause()
Gets the cause value of the ReasonHeader |
java.lang.String |
getProtocol()
Gets the protocol value of the ReasonHeader |
java.lang.String |
getText()
Gets the text value of the ReasonHeader |
void |
setCause(int cause)
Sets the cause value of the ReasonHeader. |
void |
setProtocol(java.lang.String protocol)
Sets the protocol of the ReasonHeader, for example SIP or Q.850. |
void |
setText(java.lang.String text)
Sets the text value of the ReasonHeader. |
Methods inherited from interface javax.sip.header.Parameters |
---|
getParameter, getParameterNames, removeParameter, setParameter |
Methods inherited from interface javax.sip.header.Header |
---|
clone, equals, getName, hashCode, toString |
Field Detail |
---|
static final java.lang.String NAME
Method Detail |
---|
int getCause()
void setCause(int cause) throws InvalidArgumentException
cause
- - the new integer value of the cause of the ReasonHeader
InvalidArgumentException
- if the cause value is less than zero.void setProtocol(java.lang.String protocol) throws java.text.ParseException
protocol
- - the new string value of the protocol of the ReasonHeader
java.text.ParseException
- which signals that an error has been reached
unexpectedly while parsing the protocol value.java.lang.String getProtocol()
void setText(java.lang.String text) throws java.text.ParseException
text
- - the new string value of the text of the ReasonHeader
java.text.ParseException
- which signals that an error has been reached
unexpectedly while parsing the text value.java.lang.String getText()
|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |