|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgov.nist.javax.sip.stack.MessageChannel
public abstract class MessageChannel
Message channel abstraction for the SIP stack.
コンストラクタの概要 | |
---|---|
MessageChannel()
|
メソッドの概要 | |
---|---|
abstract void |
close()
Close the message channel. |
java.lang.String |
getHost()
Get the host of this message channel. |
HostPort |
getHostPort()
Get the hostport structure of this message channel. |
abstract java.lang.String |
getKey()
Generate a key which identifies the message channel. |
static java.lang.String |
getKey(HostPort hostPort,
java.lang.String transport)
Generate a key given host and port. |
static java.lang.String |
getKey(java.net.InetAddress inetAddr,
int port,
java.lang.String transport)
generate a key given the inet address port and transport. |
MessageProcessor |
getMessageProcessor()
Get the message processor. |
abstract java.lang.String |
getPeerAddress()
Get the peer address of the machine that sent us this message. |
HostPort |
getPeerHostPort()
Get the peer host and port. |
abstract int |
getPeerPort()
Get the sender port ( the port of the other end that sent me the message). |
int |
getPort()
Get port of this message channel. |
java.lang.String |
getRawIpSourceAddress()
Convenience function to get the raw IP source address of a SIP message as a String. |
abstract SIPMessageStack |
getSIPStack()
Get the SIPStack object from this message channel. |
abstract java.lang.String |
getTransport()
Get transport string of this message channel. |
Via |
getViaHeader()
Get the Via header for this transport. |
abstract java.lang.String |
getViaHost()
Get the host to assign for an outgoing Request via header. |
HostPort |
getViaHostPort()
Get the via header host:port structure. |
abstract int |
getViaPort()
Get the port to assign for the via header of an outgoing message. |
abstract boolean |
isReliable()
Get whether this channel is reliable or not. |
abstract boolean |
isSecure()
Return true if this is a secure channel. |
void |
logResponse(SIPResponse sipResponse,
long receptionTime,
java.lang.String status)
Log a response received at this message channel. |
abstract void |
sendMessage(SIPMessage sipMessage)
Send the message (after it has been formatted) |
void |
sendMessage(SIPMessage sipMessage,
java.net.InetAddress receiverAddress,
int receiverPort)
Send a message given SIP message. |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public MessageChannel()
メソッドの詳細 |
---|
public abstract void close()
public abstract SIPMessageStack getSIPStack()
public abstract java.lang.String getTransport()
public abstract boolean isReliable()
public abstract boolean isSecure()
public abstract void sendMessage(SIPMessage sipMessage) throws java.io.IOException
sipMessage
- Message to send.
java.io.IOException
public abstract java.lang.String getPeerAddress()
public abstract int getPeerPort()
public abstract java.lang.String getKey()
public abstract java.lang.String getViaHost()
public abstract int getViaPort()
public java.lang.String getHost()
public int getPort()
public void sendMessage(SIPMessage sipMessage, java.net.InetAddress receiverAddress, int receiverPort) throws java.io.IOException
sipMessage
- is the messge to send.receiverAddress
- is the address to which we want to sendreceiverPort
- is the port to which we want to send
java.io.IOException
public java.lang.String getRawIpSourceAddress()
public static java.lang.String getKey(java.net.InetAddress inetAddr, int port, java.lang.String transport)
public static java.lang.String getKey(HostPort hostPort, java.lang.String transport)
public HostPort getHostPort()
public HostPort getPeerHostPort()
public Via getViaHeader()
public HostPort getViaHostPort()
public void logResponse(SIPResponse sipResponse, long receptionTime, java.lang.String status)
receptionTime
- is the time at which the response was received.status
- is the processing status of the message.public MessageProcessor getMessageProcessor()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |