|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgov.nist.javax.sip.SipProviderImpl
public final class SipProviderImpl
Implementation of the JAIN-SIP provider interface.
コンストラクタの概要 | |
---|---|
SipProviderImpl(EventScanner eventScanner)
Creates a new instance of SipProviderImpl |
メソッドの概要 | |
---|---|
void |
addSipListener(javax.sip.SipListener sipListener)
This method registers the SipListener object to this SipProvider, once registered the SIP Listener can send events on the SipProvider and recieve events emitted from the SipProvider. |
javax.sip.Dialog |
createDialog(javax.sip.Transaction transaction)
This is a proposed extension for the next spec revision. |
boolean |
equals(java.lang.Object obj)
|
javax.sip.header.CallIdHeader |
getNewCallId()
Returns a unique CallIdHeader for identifying dialogues between two SIP applications. |
javax.sip.ClientTransaction |
getNewClientTransaction(javax.sip.message.Request request)
Once an application wants to a send a new request it must first request a new client transaction identifier. |
javax.sip.ServerTransaction |
getNewServerTransaction(javax.sip.message.Request request)
An application has the responsibility of deciding to respond to a Request that does not match an existing server transaction. |
javax.sip.SipStack |
getSipStack()
Returns the SipStack that this SipProvider is attached to. |
void |
handleEvent(java.util.EventObject sipEvent,
SIPTransaction transaction)
Handle the SIP event - because we have only one listener and we are already in the context of a separate thread, we dont need to enque the event and signal another thread. |
void |
removeSipListener(javax.sip.SipListener sipListener)
Removes the SipListener from this SipProvider. |
void |
sendRequest(javax.sip.message.Request request)
Sends specified Request and returns void i.e. |
void |
sendResponse(javax.sip.message.Response response)
Sends specified Response and returns void i.e. |
void |
transactionErrorEvent(SIPTransactionErrorEvent transactionErrorEvent)
Invoked when an error has ocurred with a transaction. |
クラス java.lang.Object から継承されたメソッド |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public SipProviderImpl(EventScanner eventScanner)
メソッドの詳細 |
---|
public void handleEvent(java.util.EventObject sipEvent, SIPTransaction transaction)
sipEvent
- is the event to process.public boolean equals(java.lang.Object obj)
java.lang.Object
内の equals
public void addSipListener(javax.sip.SipListener sipListener) throws java.util.TooManyListenersException
If an attempt is made to re-register the existing SipListener this method returns silently. A previous SipListener must be removed from the SipProvider before another SipListener can be registered to the SipProvider.
javax.sip.SipProvider
内の addSipListener
sipListener
- SipListener to be registered with the Provider.
java.util.TooManyListenersException
- this exception is thrown when a new SipListener attempts to
register with the SipProvider when another SipListener is
already registered with this SipProvider.public javax.sip.header.CallIdHeader getNewCallId()
javax.sip.SipProvider
内の getNewCallId
public javax.sip.ClientTransaction getNewClientTransaction(javax.sip.message.Request request) throws javax.sip.TransactionUnavailableException
javax.sip.SipProvider
内の getNewClientTransaction
request
- The new Request message that is to handled statefully by the
Provider.
javax.sip.TransactionUnavailableException
ClientTransaction
public javax.sip.ServerTransaction getNewServerTransaction(javax.sip.message.Request request) throws javax.sip.TransactionAlreadyExistsException, javax.sip.TransactionUnavailableException
javax.sip.SipProvider
内の getNewServerTransaction
request
- The initial Request message that the doesn't match an existing
transaction that the application decides to handle statefully.
javax.sip.TransactionAlreadyExistsException
- if a transaction already exists that is already handling this
Request. This may happen if the application gets retransmits
of the same request before the initial transaction is
allocated.
javax.sip.TransactionUnavailableException
ServerTransaction
public javax.sip.SipStack getSipStack()
javax.sip.SipProvider
内の getSipStack
SipStack
public void removeSipListener(javax.sip.SipListener sipListener)
javax.sip.SipProvider
内の removeSipListener
sipListener
- The SipListener to be removed from this SipProviderpublic void sendRequest(javax.sip.message.Request request) throws javax.sip.SipException
Request
and returns void i.e.
no transaction record is associated with this action. This method implies
that the application is functioning statelessly specific to this Request,
hence the underlying SipProvider acts statelessly.
Once the Request message has been passed to this method, the SipProvider will forget about this Request. No transaction semantics will be associated with the Request and no retranmissions will occur on the Request by the SipProvider, if these semantics are required it is the responsibility of the application not the JAIN SIP Stack.
javax.sip.SipProvider
内の sendRequest
request
- The Request message to send statelessly
javax.sip.SipException
- if implementation cannot send request for any reasonRequest
public void sendResponse(javax.sip.message.Response response) throws javax.sip.SipException
Response
and returns void i.e.
no transaction record is associated with this action. This method implies
that the application is functioning as either a stateless proxy or a
stateless User Agent Server.
javax.sip.SipProvider
内の sendResponse
response
- -
the Response to send statelessly.
javax.sip.SipException
- if implementation cannot send response for any reasonResponse
,
Response
public javax.sip.Dialog createDialog(javax.sip.Transaction transaction) throws javax.sip.SipException
transaction
- -
transaction for which to attach the dialog
javax.sip.SipException
public void transactionErrorEvent(SIPTransactionErrorEvent transactionErrorEvent)
SIPTransactionEventListener
内の transactionErrorEvent
transactionErrorEvent
- Error event.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |