|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.irt.rfidentify.presence.SipLayer
public class SipLayer
Constructor Summary | |
---|---|
SipLayer(java.lang.String ip,
int port)
initialize the SIP stack. |
Method Summary | |
---|---|
java.lang.String |
getHost()
|
int |
getPort()
|
java.lang.String |
getUsername()
|
void |
processDialogTerminated(javax.sip.DialogTerminatedEvent evt)
This method is called by the SIP stack when a dialog (session) ends. |
void |
processIOException(javax.sip.IOExceptionEvent evt)
This method is called by the SIP stack when there's an asynchronous message transmission error. |
void |
processRequest(javax.sip.RequestEvent evt)
This method is called by the SIP stack when a new request arrives. |
void |
processResponse(javax.sip.ResponseEvent evt)
This method is called by the SIP stack when a response arrives. |
void |
processTimeout(javax.sip.TimeoutEvent evt)
This method is called by the SIP stack when there's no answer to a message. |
void |
processTransactionTerminated(javax.sip.TransactionTerminatedEvent evt)
This method is called by the SIP stack when a transaction ends. |
void |
sendMessage(java.lang.String sender,
java.lang.String to,
java.lang.String message)
This method uses the SIP stack to send a message. |
void |
setMainThread(java.lang.Thread thread)
|
void |
setUsername(java.lang.String newUsername)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SipLayer(java.lang.String ip, int port) throws javax.sip.PeerUnavailableException, javax.sip.TransportNotSupportedException, javax.sip.InvalidArgumentException, javax.sip.ObjectInUseException, java.util.TooManyListenersException
javax.sip.PeerUnavailableException
javax.sip.TransportNotSupportedException
javax.sip.InvalidArgumentException
javax.sip.ObjectInUseException
java.util.TooManyListenersException
Method Detail |
---|
public void sendMessage(java.lang.String sender, java.lang.String to, java.lang.String message) throws java.text.ParseException, javax.sip.InvalidArgumentException, javax.sip.SipException
java.text.ParseException
javax.sip.InvalidArgumentException
javax.sip.SipException
public void processResponse(javax.sip.ResponseEvent evt)
processResponse
in interface javax.sip.SipListener
public void processRequest(javax.sip.RequestEvent evt)
processRequest
in interface javax.sip.SipListener
public void processTimeout(javax.sip.TimeoutEvent evt)
processTimeout
in interface javax.sip.SipListener
public void processIOException(javax.sip.IOExceptionEvent evt)
processIOException
in interface javax.sip.SipListener
public void processDialogTerminated(javax.sip.DialogTerminatedEvent evt)
processDialogTerminated
in interface javax.sip.SipListener
public void processTransactionTerminated(javax.sip.TransactionTerminatedEvent evt)
processTransactionTerminated
in interface javax.sip.SipListener
public java.lang.String getHost()
public int getPort()
public java.lang.String getUsername()
public void setUsername(java.lang.String newUsername)
public void setMainThread(java.lang.Thread thread)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |