Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Practice with SIP > The SipStack, SipProvider and ListeningPoint

8.3. The SipStack, SipProvider and ListeningPoint

Let us now look a bit more in detail at the way these classes and interfaces are used. As we said, first of all, the application needs to get a reference to an instance of the SipFactory. We will use the static getInstance() method for that. Then we need to get an instance of SipStack, by invoking the createSipStack() method on the SipFactory. This method takes a Properties object as an argument that contains the configuration for the SIP implementation (e.g, stack name, retransmission behavior, etc.). Table 8.2 shows the methods in SipFactory.

Table 8.2.
 SipFactory MethodsDescription
AddressFactorycreateAddressFactory()Creates an instance of the AddressFactory implementation.
HeaderFactorycreateHeaderFactory()Creates an instance of the HeaderFactory implementation.
MessageFactorycreateMessageFactory()Creates an instance of the MessageFactory implementation.
SipStackcreateSipStack (Properties properties)Creates an instance of a SipStack implementation based on the configuration properties object passed to this method.
SipFactorygetInstance()Returns an instance of a SipFactory.
StringgetPathName()Returns the current pathname of the SipFactory.
VoidresetFactory()Resets the SipFactory’s references to the objects it has created.
VoidsetPathName (String pathname)Sets the pathname that identifies the location of a particular vendor’s implementation of this specification.



  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint