|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.message.MessageObject
gov.nist.javax.sip.message.SIPMessage
gov.nist.javax.sip.message.SIPResponse
public final class SIPResponse
SIP Response structure.
| フィールドの概要 |
|---|
| インタフェース javax.sip.message.Response から継承されたフィールド |
|---|
ACCEPTED, ADDRESS_INCOMPLETE, ALTERNATIVE_SERVICE, AMBIGUOUS, BAD_EVENT, BAD_EXTENSION, BAD_GATEWAY, BAD_REQUEST, BUSY_EVERYWHERE, BUSY_HERE, CALL_IS_BEING_FORWARDED, CALL_OR_TRANSACTION_DOES_NOT_EXIST, DECLINE, DOES_NOT_EXIST_ANYWHERE, EXTENSION_REQUIRED, FORBIDDEN, GONE, INTERVAL_TOO_BRIEF, LOOP_DETECTED, MESSAGE_TOO_LARGE, METHOD_NOT_ALLOWED, MOVED_PERMANENTLY, MOVED_TEMPORARILY, MULTIPLE_CHOICES, NOT_ACCEPTABLE, NOT_ACCEPTABLE_HERE, NOT_FOUND, NOT_IMPLEMENTED, OK, PAYMENT_REQUIRED, PROXY_AUTHENTICATION_REQUIRED, QUEUED, REQUEST_ENTITY_TOO_LARGE, REQUEST_PENDING, REQUEST_TERMINATED, REQUEST_TIMEOUT, REQUEST_URI_TOO_LONG, RINGING, SERVER_INTERNAL_ERROR, SERVER_TIMEOUT, SERVICE_UNAVAILABLE, SESSION_NOT_ACCEPTABLE, SESSION_PROGRESS, TEMPORARILY_UNAVAILABLE, TOO_MANY_HOPS, TRYING, UNAUTHORIZED, UNDECIPHERABLE, UNSUPPORTED_MEDIA_TYPE, UNSUPPORTED_URI_SCHEME, USE_PROXY, VERSION_NOT_SUPPORTED |
| コンストラクタの概要 | |
|---|---|
SIPResponse()
Constructor. |
|
| メソッドの概要 | |
|---|---|
java.lang.Object |
clone()
Make a clone (deep copy) of this object. |
SIPRequest |
createRequest(SipUri requestURI,
Via via,
CSeq cseq)
Create a new SIPRequest from the given response. |
java.lang.String |
debugDump()
Print formatting function. |
java.lang.String |
encode()
Encode the SIP Request as a string. |
byte[] |
encodeAsBytes()
Encode this into a byte array. |
java.lang.String |
encodeMessage()
Encode the message except for the body. |
boolean |
equals(java.lang.Object other)
Compare for equality. |
java.lang.String |
getDialogId(boolean isServer)
Get a dialog identifier. |
java.lang.String |
getDialogId(boolean isServer,
java.lang.String toTag)
|
java.lang.String |
getFirstLine()
Get the encoded first line. |
java.util.LinkedList |
getMessageAsEncodedStrings()
Get this message as a list of encoded strings. |
java.lang.String |
getReasonPhrase()
Get the reason phrase. |
static java.lang.String |
getReasonPhrase(int rc)
|
java.lang.String |
getSIPVersion()
|
int |
getStatusCode()
Get the staus code (conveniance function). |
StatusLine |
getStatusLine()
Get the status line of the response. |
boolean |
isFinalResponse()
Is this a final response? |
static boolean |
isFinalResponse(int rc)
Return true if the response is a final response. |
boolean |
match(java.lang.Object matchObj)
Match with a template. |
void |
replace(java.lang.String cText,
GenericObject newObj,
boolean matchSubstring)
Replace a portion of this response with a new structure (given by newObj). |
void |
setReasonPhrase(java.lang.String reasonPhrase)
Set the reason phrase. |
void |
setSIPVersion(java.lang.String sipVersion)
|
void |
setStatusCode(int statusCode)
set the status code. |
void |
setStatusLine(StatusLine sl)
Set the status line field. |
java.lang.String |
toString()
|
| クラス gov.nist.javax.sip.message.MessageObject から継承されたメソッド |
|---|
dbgPrint, dbgPrint |
| クラス gov.nist.core.GenericObject から継承されたメソッド |
|---|
debugDump, getClassFromName, getMatcher, isMySubclass, replace, replace, setMatcher |
| クラス java.lang.Object から継承されたメソッド |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| インタフェース javax.sip.message.Message から継承されたメソッド |
|---|
addHeader, getContent, getContentDisposition, getContentEncoding, getContentLanguage, getContentLength, getExpires, getHeader, getHeaderNames, getHeaders, getRawContent, getUnrecognizedHeaders, getUserObject, removeContent, removeHeader, setContent, setContentDisposition, setContentEncoding, setContentLanguage, setContentLength, setExpires, setHeader, setUserObject |
| コンストラクタの詳細 |
|---|
public SIPResponse()
| メソッドの詳細 |
|---|
public static java.lang.String getReasonPhrase(int rc)
public void setStatusCode(int statusCode)
throws java.text.ParseException
javax.sip.message.Response 内の setStatusCodestatusCode - is the status code to set.
IlegalArgumentException - if invalid status code.
java.text.ParseExceptionpublic StatusLine getStatusLine()
public int getStatusCode()
javax.sip.message.Response 内の getStatusCodepublic void setReasonPhrase(java.lang.String reasonPhrase)
javax.sip.message.Response 内の setReasonPhrasereasonPhrase - the reason phrase.
java.lang.IllegalArgumentException - if null stringpublic java.lang.String getReasonPhrase()
javax.sip.message.Response 内の getReasonPhrasepublic static boolean isFinalResponse(int rc)
rc - is the return code.
public boolean isFinalResponse()
public void setStatusLine(StatusLine sl)
sl - Status line to set.public java.lang.String debugDump()
SIPMessage 内の debugDumppublic java.lang.String encode()
SIPMessage 内の encodepublic java.lang.String encodeMessage()
SIPMessage 内の encodeMessagepublic java.util.LinkedList getMessageAsEncodedStrings()
SIPMessage 内の getMessageAsEncodedStringspublic java.lang.Object clone()
javax.sip.message.Message 内の cloneSIPMessage 内の clone
public void replace(java.lang.String cText,
GenericObject newObj,
boolean matchSubstring)
SIPMessage 内の replacecText - is the text that we want to replace.newObj - is the new object that we want to put in place of
cText.matchSubstring - boolean to indicate whether to match on
substrings when searching for a replacement.public boolean equals(java.lang.Object other)
javax.sip.message.Message 内の equalsSIPMessage 内の equalsother - other object to compare with.
public boolean match(java.lang.Object matchObj)
SIPMessage 内の matchmatchObj - template object to match ourselves with (null
in any position in the template object matches wildcard)
public byte[] encodeAsBytes()
SIPMessage 内の encodeAsBytespublic java.lang.String getDialogId(boolean isServer)
SIPMessage 内の getDialogIdisServer - is set to true if this is the UAS
and set to false if this is the UAC
public java.lang.String getDialogId(boolean isServer,
java.lang.String toTag)
public SIPRequest createRequest(SipUri requestURI,
Via via,
CSeq cseq)
requestURI - is the request URI to use.via - is the via header to use.cseq - is the cseq header to use in the generated
request.public java.lang.String getFirstLine()
SIPMessage 内の getFirstLinepublic void setSIPVersion(java.lang.String sipVersion)
javax.sip.message.Message 内の setSIPVersionSIPMessage 内の setSIPVersionpublic java.lang.String getSIPVersion()
javax.sip.message.Message 内の getSIPVersionSIPMessage 内の getSIPVersionpublic java.lang.String toString()
javax.sip.message.Message 内の toStringSIPMessage 内の toString
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||