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

gov.nist.javax.sip.stack
Class ConnectionOrientedMessageProcessor

java.lang.Object
  extended by gov.nist.javax.sip.stack.MessageProcessor
      extended by gov.nist.javax.sip.stack.ConnectionOrientedMessageProcessor
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
TCPMessageProcessor, TLSMessageProcessor

public abstract class ConnectionOrientedMessageProcessor
extends MessageProcessor

Author:
jean.deruelle@gmail.com

Constructor Summary
ConnectionOrientedMessageProcessor(InetAddress ipAddress, int port, String transport, SIPTransactionStack sipStack)
           
 
Method Summary
 boolean closeReliableConnection(String peerAddress, int peerPort)
           
 int getMaximumMessageSize()
          TCP 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 setKeepAliveTimeout(String peerAddress, int peerPort, long keepAliveTimeout)
           
 
Methods inherited from class gov.nist.javax.sip.stack.MessageProcessor
createMessageChannel, createMessageChannel, getDefaultPort, getDefaultTargetPort, getIpAddress, getListeningPoint, getPort, getSavedIpAddress, getSentBy, getTransport, getViaHeader, initialize, isSecure, isSentBySet, run, setListeningPoint, setSentBy, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionOrientedMessageProcessor

public ConnectionOrientedMessageProcessor(InetAddress ipAddress,
                                          int port,
                                          String transport,
                                          SIPTransactionStack sipStack)
Method Detail

getSIPStack

public SIPTransactionStack getSIPStack()
Returns the stack.

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

getMaximumMessageSize

public int getMaximumMessageSize()
TCP 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

closeReliableConnection

public boolean closeReliableConnection(String peerAddress,
                                       int peerPort)
                                throws IllegalArgumentException
Throws:
IllegalArgumentException

setKeepAliveTimeout

public boolean setKeepAliveTimeout(String peerAddress,
                                   int peerPort,
                                   long keepAliveTimeout)

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.