|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.header.SIPObject
gov.nist.javax.sip.header.SIPHeader
gov.nist.javax.sip.header.ParametersHeader
gov.nist.javax.sip.header.Reason
public class Reason
Definition of the Reason SIP Header.
Field Summary | |
---|---|
String |
CAUSE
|
String |
TEXT
|
Fields inherited from interface javax.sip.header.ReasonHeader |
---|
NAME |
Fields inherited from interface gov.nist.javax.sip.header.SIPHeaderNames |
---|
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE |
Constructor Summary | |
---|---|
Reason()
Set the cause. /** Creates a new instance of Reason |
Method Summary | |
---|---|
int |
getCause()
Get the cause token. |
String |
getName()
Gets the unique string name of this Header. |
String |
getProtocol()
Return the protocol. |
String |
getText()
Get the text. |
void |
setCause(int cause)
Set the cause. |
void |
setProtocol(String protocol)
Set the protocol |
void |
setText(String text)
Set the text. |
Methods inherited from class gov.nist.javax.sip.header.ParametersHeader |
---|
clone, getNameValue, getParameter, getParameterNames, getParameters, getParameterValue, hasParameter, hasParameters, removeParameter, removeParameters, setParameter, setParameter, setParameters, setQuotedParameter |
Methods inherited from class gov.nist.javax.sip.header.SIPHeader |
---|
encode, encode, getHeaderName, getHeaderValue, getValue, hashCode, isHeaderList, setHeaderName, toString |
Methods inherited from class gov.nist.javax.sip.header.SIPObject |
---|
dbgPrint, debugDump, debugDump, equals, match |
Methods inherited from class gov.nist.core.GenericObject |
---|
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sip.header.Parameters |
---|
getParameter, getParameterNames, removeParameter, setParameter |
Methods inherited from interface javax.sip.header.Header |
---|
clone, equals, hashCode, toString |
Field Detail |
---|
public final String TEXT
public final String CAUSE
Constructor Detail |
---|
public Reason()
Method Detail |
---|
public int getCause()
getCause
in interface ReasonHeader
public void setCause(int cause) throws InvalidArgumentException
setCause
in interface ReasonHeader
cause
- - cause to set.
InvalidArgumentException
- if the cause value is less than zero.public void setProtocol(String protocol) throws ParseException
setProtocol
in interface ReasonHeader
protocol
- - protocol to set.
ParseException
- which signals that an error has been reached
unexpectedly while parsing the protocol value.public String getProtocol()
getProtocol
in interface ReasonHeader
public void setText(String text) throws ParseException
setText
in interface ReasonHeader
text
- -- string text to set.
ParseException
- which signals that an error has been reached
unexpectedly while parsing the text value.public String getText()
getText
in interface ReasonHeader
public String getName()
getName
in interface Header
getName
in class SIPHeader
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |