|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectgov.nist.javax.sip.stack.MessageChannel
gov.nist.javax.sip.stack.UDPMessageChannel
public class UDPMessageChannel
This is the UDP Message handler that gets created when a UDP message needs to be processed. The message is processed by creating a String Message parser and invoking it on the message read from the UPD socket. The parsed structure is handed off via a SIP stack request for further processing. This stack structure isolates the message handling logic from the mechanics of sending and recieving messages (which could be either udp or tcp.
StringMsgParser,
ServerRequestInterface| メソッドの概要 | |
|---|---|
void |
close()
Close the message channel. |
boolean |
equals(java.lang.Object other)
Compare two UDP Message channels for equality. |
java.lang.String |
getHost()
get the stack address for the stack that received this message. |
java.lang.String |
getKey()
Generate a key which identifies the message channel. |
java.lang.String |
getPeerAddress()
get the address of the host that sent me the message |
java.lang.String |
getPeerName()
get the name (address) of the host that sent me the message |
int |
getPeerPort()
Get the sender port ( the port of the other end that sent me the message). |
java.lang.String |
getPeerProtocol()
|
int |
getPort()
get the port. |
SIPMessageStack |
getSIPStack()
get the stack pointer. |
java.lang.String |
getTransport()
Return a transport string. |
java.lang.String |
getViaHost()
Get the logical originator of the message (from the top via header). |
int |
getViaPort()
Get the logical port of the message orginator (from the top via hdr). |
void |
handleException(java.text.ParseException ex,
SIPMessage sipMessage,
java.lang.Class hdrClass,
java.lang.String header,
java.lang.String message)
Implementation of the ParseExceptionListener interface. |
boolean |
isReliable()
Returns "false" as this is an unreliable transport. |
boolean |
isSecure()
UDP is not a secure protocol. |
void |
run()
Run method specified by runnnable. |
void |
sendMessage(SIPMessage sipMessage)
Return a reply from a pre-constructed reply. |
| クラス gov.nist.javax.sip.stack.MessageChannel から継承されたメソッド |
|---|
getHostPort, getKey, getKey, getMessageProcessor, getPeerHostPort, getRawIpSourceAddress, getViaHeader, getViaHostPort, logResponse, sendMessage |
| クラス java.lang.Object から継承されたメソッド |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
|---|
public void run()
java.lang.Runnable 内の run
public void handleException(java.text.ParseException ex,
SIPMessage sipMessage,
java.lang.Class hdrClass,
java.lang.String header,
java.lang.String message)
throws java.text.ParseException
ParseExceptionListener 内の handleExceptionex - Exception that is given to us by the parser.sipMessage - -- sip message being processed.header - -- header/RL/SL text being parsed.message - -- message where this header was detected.
java.text.ParseException - If we choose to reject the header or message.
public void sendMessage(SIPMessage sipMessage)
throws java.io.IOException
MessageChannel 内の sendMessagesipMessage - Message string to send.
java.io.IOException - If there is a problem with sending the message.public SIPMessageStack getSIPStack()
MessageChannel 内の getSIPStackpublic java.lang.String getTransport()
MessageChannel 内の getTransportpublic java.lang.String getHost()
MessageChannel 内の getHostpublic int getPort()
MessageChannel 内の getPortpublic java.lang.String getPeerName()
public java.lang.String getPeerAddress()
MessageChannel 内の getPeerAddresspublic boolean equals(java.lang.Object other)
java.lang.Object 内の equalsother - The other message channel with which to compare oursleves.public java.lang.String getKey()
MessageChannel の記述:
MessageChannel 内の getKeypublic java.lang.String getViaHost()
MessageChannel 内の getViaHostpublic int getViaPort()
MessageChannel 内の getViaPortpublic boolean isReliable()
MessageChannel 内の isReliablepublic boolean isSecure()
MessageChannel 内の isSecurepublic int getPeerPort()
MessageChannel の記述:
MessageChannel 内の getPeerPortpublic java.lang.String getPeerProtocol()
public void close()
MessageChannel 内の close
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||