|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.message.MessageObject
gov.nist.javax.sip.message.SIPMessage
gov.nist.javax.sip.message.SIPRequest
public final class SIPRequest
The SIP Request structure.
| フィールドの概要 |
|---|
| インタフェース javax.sip.message.Request から継承されたフィールド |
|---|
ACK, BYE, CANCEL, INFO, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER, SUBSCRIBE, UPDATE |
| コンストラクタの概要 | |
|---|---|
SIPRequest()
Constructor. |
|
| メソッドの概要 | |
|---|---|
java.lang.Object |
clone()
Make a clone (deep copy) of this object. |
SIPRequest |
createACKRequest()
Create an ACK request from this request. |
SIPRequest |
createAckRequest(To responseToHeader)
Creates a default ACK SIPRequest message for this original request. |
SIPRequest |
createBYERequest(boolean switchHeaders)
Create a BYE request from this request. |
SIPRequest |
createCancelRequest()
Creates a default SIPResquest message that would cancel this request. |
SIPResponse |
createResponse(int statusCode)
Creates a default SIPResponse message for this request. |
SIPResponse |
createResponse(int statusCode,
java.lang.String reasonPhrase)
Creates a default SIPResponse message for this request. |
SIPRequest |
createSIPRequest(RequestLine requestLine,
boolean switchHeaders)
Create a new default SIPRequest from the original request. |
java.lang.String |
debugDump()
Convert to a formatted string for pretty printing. |
java.lang.String |
encode()
Encode the SIP Request as a string. |
byte[] |
encodeAsBytes()
Encode this into a byte array. |
java.lang.String |
encodeMessage()
Encode only the headers and not the content. |
boolean |
equals(java.lang.Object other)
Compare for equality. |
static java.lang.String |
getCannonicalName(java.lang.String method)
Set to standard constants to speed up processing. |
java.lang.String |
getDialogId(boolean isServer)
Get a dialog identifier. |
java.lang.String |
getDialogId(boolean isServer,
java.lang.String toTag)
Get a dialog id given the remote tag. |
java.lang.String |
getFirstLine()
Get the first line encoded. |
java.util.LinkedList |
getMessageAsEncodedStrings()
Get the message as a linked list of strings. |
java.lang.String |
getMethod()
Get the method from the request line. |
RequestLine |
getRequestLine()
Get the Request Line of the SIPRequest. |
javax.sip.address.URI |
getRequestURI()
A conveniance function to access the Request URI. |
java.lang.String |
getSIPVersion()
Get the SIP version. |
java.lang.Object |
getTransaction()
|
java.lang.String |
getViaHost()
Get the host from the topmost via header. |
int |
getViaPort()
Get the port from the topmost via header. |
boolean |
match(java.lang.Object matchObj)
Match with a template. |
void |
replace(java.lang.String ctext,
GenericObject newObject,
boolean matchSubstring)
Replace a portion of this response with a new structure (given by newObj). |
void |
setMethod(java.lang.String method)
Set the method. |
void |
setRequestLine(RequestLine requestLine)
Set the request line of the SIP Request. |
void |
setRequestURI(javax.sip.address.URI uri)
Sets the RequestURI of Request. |
void |
setSIPVersion(java.lang.String sipVersion)
Set the sip version. |
void |
setTransaction(java.lang.Object transaction)
|
java.lang.String |
toString()
ALias for encode above. |
| クラス 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 SIPRequest()
| メソッドの詳細 |
|---|
public static java.lang.String getCannonicalName(java.lang.String method)
public void replace(java.lang.String ctext,
GenericObject newObject,
boolean matchSubstring)
SIPMessage 内の replacectext - is the text that we want to replace.newObject - is the new object that we want to put in place of
ctext.matchSubstring - public RequestLine getRequestLine()
public void setRequestLine(RequestLine requestLine)
requestLine - is the request line to set in the SIP Request.public java.lang.String debugDump()
SIPMessage 内の debugDumppublic javax.sip.address.URI getRequestURI()
javax.sip.message.Request 内の getRequestURIpublic void setRequestURI(javax.sip.address.URI uri)
javax.sip.message.Request 内の setRequestURIuri - the new Request URI of this request messagepublic void setMethod(java.lang.String method)
javax.sip.message.Request 内の setMethodmethod - is the method to set.
java.lang.IllegalArgumentException - if the method is nullpublic java.lang.String getMethod()
javax.sip.message.Request 内の getMethodpublic java.lang.String encode()
SIPMessage 内の encodepublic java.lang.String encodeMessage()
SIPMessage 内の encodeMessagepublic java.lang.String toString()
javax.sip.message.Message 内の toStringSIPMessage 内の toStringpublic java.lang.Object clone()
javax.sip.message.Message 内の cloneSIPMessage 内の clonepublic boolean equals(java.lang.Object other)
javax.sip.message.Message 内の equalsSIPMessage 内の equalsother - object to compare ourselves with.
public java.util.LinkedList getMessageAsEncodedStrings()
SIPMessage 内の getMessageAsEncodedStringspublic boolean match(java.lang.Object matchObj)
SIPMessage 内の matchmatchObj - object to match ourselves with (null matches wildcard)
public 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 byte[] encodeAsBytes()
SIPMessage 内の encodeAsBytespublic SIPResponse createResponse(int statusCode)
statusCode - Status code for the response.
Reason phrase is generated.
public SIPResponse createResponse(int statusCode,
java.lang.String reasonPhrase)
statusCode - Status code for the response.reasonPhrase - Reason phrase for this response.
public SIPRequest createCancelRequest()
public SIPRequest createAckRequest(To responseToHeader)
responseToHeader - To header to use for this request.
public SIPRequest createSIPRequest(RequestLine requestLine,
boolean switchHeaders)
requestLine - is the new request line.switchHeaders - is a boolean flag that causes to and from
headers to switch (set this to true if you are the
server of the transaction and are generating a BYE
request). If the headers are switched, we generate
new From and To headers otherwise we just use the
incoming headers.
public SIPRequest createBYERequest(boolean switchHeaders)
switchHeaders - is a boolean flag that causes from and
isServerTransaction to headers to be swapped. Set this
to true if you are the server of the dialog and are generating
a BYE request for the dialog.
public SIPRequest createACKRequest()
public java.lang.String getViaHost()
public int getViaPort()
public java.lang.String getFirstLine()
SIPMessage 内の getFirstLine
public void setSIPVersion(java.lang.String sipVersion)
throws java.text.ParseException
javax.sip.message.Message 内の setSIPVersionSIPMessage 内の setSIPVersionsipVersion - the sip version to set.
java.text.ParseExceptionpublic java.lang.String getSIPVersion()
javax.sip.message.Message 内の getSIPVersionSIPMessage 内の getSIPVersionpublic java.lang.Object getTransaction()
public void setTransaction(java.lang.Object transaction)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||