|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgov.nist.javax.sip.stack.MessageChannel
gov.nist.javax.sip.stack.SIPTransaction
public abstract class SIPTransaction
Abstract class to support both client and server transactions. Provides an encapsulation of a message channel, handles timer events, and creation of the Via header for a message.
フィールドの概要 | |
---|---|
static javax.sip.TransactionState |
CALLING_STATE
CALLING State. |
static javax.sip.TransactionState |
COMPLETED_STATE
Completed state. |
static javax.sip.TransactionState |
CONFIRMED_STATE
Confirmed state. |
static javax.sip.TransactionState |
INITIAL_STATE
Initialized but no state assigned. |
static javax.sip.TransactionState |
PROCEEDING_STATE
Proceeding state. |
static javax.sip.TransactionState |
TERMINATED_STATE
Terminated state. |
static javax.sip.TransactionState |
TRYING_STATE
Trying state. |
メソッドの概要 | |
---|---|
boolean |
ackSeen()
This is book-keeping for retransmission filter management. |
void |
addEventListener(SIPTransactionEventListener newListener)
Adds a new event listener to this transaction. |
void |
close()
Close the encapsulated channel. |
boolean |
doesCancelMatchTransaction(SIPRequest requestToTest)
A method that can be used to test if an incoming request belongs to this transction. |
java.lang.Object |
getApplicationData()
Get the application data associated with this transaction. |
java.lang.String |
getBranch()
Gets the current setting for the branch parameter of this transaction. |
java.lang.String |
getBranchId()
|
int |
getCSeq()
Get the Sequence number of the request used to create the transaction. |
javax.sip.Dialog |
getDialog()
Gets the dialog object of this Transaction object. |
java.lang.String |
getHost()
Get the host of this message channel. |
java.lang.String |
getKey()
Generate a key which identifies the message channel. |
SIPResponse |
getLastResponse()
Get the last response. |
MessageChannel |
getMessageChannel()
Returns the message channel used for transmitting/receiving messages for this transaction. |
MessageProcessor |
getMessageProcessor()
Get the message processor. |
java.lang.String |
getMethod()
Get the method of the request used to create this transaction. |
SIPRequest |
getOriginalRequest()
Gets the request being handled by this transaction. |
java.lang.String |
getPeerAddress()
Get the peer address of the machine that sent us this message. |
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. |
javax.sip.message.Request |
getRequest()
Get the original request but cast to a Request structure. |
javax.sip.message.Response |
getResponse()
Get the JAIN interface response |
int |
getRetransmitTimer()
Returns the current value of the retransmit timer in milliseconds used to retransmit messages over unreliable transports. |
SIPMessageStack |
getSIPStack()
Get the SIPStack object from this message channel. |
javax.sip.TransactionState |
getState()
Gets the current state of this transaction. |
java.lang.String |
getTransactionId()
Get the transaction Id. |
java.lang.String |
getTransport()
Get transport string of this message channel. |
Via |
getViaHeader()
Returns the Via header for this channel. |
java.lang.String |
getViaHost()
Get the host to assign for an outgoing Request via header. |
int |
getViaPort()
Get the port to assign for the via header of an outgoing message. |
int |
hashCode()
Hashcode method for fast hashtable lookup. |
boolean |
isByeTransaction()
Return a flag that states if this is a BYE transaction. |
boolean |
isCancelTransaction()
Return true if the transaction corresponds to a CANCEL message. |
boolean |
isInviteTransaction()
Returns a flag stating whether this transaction is for an INVITE request or not. |
boolean |
isMatch(SIPTransaction txn)
|
abstract boolean |
isMessagePartOfTransaction(SIPMessage messageToTest)
Tests a message to see if it is part of this transaction. |
boolean |
isReliable()
Get whether this channel is reliable or not. |
boolean |
isSecure()
Return true if this is a secure channel. |
boolean |
isTerminated()
Tests if this transaction has terminated. |
abstract void |
processPending()
|
void |
removeEventListener(SIPTransactionEventListener oldListener)
Removed an event listener from this transaction. |
void |
sendMessage(SIPMessage messageToSend)
Process the message through the transaction and sends it to the SIP peer. |
void |
setAckSeen()
This is book-keeping for retransmission filter management. |
void |
setApplicationData(java.lang.Object applicationData)
Set the application data pointer. |
void |
setBranch(java.lang.String newBranch)
Sets the Via header branch parameter used to identify this transaction. |
void |
setDialog(SIPDialog dialog)
set the dialog object. |
void |
setEventPending()
Mark that there is a pending event for this transaction. |
void |
setOriginalRequest(SIPRequest newOriginalRequest)
Sets the request message that this transaction handles. |
void |
setRetransmitTimer(int retransmitTimer)
Sets the value of the retransmit timer to the newly supplied timer value. |
void |
setState(javax.sip.TransactionState newState)
Changes the state of this transaction. |
クラス gov.nist.javax.sip.stack.MessageChannel から継承されたメソッド |
---|
getHostPort, getKey, getKey, getPeerHostPort, getRawIpSourceAddress, getViaHostPort, logResponse, sendMessage |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final javax.sip.TransactionState INITIAL_STATE
public static final javax.sip.TransactionState TRYING_STATE
public static final javax.sip.TransactionState CALLING_STATE
public static final javax.sip.TransactionState PROCEEDING_STATE
public static final javax.sip.TransactionState COMPLETED_STATE
public static final javax.sip.TransactionState CONFIRMED_STATE
public static final javax.sip.TransactionState TERMINATED_STATE
メソッドの詳細 |
---|
public java.lang.String getBranchId()
javax.sip.Transaction
内の getBranchId
public void setOriginalRequest(SIPRequest newOriginalRequest)
newOriginalRequest
- Request being handled.public SIPRequest getOriginalRequest()
public javax.sip.message.Request getRequest()
javax.sip.Transaction
内の getRequest
public final boolean isInviteTransaction()
public final boolean isCancelTransaction()
public final boolean isByeTransaction()
public MessageChannel getMessageChannel()
public final void setBranch(java.lang.String newBranch)
newBranch
- New string used as the branch
for this transaction.public final java.lang.String getBranch()
public final java.lang.String getMethod()
public final int getCSeq()
public void setState(javax.sip.TransactionState newState)
newState
- New state of this transaction.public javax.sip.TransactionState getState()
javax.sip.Transaction
内の getState
public abstract boolean isMessagePartOfTransaction(SIPMessage messageToTest)
public final boolean isTerminated()
public java.lang.String getHost()
MessageChannel
の記述:
MessageChannel
内の getHost
public java.lang.String getKey()
MessageChannel
の記述:
MessageChannel
内の getKey
public int getPort()
MessageChannel
の記述:
MessageChannel
内の getPort
public SIPMessageStack getSIPStack()
MessageChannel
の記述:
MessageChannel
内の getSIPStack
public java.lang.String getPeerAddress()
MessageChannel
の記述:
MessageChannel
内の getPeerAddress
public int getPeerPort()
MessageChannel
の記述:
MessageChannel
内の getPeerPort
public java.lang.String getTransport()
MessageChannel
の記述:
MessageChannel
内の getTransport
public boolean isReliable()
MessageChannel
の記述:
MessageChannel
内の isReliable
public Via getViaHeader()
MessageChannel
内の getViaHeader
public void sendMessage(SIPMessage messageToSend) throws java.io.IOException
MessageChannel
内の sendMessage
messageToSend
- Message to send to the SIP peer.
java.io.IOException
public void addEventListener(SIPTransactionEventListener newListener)
newListener
- Listener to add.public void removeEventListener(SIPTransactionEventListener oldListener)
oldListener
- Listener to remove.public javax.sip.Dialog getDialog()
javax.sip.Transaction
内の getDialog
Dialog
public void setDialog(SIPDialog dialog)
dialog
- -- the dialog to set.public int getRetransmitTimer()
javax.sip.Transaction
内の getRetransmitTimer
public java.lang.String getViaHost()
MessageChannel
内の getViaHost
public SIPResponse getLastResponse()
public javax.sip.message.Response getResponse()
public java.lang.String getTransactionId()
public int hashCode()
java.lang.Object
内の hashCode
public int getViaPort()
MessageChannel
内の getViaPort
public boolean doesCancelMatchTransaction(SIPRequest requestToTest)
requestToTest
- is the request to test.
public void setRetransmitTimer(int retransmitTimer)
javax.sip.Transaction
内の setRetransmitTimer
retransmitTimer
- - the new integer value of the
retransmit timer in milliseconds.public void close()
MessageChannel
内の close
public boolean isSecure()
MessageChannel
の記述:
MessageChannel
内の isSecure
public MessageProcessor getMessageProcessor()
MessageChannel
の記述:
MessageChannel
内の getMessageProcessor
public void setAckSeen()
public boolean ackSeen()
public void setEventPending()
public void setApplicationData(java.lang.Object applicationData)
applicationData
- -- application data pointer to set. null
clears the applicationd data pointer.public java.lang.Object getApplicationData()
public boolean isMatch(SIPTransaction txn)
public abstract void processPending()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |