org.lastbamboo.common.sip.stack.message
Class DoubleCrlfKeepAlive

java.lang.Object
  extended by org.lastbamboo.common.sip.stack.message.DoubleCrlfKeepAlive
All Implemented Interfaces:
org.lastbamboo.common.offer.answer.OfferAnswerMessage, SipMessage

public class DoubleCrlfKeepAlive
extends Object
implements SipMessage

A SIP "message" that is just a double CRLF keep alive message, as specified in the SIP outbound draft at: http://www.ietf.org/internet-drafts/draft-ietf-sip-outbound-08.txt


Constructor Summary
DoubleCrlfKeepAlive()
           
 
Method Summary
 void accept(SipMessageVisitor visitor)
          Accepts the specified message visitor.
 org.littleshoot.mina.common.ByteBuffer getBody()
          Accessor for the message body.
 String getBranchId()
          Accessor for the branch ID for the topmost Via header of this message.
 SipHeader getHeader(String headerName)
          Accessor for the complete header with the specified name.
 Map<String,SipHeader> getHeaders()
          Accessor for all headers in the message.
 byte[] getKey()
           
 SipMethod getMethod()
          The method the SIP message, such as "INVITE" or "REGISTER".
 List<SipHeaderValue> getRouteSet()
          Accessor for the list of routes for this message.
 String getStartLine()
          Accessor the first line of the message.
 String getTransactionKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleCrlfKeepAlive

public DoubleCrlfKeepAlive()
Method Detail

accept

public void accept(SipMessageVisitor visitor)
Description copied from interface: SipMessage
Accepts the specified message visitor.

Specified by:
accept in interface SipMessage
Parameters:
visitor - The visitor to accept.

getBody

public org.littleshoot.mina.common.ByteBuffer getBody()
Description copied from interface: SipMessage
Accessor for the message body.

Specified by:
getBody in interface org.lastbamboo.common.offer.answer.OfferAnswerMessage
Specified by:
getBody in interface SipMessage
Returns:
The message body.

getBranchId

public String getBranchId()
Description copied from interface: SipMessage
Accessor for the branch ID for the topmost Via header of this message.

Specified by:
getBranchId in interface SipMessage
Returns:
The branch ID for this message from the topmost Via header.

getHeader

public SipHeader getHeader(String headerName)
Description copied from interface: SipMessage
Accessor for the complete header with the specified name.

Specified by:
getHeader in interface SipMessage
Parameters:
headerName - The name of the header to access.
Returns:
The complete header instance.

getHeaders

public Map<String,SipHeader> getHeaders()
Description copied from interface: SipMessage
Accessor for all headers in the message.

Specified by:
getHeaders in interface SipMessage
Returns:
All headers in the message.

getMethod

public SipMethod getMethod()
Description copied from interface: SipMessage
The method the SIP message, such as "INVITE" or "REGISTER".

Specified by:
getMethod in interface SipMessage
Returns:
The method of the message.

getRouteSet

public List<SipHeaderValue> getRouteSet()
Description copied from interface: SipMessage
Accessor for the list of routes for this message.

Specified by:
getRouteSet in interface SipMessage
Returns:
The list of routes for this message.

getStartLine

public String getStartLine()
Description copied from interface: SipMessage
Accessor the first line of the message. For requests, this is the request line containing the request URI. For responses, this is the status line.

Specified by:
getStartLine in interface SipMessage
Returns:
The first line of the message, as in the request line for requests and the status line for responses.

getTransactionKey

public String getTransactionKey()
Specified by:
getTransactionKey in interface org.lastbamboo.common.offer.answer.OfferAnswerMessage

getKey

public byte[] getKey()


Copyright © 2013 LittleShoot. All Rights Reserved.