|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.commons.http.HttpResponse
public class HttpResponse
Represents the response of an HTTP POST/GET request.
| 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 |
|---|
public HttpResponse()
| Method Detail |
|---|
public int getStatusCode()
public void setStatusCode(int statusCode)
statusCode - the status codepublic String getContent()
public void setContent(String content)
content - the contentpublic String getContentType()
public void setContentType(String contentType)
contentType - the content typepublic String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||