gov.nist.javax.sip.message
クラス SIPMessage

java.lang.Object
  上位を拡張 gov.nist.core.GenericObject
      上位を拡張 gov.nist.javax.sip.message.MessageObject
          上位を拡張 gov.nist.javax.sip.message.SIPMessage
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Cloneable, javax.sip.message.Message
直系の既知のサブクラス:
SIPRequest, SIPResponse

public abstract class SIPMessage
extends MessageObject
implements javax.sip.message.Message

This is the main SIP Message structure.

バージョン:
JAIN-SIP-1.1 $Revision: 1.10 $ $Date: 2004/09/10 18:26:08 $
作成者:
M. Ranganathan
This code is in the public domain.
関連項目:
StringMsgParser, PipelinedMsgParser, 直列化された形式

コンストラクタの概要
SIPMessage()
          Constructor: Initializes lists and list headers.
 
メソッドの概要
 void addHeader(javax.sip.header.Header sipHeader)
          Add a SIP header.
 void addHeader(java.lang.String sipHeader)
          Add a SIP header.
 void addUnparsed(java.lang.String unparsed)
          Add a header to the unparsed list of headers.
 void attachHeader(SIPHeader h, boolean replaceflag)
          Attach a header to the end of the existing headers in this SIPMessage structure.
 void attachHeader(SIPHeader header, boolean replaceFlag, boolean top)
          Attach the header to the SIP Message structure at a specified position in its list of headers.
 java.lang.Object clone()
          clone this message (create a new deep physical copy).
 java.lang.String debugDump()
          Get the string representation of this header (for pretty printing the generated structure).
 java.lang.String encode()
          Encode this message as a string.
 byte[] encodeAsBytes()
          Encode the message as a byte array.
abstract  java.lang.String encodeMessage()
          Encode all the headers except the contents.
 boolean equals(java.lang.Object other)
          Compare for equality.
 Authorization getAuthorization()
          Get the Authorization header (null if one does not exist).
 javax.sip.header.CallIdHeader getCallId()
          Get the CallID header (null if one does not exist)
 ContactList getContactHeaders()
          Get the Contact list of headers (null if one does not exist).
 java.lang.Object getContent()
          Get the content of the header.
 javax.sip.header.ContentDispositionHeader getContentDisposition()
          get content disposition header or null if no such header exists.
 javax.sip.header.ContentEncodingHeader getContentEncoding()
          get the content encoding header.
 javax.sip.header.ContentLanguageHeader getContentLanguage()
          Get the contentLanguage header.
 javax.sip.header.ContentLengthHeader getContentLength()
          Get the ContentLength header (null if one does not exist).
 ContentType getContentTypeHeader()
          Get the contentType header (null if one does not exist).
 javax.sip.header.CSeqHeader getCSeq()
          Get the CSeq list of header (null if one does not exist).
abstract  java.lang.String getDialogId(boolean isServerTransaction)
          Get A dialog identifier constructed from this messsage.
 ErrorInfoList getErrorInfoHeaders()
          Get the ErrorInfo list of headers (null if one does not exist).
 javax.sip.header.ExpiresHeader getExpires()
          Get the exipres header.
abstract  java.lang.String getFirstLine()
          Return the encoded first line.
 javax.sip.header.FromHeader getFrom()
          Get the from header.
 java.lang.String getFromTag()
          Return the from tag.
 javax.sip.header.Header getHeader(java.lang.String headerName)
          Get the first header of the given name.
 java.util.ListIterator getHeaderNames()
          Get the header names.
 java.util.ListIterator getHeaders()
          Return an iterator for the list of headers in this message.
 java.util.ListIterator getHeaders(java.lang.String headerName)
          Get a SIP header or Header list given its name.
 javax.sip.header.MaxForwardsHeader getMaxForwards()
          Get the MaxForwards header (null if one does not exist).
 java.util.LinkedList getMessageAsEncodedStrings()
          Get the headers as a linked list of encoded Strings
 java.lang.String getMessageContent()
          Get the message body as a string.
 byte[] getRawContent()
          Get the message content as an array of bytes.
 RecordRouteList getRecordRouteHeaders()
          Get the RecordRoute header list (null if one does not exist).
 RouteList getRouteHeaders()
          Get the Route List of headers (null if one does not exist).
abstract  java.lang.String getSIPVersion()
           
 int getSize()
           
 javax.sip.header.ToHeader getTo()
          Get the To header (null if one does not exist).
 Via getTopmostVia()
          Get the topmost via header.
 java.lang.String getToTag()
          Return the to tag.
 java.lang.String getTransactionId()
          Generate (compute) a transaction ID for this SIP message.
 java.util.ListIterator getUnrecognizedHeaders()
          Get a list containing the unrecognized headers.
 java.lang.Object getUserObject()
           
 ViaList getViaHeaders()
          Get the Via list of headers (null if one does not exist).
 boolean hasContent()
          Return true if this message has a body.
 boolean hasFromTag()
          Return true if the message has a From header tag.
 boolean hasHeader(java.lang.String headerName)
          Return true if the SIPMessage has a header of the given name.
 boolean hasToTag()
          Return true if the message has a To header tag.
static boolean isRequestHeader(SIPHeader sipHeader)
          Return true if the header belongs only in a Request.
static boolean isResponseHeader(SIPHeader sipHeader)
          Return true if the header belongs only in a response.
 boolean match(java.lang.Object other)
          Template match for SIP messages.
 void merge(java.lang.Object template)
          Merge a request with a template
 void removeContent()
          Remove the message content if it exists.
 void removeHeader(java.lang.String headerName)
          Remove all headers given its name.
 void removeHeader(java.lang.String headerName, boolean top)
          Remove a header given its name.
 void replace(java.lang.String cText, GenericObject newObject, boolean matchSubstring)
          Recursively replace a portion of this object with a new Object.
 void replace(java.lang.String cText, GenericObjectList newObject, boolean matchSubstring)
          Recursively replace a portion of this object with a new Object.
 void setCallId(javax.sip.header.CallIdHeader callId)
          Set the call id header.
 void setCallId(java.lang.String callId)
          Get the CallID header (null if one does not exist)
 void setContent(java.lang.Object content, javax.sip.header.ContentTypeHeader contentTypeHeader)
          Set the message content after converting the given object to a String.
 void setContentDisposition(javax.sip.header.ContentDispositionHeader contentDispositionHeader)
          Set the content disposition header.
 void setContentEncoding(javax.sip.header.ContentEncodingHeader contentEncodingHeader)
           
 void setContentLanguage(javax.sip.header.ContentLanguageHeader contentLanguageHeader)
           
 void setContentLength(javax.sip.header.ContentLengthHeader contentLength)
          Set the content length header.
 void setCSeq(javax.sip.header.CSeqHeader cseqHeader)
          Set the CSeq header.
 void setExpires(javax.sip.header.ExpiresHeader expiresHeader)
          Set the expiresHeader
 void setFrom(javax.sip.header.FromHeader from)
           
 void setFromTag(java.lang.String tag)
          Set the From Tag.
 void setHeader(javax.sip.header.Header sipHeader)
          Attach a header (replacing the original header).
 void setHeader(SIPHeaderList sipHeaderList)
          Set the header given a list of headers.
 void setHeaders(java.util.List headers)
          Set a header from a linked list of headers.
 void setMaxForwards(javax.sip.header.MaxForwardsHeader maxForwards)
          Set the max forwards header.
 void setMessageContent(byte[] content)
          Set the message content as an array of bytes.
 void setMessageContent(java.lang.String content)
          Set the message content for this message.
 void setMessageContent(java.lang.String type, java.lang.String subType, byte[] messageContent)
          Set the message content for a given type and subtype.
 void setMessageContent(java.lang.String type, java.lang.String subType, java.lang.String messageContent)
          Set the message content given type and subtype.
