|
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.MessageChannel
gov.nist.javax.sip.stack.ConnectionOrientedMessageChannel
gov.nist.javax.sip.stack.TLSMessageChannel
public class TLSMessageChannel
This is sipStack for TLS connections. This abstracts a stream of parsed messages. The SIP sipStack starts this from the main SIPStack class for each connection that it accepts. It starts a message parser in its own thread and talks to the message parser via a pipe. The message parser calls back via the parseError or processMessage functions that are defined as part of the SIPMessageListener interface.
PipelinedMsgParser| Method Summary | |
|---|---|
void |
close(boolean removeSocket)
Close the message channel. |
boolean |
equals(Object other)
Equals predicate. |
HandshakeCompletedListenerImpl |
getHandshakeCompletedListener()
|
String |
getTransport()
get the transport string. |
void |
handleException(ParseException ex,
SIPMessage sipMessage,
Class hdrClass,
String header,
String message)
Exception processor for exceptions detected from the parser. |
boolean |
isSecure()
TLS Is a secure protocol. |
void |
run()
This gets invoked when thread.start is called from the constructor. |
void |
sendMessage(byte[] message,
InetAddress receiverAddress,
int receiverPort,
boolean retry)
Send a message to a specified address. |
void |
setHandshakeCompletedListener(HandshakeCompletedListener handshakeCompletedListenerImpl)
|
| Methods inherited from class gov.nist.javax.sip.stack.ConnectionOrientedMessageChannel |
|---|
cancelPingKeepAliveTimeoutTaskIfStarted, close, getKeepAliveTimeout, getKey, getPeerAddress, getPeerPacketSourceAddress, getPeerPacketSourcePort, getPeerPort, getPeerProtocol, getSIPStack, getViaHost, getViaPort, isReliable, processMessage, processMessage, rescheduleKeepAliveTimeout, sendMessage, sendSingleCLRF, setKeepAliveTimeout |
| Methods inherited from class gov.nist.javax.sip.stack.MessageChannel |
|---|
getEncapsulatedClientTransaction, getHost, getHostPort, getKey, getKey, getMessageProcessor, getPeerHostPort, getPort, getRawIpSourceAddress, getViaHeader, getViaHostPort, logMessage, logResponse, sendMessage, sendMessage, setEncapsulatedClientTransaction |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void close(boolean removeSocket)
public String getTransport()
getTransport in class MessageChannel
public void sendMessage(byte[] message,
InetAddress receiverAddress,
int receiverPort,
boolean retry)
throws IOException
message - Pre-formatted message to send.receiverAddress - Address to send it to.receiverPort - Receiver port.
IOException - If there is a problem connecting or sending.
public void handleException(ParseException ex,
SIPMessage sipMessage,
Class hdrClass,
String header,
String message)
throws ParseException
sipMessage - -- the message that incurred the error.ex - -- parse exception detected by the parser.header - -- header that caused the error.message - -- message where this header was detected.
ParseException - Thrown if we want to reject the message.public boolean equals(Object other)
equals in class Objectother - is the other object to compare ourselves to for equalspublic boolean isSecure()
isSecure in class MessageChannelpublic void setHandshakeCompletedListener(HandshakeCompletedListener handshakeCompletedListenerImpl)
public HandshakeCompletedListenerImpl getHandshakeCompletedListener()
public void run()
ConnectionOrientedMessageChannel
run in interface Runnablerun in class ConnectionOrientedMessageChannel
|
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 | |||||||||