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

java.lang.Object
  extended by org.lastbamboo.common.sip.stack.message.AbstractSipMessage
      extended by org.lastbamboo.common.sip.stack.message.SipResponse
All Implemented Interfaces:
org.lastbamboo.common.offer.answer.OfferAnswerMessage, SipMessage
Direct Known Subclasses:
RequestTimeoutResponse

public class SipResponse
extends AbstractSipMessage

SIP response class.


Constructor Summary
SipResponse(int statusCode, String reasonPhrase, Map<String,SipHeader> headers)
          Creates a new SIP response message.
SipResponse(int statusCode, String reasonPhrase, Map<String,SipHeader> headers, org.littleshoot.mina.common.ByteBuffer body)
          Creates a new SIP response message.
 
Method Summary
 void accept(SipMessageVisitor visitor)
          Accepts the specified message visitor.
 String getReasonPhrase()
           
 int getStatusCode()
           
 
Methods inherited from class org.lastbamboo.common.sip.stack.message.AbstractSipMessage
createRequestLine, getBody, getBranchId, getHeader, getHeaders, getKey, getMethod, getRouteSet, getStartLine, getTransactionKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SipResponse

public SipResponse(int statusCode,
                   String reasonPhrase,
                   Map<String,SipHeader> headers,
                   org.littleshoot.mina.common.ByteBuffer body)
Creates a new SIP response message.

Parameters:
statusCode - The status code of the response.
reasonPhrase - The reason phrase.
headers - The message headers.
body - The message body.

SipResponse

public SipResponse(int statusCode,
                   String reasonPhrase,
                   Map<String,SipHeader> headers)
Creates a new SIP response message.

Parameters:
statusCode - The status code of the response.
reasonPhrase - The reason phrase.
headers - The message headers.
Method Detail

accept

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

Parameters:
visitor - The visitor to accept.

getReasonPhrase

public String getReasonPhrase()

getStatusCode

public int getStatusCode()


Copyright © 2013 LittleShoot. All Rights Reserved.