abstract  void setSIPVersion(java.lang.String sipVersion)
           
 void setSize(int size)
          Set the size of all the headers.
 void setTo(javax.sip.header.ToHeader to)
           
 void setToTag(java.lang.String tag)
          Set the to tag.
 void setUserObject(java.lang.Object obj)
           
 void setVia(java.util.List viaList)
          Set A list of via headers.
abstract  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
 

コンストラクタの詳細

SIPMessage

public SIPMessage()
Constructor: Initializes lists and list headers. All the headers for which there can be multiple occurances in a message are derived from the SIPHeaderListClass. All singleton headers are derived from SIPHeader class.

メソッドの詳細

isRequestHeader

public static boolean isRequestHeader(SIPHeader sipHeader)
Return true if the header belongs only in a Request.

パラメータ:
sipHeader - is the header to test.

isResponseHeader

public static boolean isResponseHeader(SIPHeader sipHeader)
Return true if the header belongs only in a response.

パラメータ:
sipHeader - is the header to test.

getMessageAsEncodedStrings

public java.util.LinkedList getMessageAsEncodedStrings()
Get the headers as a linked list of encoded Strings

戻り値:
a linked list with each element of the list containing a string encoded header in canonical form.

encodeMessage

public abstract java.lang.String encodeMessage()
Encode all the headers except the contents. For debug logging.


getDialogId

public abstract java.lang.String getDialogId(boolean isServerTransaction)
Get A dialog identifier constructed from this messsage. This is an id that can be used to identify dialogs.

パラメータ:
isServerTransaction - is a flag that indicates whether this is a server transaction.

match

public boolean match(java.lang.Object other)
Template match for SIP messages. The matchObj is a SIPMessage template to match against. This method allows you to do pattern matching with incoming SIP messages. Null matches wild card.

オーバーライド:
クラス GenericObject 内の match
パラメータ:
other - is the match template to match against.
戻り値:
true if a match occured and false otherwise.

replace

public void replace(java.lang.String cText,
                    GenericObject newObject,
                    boolean matchSubstring)
             throws java.lang.IllegalArgumentException
Recursively replace a portion of this object with a new Object. You cannot use this function for replacing sipheaders in a message (for that, use the remove and attach functions). Its intended use is for global find and replace of poritons of headers such as addresses.

オーバーライド:
クラス GenericObject 内の replace
パラメータ:
cText - canonical representation of object that has to be replaced.
newObject - object that replaces the object that has the text cText
matchSubstring - if true then if cText is a substring of the encoded text of the Object then a match is flagged.
例外:
java.lang.IllegalArgumentException - on null args and if replacementObject does not derive from GenericObject or GenericObjectList

replace

public void replace(java.lang.String cText,
                    GenericObjectList newObject,
                    boolean matchSubstring)
             throws java.lang.IllegalArgumentException
Recursively replace a portion of this object with a new Object. You cannot use this function for replacing sipheaders in a message (for that, use the remove and attach functions). Its intended use is for global find and replace of poritons of headers such as addresses.

オーバーライド:
クラス GenericObject 内の replace
パラメータ:
cText - canonical representation of object that has to be replaced.
newObject - object that replaces the object that has the text cText
matchSubstring - if true then flag a match if cText is a substring of the encoded text of the object.
例外:
java.lang.IllegalArgumentException - on null args and if replacementObject does not derive from GenericObject or GenericObjectList

merge

public void merge(java.lang.Object template)
Merge a request with a template

オーバーライド:
クラス MessageObject 内の merge
パラメータ:
template - -- template to merge with.

encode

public java.lang.String encode()
Encode this message as a string. This is more efficient when the payload is a string (rather than a binary array of bytes). If the payload cannot be encoded as a UTF-8 string then it is simply ignored (will not appear in the encoded message).

