|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mitre.jsip.SipMessage | +--org.mitre.jsip.SipRequestMessage
Fields inherited from class org.mitre.jsip.SipMessage |
BadType, Request, Response |
Method Summary | |
void |
cancel()
cancel this message |
static java.lang.String |
createCallId()
Static method to create a new SIP Call ID. |
static SipRequestMessage |
createRequestMessage(int mtype)
Main method for getting an instance of a Request Message |
static SipRequestMessage |
createRequestMessage(java.lang.String inputMessage)
|
int |
getMethod()
Returns the method of this SIP request. |
SipUri |
getRequestUri()
Returns the request URI for this message. |
java.util.Date |
getTimestamp()
Returns the timestamp of the last transmission. |
abstract void |
handleCallRequest(SipClient client)
message specific logic for a request cooresponding to a call. |
abstract boolean |
handleNewRequest(SipClient client)
message specific logic for a new request message. |
void |
incrSendCount()
Increments the retransmission counter. |
int |
lastTimeTick()
Returns the last time tick. |
int |
sendCount()
Returns the current value of the retransmission counter for this message. |
void |
setRequestUri(SipUri newrequri)
Returns the type of this SIP request |
void |
setTimestamp()
Recalculates the timestamp on the message. |
void |
setTimeTick(int newtt)
Sets the current time tick. |
Methods inherited from class org.mitre.jsip.SipMessage |
addContact, createMessage, getContactList, getContentLength, getCSeqMethod, getHeaderData, getRecordRoute, getSendToAddress, getType, getViaList, hasHeader, hasSendToAddress, haveBody, insertHeader, message, messageBody, setBody, setContactList, setRecordRoute, setSendToAddress, setViaList |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String createCallId()
public static SipRequestMessage createRequestMessage(java.lang.String inputMessage)
public static SipRequestMessage createRequestMessage(int mtype)
type
- The type of message to createpublic int getMethod()
org.mitre.jsip.Sip
public void setRequestUri(SipUri newrequri)
newrequri
- public SipUri getRequestUri()
public java.util.Date getTimestamp()
public void setTimestamp()
public int lastTimeTick()
public void setTimeTick(int newtt)
newtt
- public int sendCount()
public void incrSendCount()
public void cancel()
public abstract boolean handleNewRequest(SipClient client)
true
or not (false
)public abstract void handleCallRequest(SipClient client)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |