Method Summary |
|
public void | addHeader(Header sipHeader) Adds a SIP header. |
public void | addHeader(String sipHeader) Adds a SIP header. |
public void | addUnparsed(String unparsed) Adds a header to the unparsed list of headers. |
public void | attachHeader(Header h, boolean replaceflag) Attaches a header to the end of the existing headers in
this Message structure. |
public void | attachHeader(Header header, boolean replaceFlag, boolean top) Attaches the header to the SIP Message structure at a specified
position in its list of headers. |
public Object | clone() Clones this message (create a new deep physical copy). |
public String | encode() Encodes this message as a string. |
public byte[] | encodeAsBytes() Encodes the message as a byte array. |
public boolean | equals(Object other) Compares for equality.
Parameters: other - the other object to compare with. |
public CSeqHeader | getCSeqHeader() Gets the CSeqHeader list of header (null if one does not exist). |
public int | getCSeqHeaderNumber() Gets the sequence number. |
public CallIdHeader | getCallId() Gets the CallIdHeader header (null if one does not exist). |
public String | getCallIdentifier() Gets the call ID string. |
public ContactList | getContactHeaders() Gets the Contact list of headers (null if one does not exist). |
public Object | getContent() Gets the content of the header. |
public ContentLengthHeader | getContentLengthHeader() Gets the ContentLengthHeader header (null if one does not exist). |
public ContentTypeHeader | getContentTypeHeader() Gets the contentType header (null if one does not exist). |
public String | getDialogId(boolean isServer) Gets a dialog identifier. |
public String | getDialogId(boolean isServer, String toTag) Gets a dialog id given the remote tag. |
abstract public String | getFirstLine() Returns the encoded first line. |
public FromHeader | getFromHeader() Gets the from header. |
public String | getFromHeaderTag() Returns the from tag. |
public Header | getHeader(String headerName) Gets the first header of the given name. |
public HeaderList | getHeaderList(String headerName) Gets a SIP Header list given its name.
Parameters: headerName - is the name of the header to get. |
public Enumeration | getHeaderNames() Gets the header names.
a list iterator to a list of header names. |
public Enumeration | getHeaders() Returns an iterator for the list of headers in this message. |
public Enumeration | getHeaders(String headerName) Gets a SIP header or Header list given its name.
Parameters: headerName - is the name of the header to get. |
public String | getMessageContent() Gets the message body as a string. |
public byte[] | getRawContent() Gets the message content as an array of bytes. |
public RecordRouteList | getRecordRouteHeaders() Gets the RecordRoute header list (null if one does not exist). |
public RouteList | getRouteHeaders() Gets the Route List of headers (null if one does not exist). |
abstract public String | getSIPVersion() Gets the SIP vesrion string. |
public ToHeader | getTo() Gets the To header (null if one does not exist). |
public String | getToTag() Returns the To tag. |
public ViaHeader | getTopmostVia() Gets the topmost via header. |
public String | getTransactionId() Generates (compute) a transaction ID for this SIP message.
A string containing the concatenation of variousportions of the FromHeader,To,Via and RequestURI portionsof this message as specified in RFC 2543:All responses to a request contain the same values inthe Call-ID, CSeqHeader, To, and FromHeader fields(with the possible addition of a tag in the To field(section 10.43)). |
public Enumeration | getUnrecognizedHeaders() Gets a list containing the unrecognized headers. |
public ViaList | getViaHeaders() Gets the Via list of headers (null if one does not exist). |
public boolean | hasContent() Returns true if this message has a body. |
public boolean | hasFromHeaderTag() Returns true if the message has a FromHeader header tag. |
public boolean | hasHeader(String headerName) Returns true if the Message has a header of the given name.
Parameters: headerName - is the header name for which we are testing. |
public boolean | hasToTag() Returns true if the message has a To header tag. |
public static boolean | isRequestHeader(Header sipHeader) Returns true if the header belongs only in a Request.
Parameters: sipHeader - is the header to test. |
public static boolean | isResponseHeader(Header sipHeader) Returns true if the header belongs only in a response.
Parameters: sipHeader - is the header to test. |
public void | removeContent() Removes the message content if it exists. |
public void | removeHeader(String headerName, boolean top) Removes a header given its name. |
public void | removeHeader(String headerName) Removes all headers given its name. |
public void | setCSeqHeader(CSeqHeader cseqHeader) Sets the CSeqHeader header. |
public void | setCallId(CallIdHeader callId) Sets the call id header. |
public void | setCallId(String callId) |
public void | setContent(Object content, ContentTypeHeader contentTypeHeader) Sets the message content after converting the given object to a
String. |
public void | setContent(Object content) Sets the message content after converting the given object to a
String. |
public void | setContentLength(ContentLengthHeader contentLength) Sets the content length header. |
public void | setFromHeader(FromHeader from) Sets the From header field value. |
public void | setFromHeaderTag(String tag) Sets the FromHeader Tag. |
public void | setHeader(Header header) Attaches a header (replacing the original header). |
public void | setHeader(HeaderList sipHeaderList) Sets the header given a list of headers. |
public void | setHeaders(Vector headers) Sets a header from a linked list of headers. |
public void | setMessageContent(String type, String subType, String messageContent) Sets the message content given type and subtype.
Parameters: type - is the message type (eg. |
public void | setMessageContent(String type, String subType, byte[] messageContent) Sets the message content for a given type and subtype. |
public void | setMessageContent(String content) Sets the message content for this message. |
public void | setMessageContent(byte[] content) Sets the message content as an array of bytes. |
abstract public void | setSIPVersion(String sipVersion) Sets the SIP version header. |
public void | setTo(ToHeader to) Sets the To header field value. |
public void | setToTag(String tag) Sets the to tag. |
public void | setVia(ViaList viaList) Sets a list of via headers. |
public void | setVia(Vector viaList) Sets a list of via headers. |