|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.javax.sip.stack.MessageProcessor
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.
Constructor Summary | |
MessageProcessor()
|
Method Summary | |
abstract MessageChannel |
createMessageChannel(HostPort targetHostPort)
Create a message channel for the specified host/port. |
abstract MessageChannel |
createMessageChannel(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 SIPStack |
getSIPStack()
Get the SIP Stack. |
abstract 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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageProcessor()
Method Detail |
public abstract String getTransport()
public abstract int getPort()
public abstract SIPStack getSIPStack()
public abstract MessageChannel createMessageChannel(HostPort targetHostPort) throws IOException
IOException
public abstract MessageChannel createMessageChannel(InetAddress targetHost, int port) throws IOException
IOException
public abstract void start() throws IOException
IOException
public abstract void stop()
public abstract int getDefaultTargetPort()
public abstract boolean isSecure()
public abstract int getMaximumMessageSize()
public abstract boolean inUse()
public Via getViaHeader()
public abstract void run()
run
in interface Runnable
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |