NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.stack
Class TLSMessageProcessor

java.lang.Object
  extended by gov.nist.javax.sip.stack.MessageProcessor
      extended by gov.nist.javax.sip.stack.TLSMessageProcessor
All Implemented Interfaces:
Runnable

public class TLSMessageProcessor
extends MessageProcessor

Sit in a loop waiting for incoming tls connections and start a new thread to handle each new connection. This is the active object that creates new TLS MessageChannels (one for each new accept socket).

Version:
1.2 $Revision: 1.17 $ $Date: 2009/07/29 20:38:13 $
Author:
M. Ranganathan

Method Summary
 MessageChannel createMessageChannel(gov.nist.core.HostPort targetHostPort)
          Create a message channel for the specified host/port.
 MessageChannel createMessageChannel(InetAddress host, int port)
          Create a message channel for the specified host/port.
 int getDefaultTargetPort()
          Default target port for TLS
 int getMaximumMessageSize()
          TLS can handle an unlimited number of bytes.
 SIPTransactionStack getSIPStack()
          Returns the stack.
 boolean inUse()
          Return true if there are pending messages to be processed (which prevents the message channel from being closed).
 boolean isSecure()
          TLS is a secure protocol.
 void run()
          Run method for the thread that gets created for each accept socket.
 void start()
          Start the processor.
 void stop()
          Stop the message processor.
 
Methods inherited from class gov.nist.javax.sip.stack.MessageProcessor
getDefaultPort, getIpAddress, getListeningPoint, getPort, getSavedIpAddress, getSentBy, getTransport, getViaHeader, isSentBySet, setListeningPoint, setSentBy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

start

public void start()
           throws IOException
Start the processor.

Specified by:
start in class MessageProcessor
Throws:
IOException

run

public void run()
Run method for the thread that gets created for each accept socket.

Specified by:
run in interface Runnable
Specified by:
run in class MessageProcessor

getSIPStack

public SIPTransactionStack getSIPStack()
Returns the stack.

Specified by:
getSIPStack in class MessageProcessor
Returns:
my sip stack.

stop

public void stop()
Stop the message processor. Feature suggested by Jeff Keyser.

Specified by:
stop in class MessageProcessor

createMessageChannel

public MessageChannel createMessageChannel(gov.nist.core.HostPort targetHostPort)
                                    throws IOException
Description copied from class: MessageProcessor
Create a message channel for the specified host/port.

Specified by:
createMessageChannel in class MessageProcessor
Returns:
New MessageChannel for this processor.
Throws:
IOException

createMessageChannel

public MessageChannel createMessageChannel(InetAddress host,
                                           int port)
                                    throws IOException
Description copied from class: MessageProcessor
Create a message channel for the specified host/port.

Specified by:
createMessageChannel in class MessageProcessor
Returns:
New MessageChannel for this processor.
Throws:
IOException

getMaximumMessageSize

public int getMaximumMessageSize()
TLS can handle an unlimited number of bytes.

Specified by:
getMaximumMessageSize in class MessageProcessor

inUse

public boolean inUse()
Description copied from class: MessageProcessor
Return true if there are pending messages to be processed (which prevents the message channel from being closed).

Specified by:
inUse in class MessageProcessor

getDefaultTargetPort

public int getDefaultTargetPort()
Default target port for TLS

Specified by:
getDefaultTargetPort in class MessageProcessor

isSecure

public boolean isSecure()
TLS is a secure protocol.

Specified by:
isSecure in class MessageProcessor

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.