Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap
Class XCapHttpResponse

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.xcap.XCapHttpResponse

public class XCapHttpResponse
extends Object

XCAP HTTP response.

Author:
Grigorii Balutsel

Constructor Summary
XCapHttpResponse()
           
 
Method Summary
 byte[] getContent()
          Gets HTTP response content.
 String getContentType()
          Gets HTTP Content-Type.
 String getETag()
          Gets HTTP ETag.
 int getHttpCode()
          Gets HTTP code.
(package private)  void setContent(byte[] content)
          Sets HTTP response content.
(package private)  void setContentType(String contentType)
          Sets HTTP Content-Type.
(package private)  void setETag(String eTag)
          Sets HTTP ETag.
(package private)  void setHttpCode(int httpCode)
          Sets HTTP code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XCapHttpResponse

public XCapHttpResponse()
Method Detail

getHttpCode

public int getHttpCode()
Gets HTTP code.

Returns:
the HTTP code.

setHttpCode

void setHttpCode(int httpCode)
Sets HTTP code.

Parameters:
httpCode - the HTTP code.

getContentType

public String getContentType()
Gets HTTP Content-Type.

Returns:
the HTTP Content-Type.

setContentType

void setContentType(String contentType)
Sets HTTP Content-Type.

Parameters:
contentType - the HTTP Content-Type.

getContent

public byte[] getContent()
Gets HTTP response content.

Returns:
the HTTP response content.

setContent

void setContent(byte[] content)
Sets HTTP response content.

Parameters:
content - the HTTP response content.

getETag

public String getETag()
Gets HTTP ETag.

Returns:
the HTTP ETag.

setETag

void setETag(String eTag)
Sets HTTP ETag.

Parameters:
eTag - the HTTP ETag.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.