public class SIPMessageValveImpl extends Object implements SIPMessageValve
| Modifier and Type | Field and Description |
|---|---|
static boolean |
destroyed |
static boolean |
inited |
static int |
lastResponseCode |
| Constructor and Description |
|---|
SIPMessageValveImpl() |
| Modifier and Type | Method and Description |
|---|---|
SIPMessage |
createErrorResponse(SIPRequest request,
int code)
Demonstrating how stateless response is created and sent
|
void |
destroy()
This method is called when the valve is about to be destroyed.
|
void |
init(SipStack stack)
This method is called when the valve is initialized.
|
boolean |
processRequest(SIPRequest request,
MessageChannel messageChannel)
The callback method that is called for every request before any transaction/dialog mapping
or allocation occur.
|
boolean |
processResponse(Response response,
MessageChannel messageChannel)
The callback method that is called for every response before any transaction/dialog mapping
or allocation occur.
|
void |
sendResponse(MessageChannel channel,
SIPMessage response) |
public static int lastResponseCode
public static boolean inited
public static boolean destroyed
public boolean processRequest(SIPRequest request, MessageChannel messageChannel)
SIPMessageValveprocessRequest in interface SIPMessageValvepublic SIPMessage createErrorResponse(SIPRequest request, int code)
request - code - public void sendResponse(MessageChannel channel, SIPMessage response) throws IOException
IOExceptionpublic boolean processResponse(Response response, MessageChannel messageChannel)
SIPMessageValveprocessResponse in interface SIPMessageValvepublic void destroy()
SIPMessageValvedestroy in interface SIPMessageValvepublic void init(SipStack stack)
SIPMessageValveinit in interface SIPMessageValveCopyright © 2018. All Rights Reserved.