net.rim.pushsdk.commons.http
Class HttpResponse

java.lang.Object
  extended by net.rim.pushsdk.commons.http.HttpResponse
All Implemented Interfaces:
Serializable

public class HttpResponse
extends Object
implements Serializable

Represents the response of an HTTP POST/GET request.

Author:
mdicesare
See Also:
Serialized Form

Constructor Summary
HttpResponse()
           
 
Method Summary
 String getContent()
          Gets the content from an HTTP response.
 String getContentType()
          Gets the content type for an HTTP response.
 int getStatusCode()
          Gets the status code from an HTTP response.
 void setContent(String content)
          Sets the content for an HTTP response.
 void setContentType(String contentType)
          Sets the content type for an HTTP response.
 void setStatusCode(int statusCode)
          Sets the status code for an HTTP response.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpResponse

public HttpResponse()
Method Detail

getStatusCode

public int getStatusCode()
Gets the status code from an HTTP response.

Returns:
the status code

setStatusCode

public void setStatusCode(int statusCode)
Sets the status code for an HTTP response.

Parameters:
statusCode - the status code

getContent

public String getContent()
Gets the content from an HTTP response.

Returns:
the content

setContent

public void setContent(String content)
Sets the content for an HTTP response.

Parameters:
content - the content

getContentType

public String getContentType()
Gets the content type for an HTTP response.

Returns:
the content type

setContentType

public void setContentType(String contentType)
Sets the content type for an HTTP response.

Parameters:
contentType - the content type

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.


Copyright © 2011 Research In Motion. All Rights Reserved.