gov.nist.javax.sip.stack
クラス MessageProcessor

java.lang.Object
  上位を拡張 gov.nist.javax.sip.stack.MessageProcessor
すべての実装されたインタフェース:
java.lang.Runnable
直系の既知のサブクラス:
TCPMessageProcessor, UDPMessageProcessor

public abstract class MessageProcessor
extends java.lang.Object
implements java.lang.Runnable

This is the Stack abstraction for the active object that waits for messages to appear on the wire and processes these messages by calling the MessageFactory interface to create a ServerRequest or ServerResponse object. The main job of the message processor is to instantiate message channels for the given transport.

バージョン:
JAIN-SIP-1.1 $Revision: 1.8 $ $Date: 2004/09/04 14:59:54 $
作成者:
M. Ranganathan
This code is in the public domain.
Enhancements contributed by Jeff Keyser.

コンストラクタの概要
MessageProcessor()
           
 
メソッドの概要
abstract  MessageChannel createMessageChannel(HostPort targetHostPort)
          Create a message channel for the specified host/port.
abstract  MessageChannel createMessageChannel(java.net.InetAddress targetHost, int port)
          Create a message channel for the specified host/port.
abstract  int getDefaultTargetPort()
          Default target port used by this processor.
abstract  int getMaximumMessageSize()
          Maximum number of bytes that this processor can handle.
abstract  int getPort()
          Get the port identifier.
abstract  SIPMessageStack getSIPStack()
          Get the SIP Stack.
abstract  java.lang.Thread getThread()
          Get our thread.
abstract  java.lang.String getTransport()
          Get the transport string.
 Via getViaHeader()
          Get the Via header to assign for this message processor.
abstract  boolean inUse()
          Return true if there are pending messages to be processed (which prevents the message channel from being closed).
abstract  boolean isSecure()
          Flags whether this processor is secure or not.
abstract  void run()
          Run method.
abstract  void start()
          Start our thread.
abstract  void stop()
          Stop method.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MessageProcessor

public MessageProcessor()
メソッドの詳細

getTransport

public abstract java.lang.String getTransport()
Get the transport string.

戻り値:
A string that indicates the transport. (i.e. "tcp" or "udp")

getPort

public abstract int getPort()
Get the port identifier.

戻り値:
the port for this message processor. This is where you receive messages.

getSIPStack

public abstract SIPMessageStack getSIPStack()
Get the SIP Stack.

戻り値:
the sip stack.

createMessageChannel

public abstract MessageChannel createMessageChannel(HostPort targetHostPort)
                                             throws java.io.IOException
Create a message channel for the specified host/port.

戻り値:
New MessageChannel for this processor.
例外:
java.io.IOException

createMessageChannel

public abstract MessageChannel createMessageChannel(java.net.InetAddress targetHost,
                                                    int port)
                                             throws java.io.IOException
Create a message channel for the specified host/port.

戻り値:
New MessageChannel for this processor.
例外:
java.io.IOException

getThread

public abstract java.lang.Thread getThread()
Get our thread. This is used for joining when message processors exit (requested by Mike Andrews).


start

public abstract void start()
                    throws java.io.IOException
Start our thread.

例外:
java.io.IOException

stop

public abstract void stop()
Stop method.


getDefaultTargetPort

public abstract int getDefaultTargetPort()
Default target port used by this processor. This is 5060 for TCP / UDP


isSecure

public abstract boolean isSecure()
Flags whether this processor is secure or not.


getMaximumMessageSize

public abstract int getMaximumMessageSize()
Maximum number of bytes that this processor can handle.


inUse

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


getViaHeader

public Via getViaHeader()
Get the Via header to assign for this message processor.


run

public abstract void run()
Run method.

定義:
インタフェース java.lang.Runnable 内の run