|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgov.nist.javax.sip.stack.SIPMessageStack
gov.nist.javax.sip.stack.SIPTransactionStack
public abstract class SIPTransactionStack
Adds a transaction layer to the SIPMessageStack
class. This is done
by replacing the normal MessageChannels returned by the base class with
transaction-aware MessageChannels that encapsulate the original channels and
handle the transaction state machine, retransmissions, etc.
フィールドの概要 | |
---|---|
static int |
BASE_TIMER_INTERVAL
Number of milliseconds between timer ticks (500). |
static int |
CONNECTION_LINGER_TIME
Connection linger time (seconds) |
クラス gov.nist.javax.sip.stack.SIPMessageStack から継承されたフィールド |
---|
DEFAULT_PORT |
メソッドの概要 | |
---|---|
void |
addExtensionMethod(java.lang.String extensionMethod)
Add an extension method. |
void |
addTransaction(SIPClientTransaction clientTransaction)
Add a new client transaction to the set of existing transactions. |
void |
addTransaction(SIPServerTransaction serverTransaction)
Add a new server transaction to the set of existing transactions. |
SIPClientTransaction |
createClientTransaction(MessageChannel encapsulatedMessageChannel)
Creates a client transaction that encapsulates a MessageChannel. |
SIPDialog |
createDialog(SIPTransaction transaction)
|
MessageChannel |
createMessageChannel(javax.sip.address.Hop nextHop)
Creates a client transaction to handle a new request. |
MessageChannel |
createMessageChannel(MessageChannel rawChannel)
Create a client transaction from a raw channel. |
MessageChannel |
createMessageChannel(SIPTransaction transaction)
Create a client transaction from a raw channel. |
MessageChannel |
createRawMessageChannel(javax.sip.address.Hop hop)
Creates a raw message channel. |
SIPServerTransaction |
createServerTransaction(MessageChannel encapsulatedMessageChannel)
Creates a server transaction that encapsulates a MessageChannel. |
SIPTransaction |
findCancelTransaction(SIPRequest cancelRequest,
boolean isServer)
Get the transaction to cancel. |
SIPServerTransaction |
findPendingTransaction(SIPRequest requestReceived)
|
SIPClientTransaction |
findSubscribeTransaction(SIPRequest notifyMessage)
Find a matching client SUBSCRIBE to the incoming notify. |
SIPTransaction |
findTransaction(SIPMessage sipMessage,
boolean isServer)
Find the transaction corresponding to a given request. |
SIPDialog |
getDialog(java.lang.String dialogId)
Return the dialog for a given dialog ID. |
java.util.Iterator |
getDialogs()
This is for debugging. |
boolean |
hasResources()
|
boolean |
isDialogCreated(java.lang.String method)
Return true if extension is supported. |
ServerRequestInterface |
newSIPServerRequest(SIPRequest requestReceived,
MessageChannel requestMessageChannel)
Handles a new SIP request. |
ServerResponseInterface |
newSIPServerResponse(SIPResponse responseReceived,
MessageChannel responseMessageChannel)
Handles a new SIP response. |
void |
notifyPendingRecordScanner()
|
void |
putDialog(SIPDialog dialog)
Put a dialog into the dialog table. |
void |
putPending(PendingRecord pendingRecord)
|
void |
putPendingTransaction(SIPServerTransaction tr)
Put a transaction in the pending transaction list. |
void |
removeDialog(SIPDialog dialog)
Remove the dialog from the dialog table. |
void |
removePending(PendingRecord pendingRecord)
|
void |
removePendingTransaction(SIPServerTransaction tr)
|
void |
stopStack()
Stop stack. |
void |
transactionErrorEvent(SIPTransactionErrorEvent transactionErrorEvent)
Invoked when an error has ocurred with a transaction. |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int BASE_TIMER_INTERVAL
public static final int CONNECTION_LINGER_TIME
メソッドの詳細 |
---|
public boolean isDialogCreated(java.lang.String method)
public void addExtensionMethod(java.lang.String extensionMethod)
extensionMethod
- --
extension method to support for dialog creationpublic void putDialog(SIPDialog dialog)
dialog
- --
dialog to put into the dialog table.public SIPDialog createDialog(SIPTransaction transaction)
public java.util.Iterator getDialogs()
public void removeDialog(SIPDialog dialog)
dialog
- --
dialog to remove.public SIPDialog getDialog(java.lang.String dialogId)
dialogId
- is the dialog id to check.public SIPClientTransaction findSubscribeTransaction(SIPRequest notifyMessage)
notifyMessage
- public SIPTransaction findTransaction(SIPMessage sipMessage, boolean isServer)
sipMessage
- request for which to retrieve the transaction.isServer
- search the server transaction table if true.
public SIPTransaction findCancelTransaction(SIPRequest cancelRequest, boolean isServer)
public SIPServerTransaction findPendingTransaction(SIPRequest requestReceived)
public void removePendingTransaction(SIPServerTransaction tr)
public ServerRequestInterface newSIPServerRequest(SIPRequest requestReceived, MessageChannel requestMessageChannel)
SIPMessageStack
内の newSIPServerRequest
requestReceived
- Request to handle.requestMessageChannel
- Channel that received message.
public ServerResponseInterface newSIPServerResponse(SIPResponse responseReceived, MessageChannel responseMessageChannel)
SIPMessageStack
内の newSIPServerResponse
responseReceived
- Response to handle.responseMessageChannel
- Channel that received message.
public MessageChannel createMessageChannel(javax.sip.address.Hop nextHop) throws java.net.UnknownHostException
SIPMessageStack
内の createMessageChannel
nextHop
- Hop to create a channel to contact.
java.net.UnknownHostException
public MessageChannel createMessageChannel(MessageChannel rawChannel)
rawChannel
- is the transport channel to encapsulate.public MessageChannel createMessageChannel(SIPTransaction transaction)
transaction
- is the transport channel to encapsulate.public SIPClientTransaction createClientTransaction(MessageChannel encapsulatedMessageChannel)
encapsulatedMessageChannel
- Message channel of the transport layer.public SIPServerTransaction createServerTransaction(MessageChannel encapsulatedMessageChannel)
encapsulatedMessageChannel
- Message channel of the transport layer.public MessageChannel createRawMessageChannel(javax.sip.address.Hop hop) throws java.net.UnknownHostException
hop
- --
hop for which to create the raw message channel.
java.net.UnknownHostException
public void addTransaction(SIPClientTransaction clientTransaction)
clientTransaction
- --
client transaction to add to the set.public void addTransaction(SIPServerTransaction serverTransaction) throws java.io.IOException
serverTransaction
- --
server transaction to add to the set.
java.io.IOException
public boolean hasResources()
public void transactionErrorEvent(SIPTransactionErrorEvent transactionErrorEvent)
SIPTransactionEventListener
内の transactionErrorEvent
transactionErrorEvent
- Error event.public void putPending(PendingRecord pendingRecord)
public void removePending(PendingRecord pendingRecord)
public void notifyPendingRecordScanner()
public void stopStack()
SIPMessageStack
内の stopStack
public void putPendingTransaction(SIPServerTransaction tr)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |