|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface must be implemented by any Object representing a JAIN SIP Provider that interacts directly with a proprietary (stack vendor specific) implementation of a SIP stack. This interface defines the methods that will be used by any registered SIP User application implementing the JainSipListener interface to send SIP messages. It must be noted that any object that implements the:
JainSipListener| Method Summary | |
void |
addJainSipListener(JainSipListener listener)
Adds a JainSipListener to the list of registered Event Listeners of this JainSipProvider. |
Message |
decryptMessage(Message encryptedMessage,
java.lang.String key)
Returns decrypted version of encrypted message using specified key with scheme specified in EncryptionHeader |
Message |
encryptMessage(Message unencryptedMessage,
java.lang.String key)
Returns encrypted version of unencrypted message using specified key with scheme specified in EncryptionHeader |
RequestMessage |
getClientTransactionRequest(int clientTransactionId)
Returns the RequestMessage associated with client transaction specified by the transaction id |
ResponseMessage |
getClientTransactionResponse(int clientTransactionId)
Returns the last ResponseMessage associated with client transaction specified by the transaction id |
ListeningPoint |
getListeningPoint()
Returns the ListeningPoint of this JainSipProvider |
CallIdHeader |
getNewCallIdHeader()
Returns a new CallIdHeader for the Provider's ListeningPoint |
int |
getNewCSeqNumber(CallIdHeader callIdHeader)
Returns a new CSeq for the call represented by the specified CallIdHeader |
RequestMessage |
getServerTransactionRequest(int serverTransactionId)
Returns the RequestMessage associated with server transaction specified by the transaction id |
ResponseMessage |
getServerTransactionResponse(int serverTransactionId)
Returns the last ResponseMessage associated with server transaction specified by the transaction id |
JainSipStack |
getStack()
Returns the JainSipStack that this JainSipProvider is attached to. |
void |
removeJainSipListener(JainSipListener listener)
Removes JainSipListener from the list of registered JainSipListeners for all ListeningPoints of this JainSipProvider. |
int |
sendAck(int clientTransactionId,
AckMessage ack)
Sends an AckMessage to the recepient of the invite associated with transaction specified by client transaction id (using specified ack message) |
int |
sendAck(JainSipListener source,
int clientTransactionId)
Sends an AckMessage to the recepient of the invite associated with transaction specified by client transaction id (ack message with empty body is automatically generated by provider) |
int |
sendAck(JainSipListener source,
int clientTransactionId,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
Sends an AckMessage to the recepient of the invite associated with transaction specified by client transaction id (ack message with specified body is automatically generated by provider) |
int |
sendBye(ByeMessage bye)
Terminate call leg (using specified bye message) |
int |
sendBye(JainSipListener source,
InviteMessage invite)
Terminate call leg associated with specified InviteMessage (bye message is automatically generated by provider) Note - the ByeMessage will have a CSeq number equal to the CSeq number of the InviteMessage plus one i.e. |
int |
sendBye(JainSipListener source,
ResponseMessage response)
Terminate call leg associated with specified ResponseMessage (bye message is automatically generated by provider) Note - the ByeMessage will have a CSeq number equal to the CSeq number of the ResponseMessage plus one i.e. |
int |
sendCancel(int clientTansactionId,
CancelMessage cancel)
Cancel the pending request associated with transaction specified by proprietary transaction id (using specified cancel message) |
int |
sendCancel(JainSipListener source,
int clientTransactionId)
Cancel the pending request associated with transaction specified by client transaction id (cancel message is automatically generated by provider) |
int |
sendInvite(InviteMessage invite)
Sends a specified InviteMessage and returns the ID of the implicitly created transaction. |
int |
sendInvite(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
Sends an automatically generated InviteMessage and returns the ID of the implicitly created transaction. |
int |
sendOptions(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to)
Sends an automatically generated OptionsMessage and returns the ID of the implicitly created transaction. |
int |
sendOptions(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
Sends an automatically generated OptionsMessage and returns the ID of the implicitly created transaction. |
int |
sendOptions(OptionsMessage options)
Sends a specified OptionsMessage and returns the ID of the implicitly created transaction. |
int |
sendRegister(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to,
NameAddress[] contacts)
Sends an automatically generated RegisterMessage and returns the ID of the implicitly created transaction. |
int |
sendRegister(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to,
NameAddress[] contacts,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
Sends an automatically generated RegisterMessage and returns the ID of the implicitly created transaction. |
int |
sendRegister(RegisterMessage register)
Sends a specified RegisterMessage and returns the ID of the implicitly created transaction. |
int |
sendRequest(RequestMessage request)
Sends a specified RequestMessage and returns the ID of the implicitly created transaction. |
void |
sendResponse(int serverTransactionId,
ResponseMessage response)
Sends a response to the request associated with server transaction specified by server transaction id (using specified response message) |
void |
sendResponse(JainSipListener source,
int serverTransactionId,
int statusCode)
Sends a response to the request associated with server transaction specified by server transaction id (response message is automatically generated by provider) |
void |
sendResponse(JainSipListener source,
int serverTransactionId,
int statusCode,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
Sends a response to the request associated with server transaction specified by server transaction id (response message is automatically generated by provider) |
| Method Detail |
public void addJainSipListener(JainSipListener listener)
throws java.util.TooManyListenersException,
IPListenerAlreadyRegisteredException,
java.lang.IllegalArgumentException
jainSipListener - the JainSipListener to be added.
public void removeJainSipListener(JainSipListener listener)
throws IPListenerNotRegisteredException,
java.lang.IllegalArgumentException
jainSipListener - the JainSipListener to be removed from this JainSipProvider.public JainSipStack getStack()
public ListeningPoint getListeningPoint()
public int sendRequest(RequestMessage request)
throws SipException,
java.lang.IllegalArgumentException
public int sendInvite(InviteMessage invite)
throws SipException,
java.lang.IllegalArgumentException
public int sendInvite(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
throws SipException,
java.lang.IllegalArgumentException
public int sendRegister(RegisterMessage register)
throws SipException,
java.lang.IllegalArgumentException
public int sendRegister(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to,
NameAddress[] contacts)
throws SipException,
java.lang.IllegalArgumentException
public int sendRegister(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to,
NameAddress[] contacts,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
throws SipException,
java.lang.IllegalArgumentException
public int sendOptions(OptionsMessage options)
throws SipException,
java.lang.IllegalArgumentException
public int sendOptions(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to)
throws SipException,
java.lang.IllegalArgumentException
public int sendOptions(JainSipListener source,
URI requestURI,
NameAddress from,
NameAddress to,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
throws SipException,
java.lang.IllegalArgumentException
public RequestMessage getServerTransactionRequest(int serverTransactionId)
throws TransactionDoesNotExistException
serverTransactionId - the server transaction id
public RequestMessage getClientTransactionRequest(int clientTransactionId)
throws TransactionDoesNotExistException
clientTransactionId - the client transaction id
public ResponseMessage getServerTransactionResponse(int serverTransactionId)
throws TransactionDoesNotExistException,
ResponseDoesNotExistException
serverTransactionId - the server transaction id
public ResponseMessage getClientTransactionResponse(int clientTransactionId)
throws TransactionDoesNotExistException,
ResponseDoesNotExistException
clientTransactionId - the client transaction id
public int sendAck(int clientTransactionId,
AckMessage ack)
throws SipException,
java.lang.IllegalArgumentException,
TransactionDoesNotExistException
clientTransactionId - the client transaction id
public int sendAck(JainSipListener source,
int clientTransactionId)
throws SipException,
TransactionDoesNotExistException
source - the JainSipListener invoking this methodclientTransactionId - the client transaction id
public int sendAck(JainSipListener source,
int clientTransactionId,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
throws SipException,
TransactionDoesNotExistException
source - the JainSipListener invoking this methodclientTransactionId - the client transaction idbody - bodybodyType - type of bodybodySubType - sub-type of body
public int sendCancel(int clientTansactionId,
CancelMessage cancel)
throws SipException,
java.lang.IllegalArgumentException,
TransactionDoesNotExistException
clientTransactionId - the transaction idcancel - the CancelMessage to be sent
public int sendCancel(JainSipListener source,
int clientTransactionId)
throws TransactionDoesNotExistException,
SipException
source - the JainSipListener invoking this methodclientTransactionId - the client transaction id
public int sendBye(ByeMessage bye)
throws SipException,
java.lang.IllegalArgumentException
bye - the ByeMessage to be sent
public int sendBye(JainSipListener source,
InviteMessage invite)
throws SipException
source - the JainSipListener invoking this methodinvite - the InviteMessage used to establish call leg
public int sendBye(JainSipListener source,
ResponseMessage response)
throws SipException
source - the JainSipListener invoking this methodresponse - a ResponseMessage associated with call leg
public void sendResponse(int serverTransactionId,
ResponseMessage response)
throws java.lang.IllegalArgumentException,
SipException,
TransactionDoesNotExistException
serverTransactionId - the server transaction idresponse - the ResponseMessage to be sent
public void sendResponse(JainSipListener source,
int serverTransactionId,
int statusCode)
throws java.lang.IllegalArgumentException,
TransactionDoesNotExistException
source - the JainSipListener invoking this methodserverTransactionId - the server transaction idstatusCode - the response code of the response to be sent
public void sendResponse(JainSipListener source,
int serverTransactionId,
int statusCode,
java.lang.Object body,
java.lang.String bodyType,
java.lang.String bodySubType)
throws java.lang.IllegalArgumentException,
TransactionDoesNotExistException
source - the JainSipListener invoking this methodserverTransactionId - the server transaction idstatusCode - the response code of the response to be sentbody - bodybodyType - type of bodybodySubType - sub-type of body
public CallIdHeader getNewCallIdHeader()
throws SipException
public int getNewCSeqNumber(CallIdHeader callIdHeader)
throws SipException,
java.lang.IllegalArgumentException
callIdHeader - the CallIdHeader
public Message decryptMessage(Message encryptedMessage,
java.lang.String key)
throws SipException,
java.lang.IllegalArgumentException
encryptedMessage - message to be decryptedkey - key to use for decryption
public Message encryptMessage(Message unencryptedMessage,
java.lang.String key)
throws SipException,
java.lang.IllegalArgumentException
unencryptedMessage - message to be encryptedkey - key to use for encryption
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems