Java Doc for SipStack.java in  » 6.0-JDK-Modules » j2me » gov » nist » siplite » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » gov.nist.siplite 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gov.nist.siplite.stack.SIPMessageStack
      gov.nist.siplite.stack.SIPTransactionStack
         gov.nist.siplite.SipStack

SipStack
public class SipStack extends SIPTransactionStack (Code)
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).:
  • gov.nist.javax.sip.TRACE_LEVEL = integer
    Currently only 16 and 32 is meaningful. If this is set to 16 or above, then incoming valid messages are logged in SERVER_LOG. If you set this to 32 and specify a DEBUG_LOG then vast amounts of trace information will be dumped in to the specified DEBUG_LOG. The server log accumulates the signaling trace. This can be viewed using the trace viewer tool . Please send us both the server log and debug log when reporting non-obvious problems.

  • version:
       JAIN-SIP-1.1
    version:
       This code is in the public domain.


Field Summary
protected  EventScannereventScanner
     Current eventscanner.
protected  intoutboundPort
    
protected  StringoutboundProxy
    
protected  StringrouterPath
     Pathto router.
protected  SipListenersipListener
     Current SIP listener.
protected  StackConnectorsipStackConnector
     Connector for SIP stack.
protected  booleanstackInitialized
     Flag indicating the provider has been initialized.

Constructor Summary
protected  SipStack()
     Creates a new instance of SipStack.
public  SipStack(ConfigurationProperties configurationProperties, SecurityToken classSecurityToken)
     Construct a SIP Stack top match requested configuration.

Method Summary
public synchronized  ListeningPointcreateListeningPoint(int port, String transport)
     Creates a new peer ListeningPoint on this SipStack on a specified host, port and transport and returns a reference to the newly created ListeningPoint object.
public  SipProvidercreateSipProvider(ListeningPoint listeningPoint)
     Creates a new peer SipProvider on this SipStack on a specified ListeningPoint and returns a reference to the newly created SipProvider object.
public  voiddeleteListeningPoint(ListeningPoint listeningPoint)
     Deletes the specified peer ListeningPoint attached to this SipStack.
public  voiddeleteSipProvider(SipProvider sipProvider)
     Deletes the specified peer SipProvider attached to this SipStack.
public  StringgetDefaultTransport()
     The default transport to use for via headers.
public  StringgetIPAddress()
     Gets the IP Address that identifies this SipStack instance.
public  ListeningPointgetListeningPoint(int port, String transport)
     Gets the listening point for a given transport and port.
public  java.util.EnumerationgetListeningPoints()
     Returns an Iterator of existing ListeningPoints created by this SipStack.
public  StringgetOutboundProxy()
     Gets the outbound proxy specification.
public  RoutergetRouter()
     Gets the Router object that identifies the default Routing policy of this SipStack.
public  SipListenergetSipListener()
     Gets the sip listener for the stack.
public  EnumerationgetSipProviders()
     Returns an Iterator of existing peer SipProviders that have been created by this SipStack.
public  StringgetStackName()
     Gets the user friendly name that identifies this SipStack instance.
public  booleanisRetransmissionFilterActive()
     This method returns the value of the retransmission filter helper function for User Agent Client and User Agent Server applications.
public  voidsetStackConnector(StackConnector stackConnector)
     Constructor.
public  voidstopStack()
     Stops the SIP stack processing.
public  voidtransactionErrorEvent(SIPTransactionErrorEvent transactionErrorEvent)
     Invoked when an error has ocurred with a transaction.

Field Detail
eventScanner
protected EventScanner eventScanner(Code)
Current eventscanner.



outboundPort
protected int outboundPort(Code)
Outbound proxy port for this stack



outboundProxy
protected String outboundProxy(Code)
Outbound proxy for this stack



routerPath
protected String routerPath(Code)
Pathto router.



sipListener
protected SipListener sipListener(Code)
Current SIP listener.



sipStackConnector
protected StackConnector sipStackConnector(Code)
Connector for SIP stack.



stackInitialized
protected boolean stackInitialized(Code)
Flag indicating the provider has been initialized.




Constructor Detail
SipStack
protected SipStack()(Code)
Creates a new instance of SipStack.



SipStack
public SipStack(ConfigurationProperties configurationProperties, SecurityToken classSecurityToken) throws PeerUnavailableException(Code)
Construct a SIP Stack top match requested configuration.
Parameters:
  configurationProperties - selectors for SIP Stack
Parameters:
  classSecurityToken - security token for saving