定義:
クラス MessageObject 内の encode
戻り値:
The Canonical String representation of the message (including the canonical string representation of the SDP payload if it exists).

encodeAsBytes

public byte[] encodeAsBytes()
Encode the message as a byte array. Use this when the message payload is a binary byte array.

戻り値:
The Canonical byte array representation of the message (including the canonical byte array representation of the SDP payload if it exists all in one contiguous byte array).

clone

public java.lang.Object clone()
clone this message (create a new deep physical copy). All headers in the message are cloned. You can modify the cloned copy without affecting the original. The content is handled as follows: If the content is a String, or a byte array, a new copy of the content is allocated and copied over. If the content is an Object that supports the clone method, then the clone method is invoked and the cloned content is the new content. Otherwise, the content of the new message is set equal to null.

定義:
インタフェース javax.sip.message.Message 内の clone
オーバーライド:
クラス MessageObject 内の clone
戻り値:
A cloned copy of this object.

debugDump

public java.lang.String debugDump()
Get the string representation of this header (for pretty printing the generated structure).

オーバーライド:
クラス MessageObject 内の debugDump
戻り値:
Formatted string representation of the object. Note that this is NOT the same as encode(). This is used mainly for debugging purposes.

setHeader

public void setHeader(javax.sip.header.Header sipHeader)
Attach a header (replacing the original header).

定義:
インタフェース javax.sip.message.Message 内の setHeader
パラメータ:
sipHeader - SIPHeader that replaces a header of the same type.

setHeaders

public void setHeaders(java.util.List headers)
Set a header from a linked list of headers.

パラメータ:
headers - -- a list of headers to set.

attachHeader

public void attachHeader(SIPHeader h,
                         boolean replaceflag)
                  throws SIPDuplicateHeaderException
Attach a header to the end of the existing headers in this SIPMessage structure. This is equivalent to the attachHeader(SIPHeader,replaceflag,false); which is the normal way in which headers are attached. This was added in support of JAIN-SIP.

パラメータ:
h - header to attach.
replaceflag - if true then replace a header if it exists.
例外:
SIPDuplicateHeaderException - If replaceFlag is false and only a singleton header is allowed (fpr example CSeq).

attachHeader

public void attachHeader(SIPHeader header,
                         boolean replaceFlag,
                         boolean top)
                  throws SIPDuplicateHeaderException
Attach the header to the SIP Message structure at a specified position in its list of headers.

パラメータ:
header - Header to attach.
replaceFlag - If true then replace the existing header.
top - Location in the header list to insert the header.
例外:
SIPDuplicateHeaderException - if the header is of a type that cannot tolerate duplicates and one of this type already exists (e.g. CSeq header).
java.lang.IndexOutOfBoundsException - If the index specified is greater than the number of headers that are in this message.

removeHeader

public void removeHeader(java.lang.String headerName,
                         boolean top)
Remove a header given its name. If multiple headers of a given name are present then the top flag determines which end to remove headers from.

パラメータ:
headerName - is the name of the header to remove.
top - -- flag that indicates which end of header list to process.

removeHeader

public void removeHeader(java.lang.String headerName)
Remove all headers given its name.

定義:
インタフェース javax.sip.message.Message 内の removeHeader
パラメータ:
headerName - is the name of the header to remove.

getTransactionId

public java.lang.String getTransactionId()
Generate (compute) a transaction ID for this SIP message.

戻り値:
A string containing the concatenation of various portions of the From,To,Via and RequestURI portions of this message as specified in RFC 2543: All responses to a request contain the same values in the Call-ID, CSeq, To, and From fields (with the possible addition of a tag in the To field (section 10.43)). This allows responses to be matched with requests. Incorporates a bug fix for a bug sent in by Gordon Ledgard of IPera for generating transactionIDs when no port is present in the via header. Incorporates a bug fix for a bug report sent in by Chris Mills of Nortel Networks (converts to lower case when returning the transaction identifier).

hasContent

