|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mitre.jsip.SipMessage
Field Summary | |
static int |
BadType
|
static int |
Request
|
static int |
Response
|
Method Summary | |
void |
addContact(SipUri contact)
Add a url to the contact list |
static SipMessage |
createMessage(java.lang.String inputMessage)
Create a SipMessage from a buffer |
SipUriList |
getContactList()
Returns a reference to the contact list for this message. |
int |
getContentLength()
Return the Content Length of the message body |
static int |
getCSeqMethod(java.lang.String s)
Gets the CSeq method type of the incoming message the CSeq header field has the CSeq and the Method of the current transaction This method extracts the Method from the CSeq header. |
java.lang.String |
getHeaderData(int id)
Returns the data contained in the specified header. |
SipUriList |
getRecordRoute()
Returns a reference to the Record-Route for this message. |
SipUri |
getSendToAddress()
|
int |
getType()
Return the type of this message, either SipMessage.Request or
SipMessage.Response |
SipViaList |
getViaList()
Returns a reference to the via list for this message. |
boolean |
hasHeader(int id)
Returns true if the message contains the specified header. |
boolean |
hasSendToAddress()
|
boolean |
haveBody()
Returns true if the message has a body. |
void |
insertHeader(int id,
java.lang.String data)
Inserts a new header into the message. |
java.lang.String |
message()
Generate the full message |
java.lang.String |
messageBody()
Returns the message body. |
void |
setBody(java.lang.String newbody)
Sets the body of the SIP message. |
void |
setContactList(SipUriList newclist)
Sets the contact list for this message. |
void |
setRecordRoute(SipUriList newrr)
Sets the record route for this message. |
void |
setSendToAddress(SipUri address)
|
void |
setViaList(SipViaList copylist)
Sets the via list to be a copy of an existing via list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int Request
public static final int Response
public static final int BadType
Method Detail |
public static SipMessage createMessage(java.lang.String inputMessage)
public boolean haveBody()
public void setBody(java.lang.String newbody)
newbody
- public java.lang.String messageBody()
public int getType()
SipMessage.Request
or
SipMessage.Response
public int getContentLength()
public static int getCSeqMethod(java.lang.String s)
public java.lang.String message()
public void insertHeader(int id, java.lang.String data)
id
- data
- public boolean hasHeader(int id)
id
- public java.lang.String getHeaderData(int id)
id
- public SipViaList getViaList()
public SipUriList getRecordRoute()
public SipUriList getContactList()
public void setViaList(SipViaList copylist)
copylist
- public void setContactList(SipUriList newclist)
newclist
- public void setRecordRoute(SipUriList newrr)
newrr
- public void addContact(SipUri contact)
public boolean hasSendToAddress()
public SipUri getSendToAddress()
public void setSendToAddress(SipUri address)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |