|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.javax.sip.stack.SIPStack | +--gov.nist.javax.sip.stack.SIPTransactionStack
Adds a transaction layer to the SIPStack
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.
Field Summary | |
static int |
BASE_TIMER_INTERVAL
Number of milliseconds between timer ticks (500). |
Fields inherited from class gov.nist.javax.sip.stack.SIPStack |
DEFAULT_PORT |
Method Summary | |
void |
addExtensionMethod(String extensionMethod)
Add an extension method. |
void |
addTransaction(SIPClientTransaction clientTransaction)
Add a new client transaction to the set of existing transactions. |
SIPClientTransaction |
createClientTransaction(MessageChannel encapsulatedMessageChannel)
Creates a client transaction that encapsulates a MessageChannel. |
DialogImpl |
createDialog(SIPTransaction transaction)
|
MessageChannel |
createMessageChannel(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(Hop hop)
Creates a raw message channel. |
SIPServerTransaction |
createServerTransaction(MessageChannel encapsulatedMessageChannel)
Creates a server transaction that encapsulates a MessageChannel. |
SIPTransaction |
findCancelTransaction(gov.nist.javax.sip.message.SIPRequest cancelRequest,
boolean isServer)
Get the transaction to cancel. |
SIPTransaction |
findTransaction(gov.nist.javax.sip.message.SIPMessage sipMessage,
boolean isServer)
Find the transaction corresponding to a given request. |
DialogImpl |
getDialog(String dialogId)
Return the dialog for a given dialog ID. |
boolean |
isDialogCreated(String method)
Return true if extension is supported. |
void |
putDialog(DialogImpl dialog)
Put a dialog into the dialog table. |
Methods inherited from class gov.nist.javax.sip.stack.SIPStack |
addMessageProcessor, createMessageProcessor, exportServerLog, getBadMessageLog, getDefaultRoute, getDefaultRouteHeader, getHostAddress, getMessageProcessor, getMessageProcessors, getNextHop, getNextHop, getPort, getRouteHeader, getRouter, getStackFunction, getStackName, isAlive, isTransportEnabled, isTransportEnabled, logBadMessage, removeMessageProcessor, setHostAddress, setMaxConnections, setRouter, setSingleThreaded, setStackMessageFactory, setStackName, setThreadPoolSize, stopStack |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.nist.javax.sip.stack.SIPTransactionEventListener |
transactionErrorEvent |
Field Detail |
public static final int BASE_TIMER_INTERVAL
Method Detail |
public boolean isDialogCreated(String method)
public void addExtensionMethod(String extensionMethod)
extensionMethod
- -- extension method to support for dialog
creationpublic void putDialog(DialogImpl dialog)
dialog
- -- dialog to put into the dialog table.public DialogImpl createDialog(SIPTransaction transaction)
public DialogImpl getDialog(String dialogId)
dialogId
- is the dialog id to check.public SIPTransaction findTransaction(gov.nist.javax.sip.message.SIPMessage sipMessage, boolean isServer)
isServer
- -- search the server transaction table if true.
public SIPTransaction findCancelTransaction(gov.nist.javax.sip.message.SIPRequest cancelRequest, boolean isServer)
public MessageChannel createMessageChannel(Hop nextHop) throws UnknownHostException
createMessageChannel
in class SIPStack
nextHop
- Hop to create a channel to contact.
UnknownHostException
public MessageChannel createMessageChannel(MessageChannel rawChannel)
rawChannel
- is the transport channel to encapsulate.public MessageChannel createMessageChannel(SIPTransaction transaction)
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(Hop hop) throws UnknownHostException
hop
- -- hop for which to create the raw message channel.
UnknownHostException
public void addTransaction(SIPClientTransaction clientTransaction)
clientTransaction
- -- client transaction to add to the set.
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |