org.siprop.v2.stack.sip.transaction.impl
Class TransactionInfoImpl

java.lang.Object
  extended by org.siprop.v2.core.messge.AbstractInfo
      extended by org.siprop.v2.stack.sip.transaction.impl.TransactionInfoImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Info, Message, TransactionInfo

public class TransactionInfoImpl
extends AbstractInfo
implements TransactionInfo

This class holds the packet about a Transaction.

Author:
noritsuna
See Also:
Serialized Form

Constructor Summary
TransactionInfoImpl(Context originalContext)
          Constructor.
 
Method Summary
 long getCSeqNumber()
          Get CSeq Number
 java.lang.String getMethod()
          Get CSeq Method
 Context getOriginalContext()
          Get original Context.
 java.lang.String getTagFrom()
          Get tag of From header
 java.lang.String getTagTo()
          Get tag of To header
 java.lang.String getViaBranch()
          Get Via branch value related transaction
 void setOriginalContext(Context context)
          Set original Context.
 void setTagTo(java.lang.String tag)
          Set tag of To header
 void setViaBranch(java.lang.String branch)
          Set Via branch value
 
Methods inherited from class org.siprop.v2.core.messge.AbstractInfo
addPacket, getCurrentPacket, getOriginalPacket, getPacket, setCurrentPacket, setOriginalPacket
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.siprop.v2.core.messge.Info
addPacket, getCurrentPacket, getOriginalPacket, getPacket, setCurrentPacket, setOriginalPacket
 

Constructor Detail

TransactionInfoImpl

public TransactionInfoImpl(Context originalContext)
Constructor.

Parameters:
originalContext -
Method Detail

setViaBranch

public void setViaBranch(java.lang.String branch)
Description copied from interface: TransactionInfo
Set Via branch value

Specified by:
setViaBranch in interface TransactionInfo
Parameters:
branch - new Via branch

getViaBranch

public java.lang.String getViaBranch()
Description copied from interface: TransactionInfo
Get Via branch value related transaction

Specified by:
getViaBranch in interface TransactionInfo
Returns:
Via branch

getTagFrom

public java.lang.String getTagFrom()
Description copied from interface: TransactionInfo
Get tag of From header

Specified by:
getTagFrom in interface TransactionInfo
Returns:
From Tag

getTagTo

public java.lang.String getTagTo()
Description copied from interface: TransactionInfo
Get tag of To header

Specified by:
getTagTo in interface TransactionInfo
Returns:
To Tag

getCSeqNumber

public long getCSeqNumber()
Description copied from interface: TransactionInfo
Get CSeq Number

Specified by:
getCSeqNumber in interface TransactionInfo
Returns:
CSeq number

setTagTo

public void setTagTo(java.lang.String tag)
Description copied from interface: TransactionInfo
Set tag of To header

Specified by:
setTagTo in interface TransactionInfo
Parameters:
tag - String To Tag

getMethod

public java.lang.String getMethod()
Description copied from interface: TransactionInfo
Get CSeq Method

Specified by:
getMethod in interface TransactionInfo
Returns:
CSeq method

getOriginalContext

public Context getOriginalContext()
Description copied from interface: TransactionInfo
Get original Context.

Specified by:
getOriginalContext in interface TransactionInfo
Returns:
Context original Context.

setOriginalContext

public void setOriginalContext(Context context)
Description copied from interface: TransactionInfo
Set original Context.

Specified by:
setOriginalContext in interface TransactionInfo
Parameters:
context - original Context.