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)
SIPMessageValve
processRequest
in interface SIPMessageValve
public SIPMessage createErrorResponse(SIPRequest request, int code)
request
- code
- public void sendResponse(MessageChannel channel, SIPMessage response) throws IOException
IOException
public boolean processResponse(Response response, MessageChannel messageChannel)
SIPMessageValve
processResponse
in interface SIPMessageValve
public void destroy()
SIPMessageValve
destroy
in interface SIPMessageValve
public void init(SipStack stack)
SIPMessageValve
init
in interface SIPMessageValve
Copyright © 2015. All Rights Reserved.