gov.nist.javax.sip
クラス SipStackImpl

java.lang.Object
  上位を拡張 gov.nist.javax.sip.stack.SIPMessageStack
      上位を拡張 gov.nist.javax.sip.stack.SIPTransactionStack
          上位を拡張 gov.nist.javax.sip.SipStackImpl
すべての実装されたインタフェース:
SIPTransactionEventListener, java.util.EventListener, javax.sip.SipStack

public class SipStackImpl
extends SIPTransactionStack
implements javax.sip.SipStack

Implementation of SipStack. The JAIN-SIP stack is initialized by a set of properties (see the JAIN SIP documentation for an explanation of these properties). In addition to these, the following are meaningful properties for the NIST SIP stack (specify these in the property array when you create the JAIN-SIP statck).:

バージョン:
JAIN-SIP-1.1 $Revision: 1.37 $ $Date: 2004/10/01 16:05:08 $
作成者:
M. Ranganathan
This code is in the public domain.

フィールドの概要
 
クラス gov.nist.javax.sip.stack.SIPTransactionStack から継承されたフィールド
BASE_TIMER_INTERVAL, CONNECTION_LINGER_TIME
 
クラス gov.nist.javax.sip.stack.SIPMessageStack から継承されたフィールド
DEFAULT_PORT
 
コンストラクタの概要
SipStackImpl(java.util.Properties configurationProperties)
           
 
メソッドの概要
 javax.sip.SipProvider createSipProvider()
          Creates a new peer SipProvider on this SipStack on a specified ListeningPoint and returns a reference to the newly created SipProvider object.
 void deleteSipProvider(javax.sip.SipProvider sipProvider)
          Deletes the specified peer SipProvider attached to this SipStack.
 void finalize()
          Finalization -- stop the stack on finalization.
 java.lang.String getIPAddress()
          Gets the IP Address that identifies this SipStack instance.
 java.util.Iterator getListeningPoints()
          Returns an Iterator of existing ListeningPoints created by this SipStackImpl.
 javax.sip.address.Router getRouter()
          Gets the Router object that identifies the default Routing policy of this SipStack.
 java.util.Iterator getSipProviders()
          Returns an Iterator of existing peer SipProviders that have been created by this SipStackImpl.
 java.lang.String getStackName()
          Gets the user friendly name that identifies this SipStack instance.
 boolean isRetransmissionFilterActive()
          This method returns the value of the retransmission filter helper function for User Agent Client and User Agent Server applications.
 
クラス gov.nist.javax.sip.stack.SIPTransactionStack から継承されたメソッド
addExtensionMethod, addTransaction, addTransaction, createClientTransaction, createDialog, createMessageChannel, createMessageChannel, createMessageChannel, createRawMessageChannel, createServerTransaction, findCancelTransaction, findPendingTransaction, findSubscribeTransaction, findTransaction, getDialog, getDialogs, hasResources, isDialogCreated, newSIPServerRequest, newSIPServerResponse, notifyPendingRecordScanner, putDialog, putPending, putPendingTransaction, removeDialog, removePending, removePendingTransaction, stopStack, transactionErrorEvent
 
クラス gov.nist.javax.sip.stack.SIPMessageStack から継承されたメソッド
addMessageProcessor, createMessageProcessor, getBadMessageLog, getDefaultRoute, getDefaultRouteHeader, getHostAddress, getLogWriter, getMaxMessageSize, getMessageProcessor, getMessageProcessors, getNextHop, getNextHop, getPort, getRouteHeader, getServerLog, isAlive, isTransportEnabled, isTransportEnabled, logBadMessage, logMessage, logStackTrace, removeMessageProcessor, setMaxConnections, setRouter, setSingleThreaded, setStackMessageFactory, setStackName, setThreadPoolSize
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SipStackImpl

public SipStackImpl(java.util.Properties configurationProperties)
             throws javax.sip.PeerUnavailableException
例外:
javax.sip.PeerUnavailableException
メソッドの詳細

createSipProvider

public javax.sip.SipProvider createSipProvider()
                                        throws javax.sip.ObjectInUseException
Creates a new peer SipProvider on this SipStack on a specified ListeningPoint and returns a reference to the newly created SipProvider object. The newly created SipProvider is implicitly attached to this SipStack upon execution of this method, by adding the SipProvider to the SipStack.getSipProviders() of this SipStack, once it has been successfully created.

パラメータ:
listeningPoint - the ListeningPoint the SipProvider is to be attached to in order to send and Receive messages.
戻り値:
The peer SipProvider attached to this SipStack on the specified ListeningPoint.
例外:
ListeningPointUnavailableException - thrown if another SipProvider is already using the ListeningPoint.
javax.sip.ObjectInUseException

deleteSipProvider

public void deleteSipProvider(javax.sip.SipProvider sipProvider)
                       throws javax.sip.ObjectInUseException
Deletes the specified peer SipProvider attached to this SipStack. The specified SipProvider is implicitly detached from this SipStack upon execution of this method, by removing the SipProvider from the SipStack.getSipProviders() of this SipStack. Deletion of a SipProvider does not automatically delete the ListeningPoint from the SipStack.

定義:
インタフェース javax.sip.SipStack 内の deleteSipProvider
パラメータ:
sipProvider - the peer SipProvider to be deleted from this SipStack.
例外:
javax.sip.ObjectInUseException - thrown if the specified peer SipProvider cannot be deleted because the peer SipProvider is currently in use.

getIPAddress

public java.lang.String getIPAddress()
Gets the IP Address that identifies this SipStack instance. Every Sip Stack object must have an IP Address and only a single SipStack object can service a single IP Address. This value is set using the Properties object passed to the SipFactory.createSipStack(Properties) method upon creation of the SIP Stack object.

定義:
インタフェース javax.sip.SipStack 内の getIPAddress
戻り値:
a string identifing the IP Address
導入されたバージョン:
v1.1

getListeningPoints

public java.util.Iterator getListeningPoints()
Returns an Iterator of existing ListeningPoints created by this SipStackImpl. All of the peer SipProviders of this SipStack will be proprietary objects belonging to the same stack vendor.

戻り値:
an Iterator containing all existing peer ListeningPoints created by this SipStack. Returns an empty Iterator if no ListeningPoints exist.

isRetransmissionFilterActive

public boolean isRetransmissionFilterActive()
This method returns the value of the retransmission filter helper function for User Agent Client and User Agent Server applications. This value is set using the Properties object passed to the SipFactory.createSipStack(Properties) method upon creation of the SIP Stack object.

The default value of the retransmission filter boolean is false. When retransmissions are handled by the SipProvider the application will not receive Timeout.RETRANSMIT notifications encapsulated in TimeoutEvent's. However an application will get notified when a the underlying transaction expired with Timeout.TRANSACTION notifications encapsulated in a TimeoutEvent.

定義:
インタフェース javax.sip.SipStack 内の isRetransmissionFilterActive
戻り値:
the value of the retransmission filter, true if the filter is set false otherwise.
導入されたバージョン:
v1.1

getRouter

public javax.sip.address.Router getRouter()
Gets the Router object that identifies the default Routing policy of this SipStack. It also provides means to set an outbound proxy. This value is set using the Properties object passed to the SipFactory.createSipStack(Properties) method upon creation of the SIP Stack object.

定義:
インタフェース javax.sip.SipStack 内の getRouter
オーバーライド:
クラス SIPMessageStack 内の getRouter
戻り値:
a the Router object identifying the Router policy.
導入されたバージョン:
v1.1

getSipProviders

public java.util.Iterator getSipProviders()
Returns an Iterator of existing peer SipProviders that have been created by this SipStackImpl. All of the peer SipProviders of this SipStack will be proprietary objects belonging to the same stack vendor.

定義:
インタフェース javax.sip.SipStack 内の getSipProviders
戻り値:
an Iterator containing all existing peer SipProviders created by this SipStack. Returns an empty Iterator if no SipProviders exist.

getStackName

public java.lang.String getStackName()
Gets the user friendly name that identifies this SipStack instance. This value is set using the Properties object passed to the SipFactory.createSipStack(Properties) method upon creation of the SIP Stack object.

定義:
インタフェース javax.sip.SipStack 内の getStackName
オーバーライド:
クラス SIPMessageStack 内の getStackName
戻り値:
a string identifing the stack instance

finalize

public void finalize()
Finalization -- stop the stack on finalization. Exit the transaction scanner and release all resources.

オーバーライド:
クラス java.lang.Object 内の finalize