Method Detail
createListeningPoint
public synchronized ListeningPoint createListeningPoint(int port, String transport) throws TransportNotSupportedException, IllegalArgumentException(Code)
Creates a new peer ListeningPoint on this SipStack on a specified host, port and transport and returns a reference to the newly created ListeningPoint object. The newly created ListeningPoint is implicitly attached to this SipStack upon execution of this method, by adding the ListeningPoint to the SipStack.getListeningPoints of this SipStack, once it has been successfully created.
Parameters:
  port - the port of the new ListeningPoint.
Parameters:
  transport - the transport of the new ListeningPoint.SipStack. The peer ListeningPoint attached to this SipStack.



createSipProvider
public SipProvider createSipProvider(ListeningPoint listeningPoint) throws ObjectInUseException(Code)
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.
Parameters:
  listeningPoint - the ListeningPoint the SipProvider is tobe attached to in order to send and Receive messages. The peer SipProvider attached to this SipStack on the specifiedListeningPoint.
throws:
  ListeningPointUnavailableException - thrown if anotherSipProvider is already using the ListeningPoint.



deleteListeningPoint
public void deleteListeningPoint(ListeningPoint listeningPoint) throws ObjectInUseException(Code)
Deletes the specified peer ListeningPoint attached to this SipStack. The specified ListeningPoint is implicitly detached from this SipStack upon execution of this method, by removing the ListeningPoint from the SipStack.getListeningPoints of this SipStack.
Parameters:
  listeningPoint - the peer SipProvider to be deleted fromthis SipStack.
exception:
  ObjectInUseException - thrown if the specified peerListeningPoint cannot be deleted because the peer ListeningPoint iscurrently in use.
since:
   v1.1



deleteSipProvider
public void deleteSipProvider(SipProvider sipProvider) throws ObjectInUseException(Code)
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.
Parameters:
  sipProvider - the peer SipProvider to be deleted fromthis SipStack.
exception:
  ObjectInUseException - thrown if the specified peerSipProvider cannot be deleted because the peer SipProvider is currentlyin use.



getDefaultTransport
public String getDefaultTransport()(Code)
The default transport to use for via headers. the default transport



getIPAddress
public String getIPAddress()(Code)
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 method upon creation of the SIP Stack object. a string identifing the IP Address
since:
   v1.1



getListeningPoint
public ListeningPoint getListeningPoint(int port, String transport)(Code)
Gets the listening point for a given transport and port.
Parameters:
  port - the communication port
Parameters:
  transport - the connection channel the listening port



getListeningPoints
public java.util.Enumeration getListeningPoints()(Code)
Returns an Iterator of existing ListeningPoints created by this SipStack. 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 createdby this SipStack. Returns an empty Iterator if no ListeningPoints exist.



getOutboundProxy
public String getOutboundProxy()(Code)
Gets the outbound proxy specification. Return null if no outbound proxy is specified. the outbound proxy address



getRouter
public Router getRouter()(Code)
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 method upon creation of the SIP Stack object. a the Router object identifying the Router policy.
since:
   v1.1



getSipListener
public SipListener getSipListener()(Code)
Gets the sip listener for the stack. the SIP listener



getSipProviders
public Enumeration getSipProviders()(Code)
Returns an Iterator of existing peer SipProviders that have been created by this SipStack. All of the peer SipProviders of this SipStack will be proprietary objects belonging to the same stack vendor. an Iterator containing all existing peer SipProviders createdby this SipStack. Returns an empty Iterator if no SipProviders exist.



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



isRetransmissionFilterActive
public boolean isRetransmissionFilterActive()(Code)
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 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 gov.nist.siplite.TimeoutEvent 's. However an application will get notified when a the underlying transaction expired with Timeout.TRANSACTION notifications encapsulated in a gov.nist.siplite.TimeoutEvent .

the value of the retransmission filter, true if the filteris set false otherwise.
since:
   v1.1



setStackConnector
public void setStackConnector(StackConnector stackConnector)(Code)
Constructor.
Parameters:
  stackConnector - connection to use for SIP Stack



stopStack
public void stopStack()(Code)
Stops the SIP stack processing.



transactionErrorEvent
public void transactionErrorEvent(SIPTransactionErrorEvent transactionErrorEvent)(Code)
Invoked when an error has ocurred with a transaction.
Parameters:
  transactionErrorEvent - Error event.



Fields inherited from gov.nist.siplite.stack.SIPTransactionStack
final public static int BASE_TIMER_INTERVAL(Code)(Java Doc)
protected Hashtable dialogCreatingMethods(Code)(Java Doc)
protected boolean retransmissionFilter(Code)(Java Doc)
protected int transactionTableSize(Code)(Java Doc)

Methods inherited from gov.nist.siplite.stack.SIPTransactionStack
public void addExtensionMethod(String extensionMethod)(Code)(Java Doc)
public void addTransaction(ClientTransaction clientTransaction)(Code)(Java Doc)
public void addTransaction(ServerTransaction serverTransaction) throws IOException(Code)(Java Doc)
public boolean allowDialogStateChange(String method)(Code)(Java Doc)
public ClientTransaction createClientTransaction(MessageChannel encapsulatedMessageChannel)(Code)(Java Doc)
public synchronized Dialog createDialog(Transaction transaction)(Code)(Java Doc)
public MessageChannel createMessageChannel(Hop nextHop)(Code)(Java Doc)
public MessageChannel createMessageChannel(MessageChannel rawChannel)(Code)(Java Doc)
public MessageChannel createMessageChannel(Transaction transaction)(Code)(Java Doc)
public MessageChannel createRawMessageChannel(Hop hop)(Code)(Java Doc)
public ServerTransaction createServerTransaction(MessageChannel encapsulatedMessageChannel)(Code)(Java Doc)
public Transaction findCancelTransaction(Request cancelRequest, boolean isServer)(Code)(Java Doc)
public ClientTransaction findSubscribeTransaction(Request notifyMessage)(Code)(Java Doc)
public Transaction findTransaction(Message sipMessage, boolean isServer)(Code)(Java Doc)
public Dialog getDialog(String dialogId)(Code)(Java Doc)
public boolean isDialogCreated(String method)(Code)(Java Doc)
protected SIPServerRequestInterface newSIPServerRequest(Request requestReceived, MessageChannel requestMessageChannel)(Code)(Java Doc)
public void putDialog(Dialog dialog)(Code)(Java Doc)

Fields inherited from gov.nist.siplite.stack.SIPMessageStack
protected String badMessageLog(Code)(Java Doc)
protected boolean debugFlag(Code)(Java Doc)
protected int maxConnections(Code)(Java Doc)
protected int outboundPort(Code)(Java Doc)
protected String outboundProxy(Code)(Java Doc)
protected Router router(Code)(Java Doc)
protected SecurityToken securityToken(Code)(Java Doc)
protected SIPStackMessageFactory sipMessageFactory(Code)(Java Doc)
protected String stackAddress(Code)(Java Doc)
protected String stackName(Code)(Java Doc)
protected boolean tcpFlag(Code)(Java Doc)
protected int threadPoolSize(Code)(Java Doc)
protected boolean toExit(Code)(Java Doc)
protected boolean udpFlag(Code)(Java Doc)

Methods inherited from gov.nist.siplite.stack.SIPMessageStack
public void addMessageProcessor(MessageProcessor newMessageProcessor) throws IOException(Code)(Java Doc)
public MessageChannel createMessageChannel(Hop nextHop)(Code)(Java Doc)
public MessageProcessor createMessageProcessor(int port, String transport) throws java.io.IOException, IllegalArgumentException(Code)(Java Doc)
public String getBadMessageLog()(Code)(Java Doc)
public Hop getDefaultRoute()(Code)(Java Doc)
public RouteHeader getDefaultRouteHeader()(Code)(Java Doc)
public String getHostAddress()(Code)(Java Doc)
public MessageProcessor getMessageProcessor(String transport)(Code)(Java Doc)
public Vector getMessageProcessors()(Code)(Java Doc)
public Hop getNextHop()(Code)(Java Doc)
public int getPort(String transport) throws IllegalArgumentException(Code)(Java Doc)
public RouteHeader getRouteHeader(Hop hop)(Code)(Java Doc)
public Router getRouter()(Code)(Java Doc)
protected SecurityToken getSecurityToken()(Code)(Java Doc)
public String getStackName()(Code)(Java Doc)
public synchronized boolean isAlive()(Code)(Java Doc)
public boolean isTransportEnabled(String transport)(Code)(Java Doc)
public boolean isTransportEnabled(String transport, int port)(Code)(Java Doc)
public void logBadMessage(String message)(Code)(Java Doc)
protected SIPServerRequestInterface newSIPServerRequest(Request siprequest, MessageChannel msgchan)(Code)(Java Doc)
public void removeMessageProcessor(MessageProcessor oldMessageProcessor)(Code)(Java Doc)
public void setHostAddress(String stackAddress)(Code)(Java Doc)
public void setMaxConnections(int nconnections)(Code)(Java Doc)
protected void setMessageFactory(SIPStackMessageFactory messageFactory)(Code)(Java Doc)
public void setRouter(Router router)(Code)(Java Doc)
protected void setSecurityToken(SecurityToken token)(Code)(Java Doc)
public void setSingleThreaded()(Code)(Java Doc)
public void setStackMessageFactory(SIPStackMessageFactory messageFactory)(Code)(Java Doc)
public void setStackName(String stackName)(Code)(Java Doc)
public void setThreadPoolSize(int size)(Code)(Java Doc)
public void stopStack()(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.