|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgov.nist.javax.sip.parser.PipelinedMsgParser
public final class PipelinedMsgParser
This implements a pipelined message parser suitable for use with a stream - oriented input such as TCP. The client uses this class by instatiating with an input stream from which input is read and fed to a message parser. It keeps reading from the input stream and process messages in a never ending interpreter loop. The message listener interface gets called for processing messages or for processing errors. The payload specified by the content-length header is read directly from the input stream. This can be accessed from the SIPMessage using the getContent and getContentBytes methods provided by the SIPMessage class.
SIPMessageListener
コンストラクタの概要 | |
---|---|
PipelinedMsgParser(Pipeline in)
This is the constructor for the pipelined parser. |
|
PipelinedMsgParser(SIPMessageListener sipMessageListener,
Pipeline in,
boolean debug,
int maxMessageSize)
Constructor when we are given a message listener and an input stream (could be a TCP connection or a file) |
|
PipelinedMsgParser(SIPMessageListener mhandler,
Pipeline in,
int maxMsgSize)
This is the constructor for the pipelined parser. |
メソッドの概要 | |
---|---|
void |
processInput()
Start reading and processing input. |
void |
run()
This is input reading thread for the pipelined parser. |
void |
setMessageListener(SIPMessageListener mlistener)
Add a class that implements a SIPMessageListener interface whose methods get called * on successful parse and error conditons. |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public PipelinedMsgParser(SIPMessageListener sipMessageListener, Pipeline in, boolean debug, int maxMessageSize)
sipMessageListener
- Message listener which has
methods that get called
back from the parser when a parse is completein
- Input stream from which to read the input.debug
- Enable/disable tracing or lexical analyser switch.public PipelinedMsgParser(SIPMessageListener mhandler, Pipeline in, int maxMsgSize)
mhandler
- a SIPMessageListener implementation that
provides the message handlers to
handle correctly and incorrectly parsed messages.in
- An input stream to read messages from.public PipelinedMsgParser(Pipeline in)
in
- - An input stream to read messages from.メソッドの詳細 |
---|
public void processInput()
public void setMessageListener(SIPMessageListener mlistener)
mlistener
- a SIPMessageListener
implementation that can react to correct and incorrect
pars.public void run()
java.lang.Runnable
内の run
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |