|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の replace
ctext
- 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
内の debugDump
public javax.sip.address.URI getRequestURI()
javax.sip.message.Request
内の getRequestURI
public void setRequestURI(javax.sip.address.URI uri)
javax.sip.message.Request
内の setRequestURI
uri
- the new Request URI of this request messagepublic void setMethod(java.lang.String method)
javax.sip.message.Request
内の setMethod
method
- is the method to set.
java.lang.IllegalArgumentException
- if the method is nullpublic java.lang.String getMethod()
javax.sip.message.Request
内の getMethod
public java.lang.String encode()
SIPMessage
内の encode
public java.lang.String encodeMessage()
SIPMessage
内の encodeMessage
public java.lang.String toString()
javax.sip.message.Message
内の toString
SIPMessage
内の toString
public java.lang.Object clone()
javax.sip.message.Message
内の clone
SIPMessage
内の clone
public boolean equals(java.lang.Object other)
javax.sip.message.Message
内の equals
SIPMessage
内の equals
other
- object to compare ourselves with.
public java.util.LinkedList getMessageAsEncodedStrings()
SIPMessage
内の getMessageAsEncodedStrings
public boolean match(java.lang.Object matchObj)
SIPMessage
内の match
matchObj
- object to match ourselves with (null matches wildcard)
public java.lang.String getDialogId(boolean isServer)
SIPMessage
内の getDialogId
isServer
- is set to true if this is the UAS
and set to false if this is the UACpublic java.lang.String getDialogId(boolean isServer, java.lang.String toTag)
public byte[] encodeAsBytes()
SIPMessage
内の encodeAsBytes
public 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
内の setSIPVersion
SIPMessage
内の setSIPVersion
sipVersion
- the sip version to set.
java.text.ParseException
public java.lang.String getSIPVersion()
javax.sip.message.Message
内の getSIPVersion
SIPMessage
内の getSIPVersion
public java.lang.Object getTransaction()
public void setTransaction(java.lang.Object transaction)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |