|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nist.javax.sip.stack.SIPTransactionStack
This is the sip stack. It is essentially a management interface. It manages the resources for the JAIN-SIP implementation. This is the structure that is wrapped by the SipStackImpl.
SipStackImpl| Field Summary | |
static int |
BASE_TIMER_INTERVAL
|
static int |
CONNECTION_LINGER_TIME
|
| 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. |
void |
addTransaction(SIPServerTransaction serverTransaction)
Add a new server transaction to the set of existing transactions. |
SIPClientTransaction |
createClientTransaction(SIPRequest sipRequest,
MessageChannel encapsulatedMessageChannel)
Creates a client transaction that encapsulates a MessageChannel. |
SIPDialog |
createDialog(SIPTransaction transaction)
Create a dialog and add this transaction to it. |
MessageChannel |
createMessageChannel(SIPRequest request,
MessageProcessor mp,
Hop nextHop)
Creates a client transaction to handle a new request. |
MessageChannel |
createRawMessageChannel(int sourcePort,
Hop nextHop)
Creates a new MessageChannel for a given Hop. |
Server |
createServerHeaderForStack()
Create a standard Server header for the stack (i.e. one that takes the stack name as a product token) and return it. |
SIPServerTransaction |
createServerTransaction(MessageChannel encapsulatedMessageChannel)
Creates a server transaction that encapsulates a MessageChannel. |
void |
disableLogging()
For debugging -- allows you to disable logging or enable logging selectively. |
void |
enableLogging()
Globally enable message logging ( for debugging) |
SIPTransaction |
findCancelTransaction(SIPRequest cancelRequest,
boolean isServer)
Get the transaction to cancel. |
SIPServerTransaction |
findMergedTransaction(SIPRequest sipRequest)
See if there is a pending transaction with the same Merge ID as the Merge ID obtained from the SIP Request. |
SIPServerTransaction |
findPendingTransaction(SIPRequest requestReceived)
Finds a pending server transaction. |
SIPClientTransaction |
findSubscribeTransaction(SIPRequest notifyMessage,
ListeningPointImpl listeningPoint)
Find a matching client SUBSCRIBE to the incoming notify. |
SIPTransaction |
findTransaction(SIPMessage sipMessage,
boolean isServer)
Find the transaction corresponding to a given request. |
AddressResolver |
getAddressResolver()
get the address resolver interface. |
SIPDialog |
getDialog(String dialogId)
Return the dialog for a given dialog ID. |
Iterator |
getDialogs()
This is for debugging. |
String |
getHostAddress()
Deprecated. |
gov.nist.core.LogWriter |
getLogWriter()
Get the logger. |
int |
getMaxMessageSize()
Maximum size of a single TCP message. |
NetworkLayer |
getNetworkLayer()
Return the network layer (i.e. the interface for socket creation or the socket factory for the stack). |
Hop |
getNextHop(SIPRequest sipRequest)
Get the default route string. |
SIPServerTransaction |
getRetransmissionAlertTransaction(String dialogId)
Retrieve a transaction from our table of transactions with pending retransmission alerts. |
Router |
getRouter()
|
Router |
getRouter(SIPRequest request)
Get the router algorithm. |
ServerLog |
getServerLog()
Server log is the place where we log messages for the signaling trace viewer. |
gov.nist.core.ThreadAuditor |
getThreadAuditor()
get the thread auditor object |
boolean |
isAlive()
return the status of the toExit flag. |
boolean |
isDialogCreated(String method)
Return true if extension is supported. |
boolean |
isEventForked(String ename)
Return true if a given event can result in a forked subscription. |
boolean |
isLoggingEnabled()
Return true if logging is enabled for this stack. |
void |
mapTransaction(SIPServerTransaction transaction)
Map a Server transaction (possibly sending out a 100 if the server tx is an INVITE). |
ServerRequestInterface |
newSIPServerRequest(SIPRequest requestReceived,
MessageChannel requestMessageChannel)
Handles a new SIP request. |
void |
printDialogTable()
Print the dialog table. |
void |
putDialog(SIPDialog dialog)
Put a dialog into the dialog table. |
void |
putPendingTransaction(SIPServerTransaction tr)
Put a transaction in the pending transaction list. |
void |
removeDialog(SIPDialog dialog)
Remove the dialog from the dialog table. |
void |
removeFromMergeTable(SIPServerTransaction tr)
Remove a transaction from the merge table. |
void |
removePendingTransaction(SIPServerTransaction tr)
Remove a pending Server transaction from the stack. |
void |
removeTransaction(SIPTransaction sipTransaction)
Remove transaction. |
void |
setAddressResolver(AddressResolver addressResolver)
Set the address resolution interface |
void |
setMaxConnections(int nconnections)
Set the max # of simultaneously handled TCP connections. |
void |
setSingleThreaded()
Set the flag that instructs the stack to only start a single thread for sequentially processing incoming udp messages (thus serializing the processing). |
void |
setStackName(String stackName)
Set the descriptive name of the stack. |
void |
setThreadPoolSize(int size)
Set the thread pool size for processing incoming UDP messages. |
void |
stopStack()
Stop stack. |
void |
transactionErrorEvent(SIPTransactionErrorEvent transactionErrorEvent)
Invoked when an error has ocurred with a transaction. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int BASE_TIMER_INTERVAL
public static final int CONNECTION_LINGER_TIME
| Method Detail |
public void disableLogging()
public void enableLogging()
public void printDialogTable()
public SIPServerTransaction getRetransmissionAlertTransaction(String dialogId)
dialogId -
public boolean isDialogCreated(String method)
public void addExtensionMethod(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)
transaction - --
tx to add to the dialog.
public Iterator getDialogs()
public void removeDialog(SIPDialog dialog)
dialog - --
dialog to remove.public SIPDialog getDialog(String dialogId)
dialogId - is the dialog id to check.
public SIPClientTransaction findSubscribeTransaction(SIPRequest notifyMessage,
ListeningPointImpl listeningPoint)
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)
requestReceived -
public SIPServerTransaction findMergedTransaction(SIPRequest sipRequest)
public void removePendingTransaction(SIPServerTransaction tr)
tr - --
pending transaction to remove.public void removeFromMergeTable(SIPServerTransaction tr)
tr - -- the server transaction to remove from the merge table.public void mapTransaction(SIPServerTransaction transaction)
transaction - --
the server transaction to map.
public ServerRequestInterface newSIPServerRequest(SIPRequest requestReceived,
MessageChannel requestMessageChannel)
requestReceived - Request to handle.requestMessageChannel - Channel that received message.
public MessageChannel createMessageChannel(SIPRequest request,
MessageProcessor mp,
Hop nextHop)
throws IOException
nextHop - Hop to create a channel to contact.
IOException
public SIPClientTransaction createClientTransaction(SIPRequest sipRequest,
MessageChannel encapsulatedMessageChannel)
encapsulatedMessageChannel - Message channel of the transport layer.public SIPServerTransaction createServerTransaction(MessageChannel encapsulatedMessageChannel)
encapsulatedMessageChannel - Message channel of the transport layer.public void addTransaction(SIPClientTransaction clientTransaction)
clientTransaction - --
client transaction to add to the set.public void removeTransaction(SIPTransaction sipTransaction)
public void addTransaction(SIPServerTransaction serverTransaction)
throws IOException
serverTransaction - --
server transaction to add to the set.
IOExceptionpublic void transactionErrorEvent(SIPTransactionErrorEvent transactionErrorEvent)
transactionErrorEvent in interface SIPTransactionEventListenertransactionErrorEvent - Error event.public void stopStack()
public void putPendingTransaction(SIPServerTransaction tr)
public NetworkLayer getNetworkLayer()
public boolean isLoggingEnabled()
public gov.nist.core.LogWriter getLogWriter()
public ServerLog getServerLog()
public int getMaxMessageSize()
public void setSingleThreaded()
public void setThreadPoolSize(int size)
size - --
the thread pool size.public void setMaxConnections(int nconnections)
nconnections - --
the number of connections to handle.
public Hop getNextHop(SIPRequest sipRequest)
throws SipException
sipRequest - is the request for which we want to compute the next hop.
SipExceptionpublic void setStackName(String stackName)
stackName - --
descriptive name of the stack.public Server createServerHeaderForStack()
public String getHostAddress()
public Router getRouter(SIPRequest request)
public Router getRouter()
public boolean isAlive()
public MessageChannel createRawMessageChannel(int sourcePort,
Hop nextHop)
throws UnknownHostException
sourcePort - -
source port of the message channel to be created.nextHop - Hop to create a MessageChannel to.
UnknownHostException - If the host in the Hop doesn't exist.public boolean isEventForked(String ename)
ename - --
event name to check.public AddressResolver getAddressResolver()
public void setAddressResolver(AddressResolver addressResolver)
addressResolver - --
the address resolver to set.public gov.nist.core.ThreadAuditor getThreadAuditor()
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||