public boolean hasContent()
Return true if this message has a body.


getHeaders

public java.util.ListIterator getHeaders()
Return an iterator for the list of headers in this message.

戻り値:
an Iterator for the headers of this message.

getHeader

public javax.sip.header.Header getHeader(java.lang.String headerName)
Get the first header of the given name.

定義:
インタフェース javax.sip.message.Message 内の getHeader
戻り値:
header -- the first header of the given name.

getContentTypeHeader

public ContentType getContentTypeHeader()
Get the contentType header (null if one does not exist).

戻り値:
contentType header

getFrom

public javax.sip.header.FromHeader getFrom()
Get the from header.

戻り値:
-- the from header.

getErrorInfoHeaders

public ErrorInfoList getErrorInfoHeaders()
Get the ErrorInfo list of headers (null if one does not exist).

戻り値:
List containing ErrorInfo headers.

getContactHeaders

public ContactList getContactHeaders()
Get the Contact list of headers (null if one does not exist).

戻り値:
List containing Contact headers.

getViaHeaders

public ViaList getViaHeaders()
Get the Via list of headers (null if one does not exist).

戻り値:
List containing Via headers.

setVia

public void setVia(java.util.List viaList)
Set A list of via headers.

パラメータ:
viaList - a list of via headers to add.

setHeader

public void setHeader(SIPHeaderList sipHeaderList)
Set the header given a list of headers.

パラメータ:
sipHeaderList - a headerList to set

getTopmostVia

public Via getTopmostVia()
Get the topmost via header.

戻り値:
the top most via header if one exists or null if none exists.

getCSeq

public javax.sip.header.CSeqHeader getCSeq()
Get the CSeq list of header (null if one does not exist).

戻り値:
CSeq header

getAuthorization

public Authorization getAuthorization()
Get the Authorization header (null if one does not exist).

戻り値:
Authorization header.

getMaxForwards

public javax.sip.header.MaxForwardsHeader getMaxForwards()
Get the MaxForwards header (null if one does not exist).

戻り値:
Max-Forwards header

setMaxForwards

public void setMaxForwards(javax.sip.header.MaxForwardsHeader maxForwards)
Set the max forwards header.

パラメータ:
maxForwards - is the MaxForwardsHeader to set.

getRouteHeaders

public RouteList getRouteHeaders()
Get the Route List of headers (null if one does not exist).

戻り値:
List containing Route headers

getCallId

public javax.sip.header.CallIdHeader getCallId()
Get the CallID header (null if one does not exist)

戻り値:
Call-ID header .

setCallId

public void setCallId(javax.sip.header.CallIdHeader callId)
Set the call id header.

パラメータ:
callId - call idHeader (what else could it be?)

setCallId

public void setCallId(java.lang.String callId)
               throws java.text.ParseException
Get the CallID header (null if one does not exist)

パラメータ:
callId - -- the call identifier to be assigned to the call id header
例外:
java.text.ParseException

getRecordRouteHeaders

public RecordRouteList getRecordRouteHeaders()
Get the RecordRoute header list (null if one does not exist).

戻り値:
Record-Route header

getTo

public javax.sip.header.ToHeader getTo()
Get the To header (null if one does not exist).

戻り値:
To header

setTo

public void setTo(javax.sip.header.ToHeader to)

setFrom

public void setFrom(javax.sip.header.FromHeader from)

getContentLength

public javax.sip.header.ContentLengthHeader getContentLength()
Get the ContentLength header (null if one does not exist).

定義:
インタフェース javax.sip.message.Message 内の getContentLength
戻り値:
content-length header.

getMessageContent

public java.lang.String getMessageContent()
                                   throws java.io.UnsupportedEncodingException
Get the message body as a string. If the message contains a content type header with a specified charset, and if the payload has been read as a byte array, then it is returned encoded into this charset.

戻り値:
Message body (as a string)
例外:
java.io.UnsupportedEncodingException - if the platform does not support the charset specified in the content type header.

getRawContent

public byte[] getRawContent()
Get the message content as an array of bytes. If the payload has been read as a String then it is decoded using the charset specified in the content type header if it exists. Otherwise, it is encoded using the default encoding which is UTF-8.

定義:
インタフェース javax.sip.message.Message 内の getRawContent
戻り値:
an array of bytes that is the message payload.

setMessageContent

public void setMessageContent(java.lang.String type,
                              java.lang.String subType,
                              java.lang.String messageContent)
Set the message content given type and subtype.

パラメータ:
type - is the message type (eg. application)
subType - is the message sybtype (eg. sdp)
messageContent - is the messge content as a string.

setContent

public void setContent(java.lang.Object content,
                       javax.sip.header.ContentTypeHeader contentTypeHeader)
                throws java.text.ParseException
Set the message content after converting the given object to a String.

定義:
インタフェース javax.sip.message.Message 内の setContent
パラメータ:
content - -- content to set.
contentTypeHeader - -- content type header corresponding to content.
例外:
java.text.ParseException

getContent

public java.lang.Object getContent()
Get the content of the header.

定義:
インタフェース javax.sip.message.Message 内の getContent
戻り値:
the content of the sip message.

setMessageContent

public void setMessageContent(java.lang.String type,
                              java.lang.String subType,
                              byte[] messageContent)
Set the message content for a given type and subtype.

パラメータ:
type - is the messge type.
subType - is the message subType.
messageContent - is the message content as a byte array.

setMessageContent

public void setMessageContent(java.lang.String content)
Set the message content for this message.

パラメータ:
content - Message body as a string.

setMessageContent

public void setMessageContent(byte[] content)
Set the message content as an array of bytes.

パラメータ:
content - is the content of the message as an array of bytes.

removeContent

public void removeContent()
Remove the message content if it exists.

定義:
インタフェース javax.sip.message.Message 内の removeContent

getHeaders

public java.util.ListIterator getHeaders(java.lang.String headerName)
Get a SIP header or Header list given its name.

定義:
インタフェース javax.sip.message.Message 内の getHeaders
パラメータ:
headerName - is the name of the header to get.
戻り値:
a header or header list that contians the retrieved header.

hasHeader

public boolean hasHeader(java.lang.String headerName)
Return true if the SIPMessage has a header of the given name.

パラメータ:
headerName - is the header name for which we are testing.
戻り値:
true if the header is present in the message

hasFromTag

public boolean hasFromTag()
Return true if the message has a From header tag.

戻り値:
true if the message has a from header and that header has a tag.

hasToTag

public boolean hasToTag()
Return true if the message has a To header tag.

戻り値:
true if the message has a to header and that header has a tag.

getFromTag

public java.lang.String getFromTag()
Return the from tag.

戻り値:
the tag from the from header.

setFromTag

public void setFromTag(java.lang.String tag)
Set the From Tag.

パラメータ:
tag - -- tag to set in the from header.

setToTag

public void setToTag(java.lang.String tag)
Set the to tag.

パラメータ:
tag - -- tag to set.

getToTag

public java.lang.String getToTag()
Return the to tag.


getFirstLine

public abstract java.lang.String getFirstLine()
Return the encoded first line.


addHeader

public void addHeader(javax.sip.header.Header sipHeader)
Add a SIP header.

定義:
インタフェース javax.sip.message.Message 内の addHeader
パラメータ:
sipHeader - -- sip header to add.

addUnparsed

public void addUnparsed(java.lang.String unparsed)
Add a header to the unparsed list of headers.

パラメータ:
unparsed - -- unparsed header to add to the list.

addHeader

public void addHeader(java.lang.String sipHeader)
Add a SIP header.

パラメータ:
sipHeader - -- string version of SIP header to add.

getUnrecognizedHeaders

public java.util.ListIterator getUnrecognizedHeaders()
Get a list containing the unrecognized headers.

