|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.javax.sip.stack.MessageProcessor
public abstract class 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(InetAddress ipAddress,
int port,
String transport)
Constructor |
Method Summary | |
---|---|
abstract MessageChannel |
createMessageChannel(gov.nist.core.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. |
static int |
getDefaultPort(String transport)
Get the defalt port for the message processor. |
abstract int |
getDefaultTargetPort()
Default target port used by this processor. |
InetAddress |
getIpAddress()
|
ListeningPointImpl |
getListeningPoint()
|
abstract int |
getMaximumMessageSize()
Maximum number of bytes that this processor can handle. |
int |
getPort()
Get the port identifier. |
String |
getSavedIpAddress()
Get the saved IP Address. |
String |
getSentBy()
Get the sentby string. |
abstract SIPTransactionStack |
getSIPStack()
Get the SIP Stack. |
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. |
boolean |
isSentBySet()
|
abstract void |
run()
Run method. |
void |
setListeningPoint(ListeningPointImpl lp)
|
void |
setSentBy(String sentBy)
Set the sentby string. |
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(InetAddress ipAddress, int port, String transport)
ipAddress
- -- ip address where I am listening for incoming requests.port
- -- port where i am listening for incoming requests.transport
- -- transport to use for the message processor (UDP/TCP/TLS).Method Detail |
---|
public String getTransport()
public int getPort()
public Via getViaHeader()
public ListeningPointImpl getListeningPoint()
public void setListeningPoint(ListeningPointImpl lp)
public String getSavedIpAddress()
public InetAddress getIpAddress()
public void setSentBy(String sentBy) throws ParseException
sentBy
-
ParseException
public String getSentBy()
public abstract SIPTransactionStack getSIPStack()
public abstract MessageChannel createMessageChannel(gov.nist.core.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 abstract void run()
run
in interface Runnable
public boolean isSentBySet()
public static int getDefaultPort(String transport)
transport
-
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |