public final class PipelinedMsgParser extends Object implements Runnable
SIPMessageListener
Modifier and Type | Class and Description |
---|---|
class |
PipelinedMsgParser.Dispatch |
Modifier and Type | Field and Description |
---|---|
protected SIPMessageListener |
sipMessageListener
The message listener that is registered with this parser.
|
Modifier | Constructor and Description |
---|---|
protected |
PipelinedMsgParser()
default constructor.
|
|
PipelinedMsgParser(SIPTransactionStack sipStack,
Pipeline in)
This is the constructor for the pipelined parser.
|
|
PipelinedMsgParser(SIPTransactionStack sipStack,
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(SIPTransactionStack sipStack,
SIPMessageListener mhandler,
Pipeline in,
int maxMsgSize)
This is the constructor for the pipelined parser.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
clone()
Create a new pipelined parser from an existing one.
|
void |
close() |
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.
|
protected SIPMessageListener sipMessageListener
protected PipelinedMsgParser()
public PipelinedMsgParser(SIPTransactionStack sipStack, 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(SIPTransactionStack sipStack, 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(SIPTransactionStack sipStack, Pipeline in)
in
- -
An input stream to read messages from.public void processInput()
protected Object clone()
public void setMessageListener(SIPMessageListener mlistener)
mlistener
- a SIPMessageListener implementation that can react to correct
and incorrect pars.public void run()
public void close()
Copyright © 2015. All Rights Reserved.