定義:
インタフェース javax.sip.message.Message 内の getUnrecognizedHeaders
戻り値:
a linked list containing unrecongnized headers.

getHeaderNames

public java.util.ListIterator getHeaderNames()
Get the header names.

定義:
インタフェース javax.sip.message.Message 内の getHeaderNames
戻り値:
a list iterator to a list of header names. These are ordered in the same order as are present in the message.

equals

public boolean equals(java.lang.Object other)
Compare for equality.

定義:
インタフェース javax.sip.message.Message 内の equals
オーバーライド:
クラス GenericObject 内の equals
パラメータ:
other - -- the other object to compare with.
戻り値:
true if the objects are euqal and false otherwise

getContentDisposition

public javax.sip.header.ContentDispositionHeader getContentDisposition()
get content disposition header or null if no such header exists.

定義:
インタフェース javax.sip.message.Message 内の getContentDisposition
戻り値:
the contentDisposition header

getContentEncoding

public javax.sip.header.ContentEncodingHeader getContentEncoding()
get the content encoding header.

定義:
インタフェース javax.sip.message.Message 内の getContentEncoding
戻り値:
the contentEncoding header.

getContentLanguage

public javax.sip.header.ContentLanguageHeader getContentLanguage()
Get the contentLanguage header.

定義:
インタフェース javax.sip.message.Message 内の getContentLanguage
戻り値:
the content language header.

getExpires

public javax.sip.header.ExpiresHeader getExpires()
Get the exipres header.

定義:
インタフェース javax.sip.message.Message 内の getExpires
戻り値:
the expires header or null if one does not exist.

setExpires

public void setExpires(javax.sip.header.ExpiresHeader expiresHeader)
Set the expiresHeader

定義:
インタフェース javax.sip.message.Message 内の setExpires
パラメータ:
expiresHeader - -- the expires header to set.

setContentDisposition

public void setContentDisposition(javax.sip.header.ContentDispositionHeader contentDispositionHeader)
Set the content disposition header.

定義:
インタフェース javax.sip.message.Message 内の setContentDisposition
パラメータ:
contentDispositionHeader - -- content disposition header.

setContentEncoding

public void setContentEncoding(javax.sip.header.ContentEncodingHeader contentEncodingHeader)
定義:
インタフェース javax.sip.message.Message 内の setContentEncoding

setContentLanguage

public void setContentLanguage(javax.sip.header.ContentLanguageHeader contentLanguageHeader)
定義:
インタフェース javax.sip.message.Message 内の setContentLanguage

setContentLength

public void setContentLength(javax.sip.header.ContentLengthHeader contentLength)
Set the content length header.

定義:
インタフェース javax.sip.message.Message 内の setContentLength
パラメータ:
contentLength - -- content length header.

setSize

public void setSize(int size)
Set the size of all the headers. This is for book keeping. Called by the parser.

パラメータ:
size - -- size of the headers.

getSize

public int getSize()

setCSeq

public void setCSeq(javax.sip.header.CSeqHeader cseqHeader)
Set the CSeq header.

パラメータ:
cseqHeader - -- CSeq Header.

setSIPVersion

public abstract void setSIPVersion(java.lang.String sipVersion)
                            throws java.text.ParseException
定義:
インタフェース javax.sip.message.Message 内の setSIPVersion
例外:
java.text.ParseException

getSIPVersion

public abstract java.lang.String getSIPVersion()
定義:
インタフェース javax.sip.message.Message 内の getSIPVersion

toString

public abstract java.lang.String toString()
定義:
インタフェース javax.sip.message.Message 内の toString
オーバーライド:
クラス java.lang.Object 内の toString

getUserObject

public java.lang.Object getUserObject()
定義:
インタフェース javax.sip.message.Message 内の getUserObject

setUserObject

public void setUserObject(java.lang.Object obj)
定義:
インタフェース javax.sip.message.Message 内の setUserObject