|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jwap.Response
This class represents a Response on a WSP GET or POST request
WAPClient.execute(Request)
Method Summary | |
long |
getContentLength()
Get the response content-length |
java.lang.String |
getContentType()
Get the response content-type |
java.lang.String |
getHeader(java.lang.String name)
Get the value of a response-header |
java.util.Enumeration |
getHeaderNames()
Get a list of all header names for this response. |
java.util.Enumeration |
getHeaders(java.lang.String header)
Get a list of all values for a header |
byte[] |
getResponseBody()
|
java.io.InputStream |
getResponseBodyAsInputStream()
Returns the response-body as input stream |
int |
getStatus()
|
java.lang.String |
getStatusText()
Returns the status-text corresponding to the response-status, e.g. |
boolean |
isSuccess()
Determine if the response status signals success (HTTP 2xx). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getStatus()
public java.lang.String getStatusText()
public boolean isSuccess()
public byte[] getResponseBody()
public java.io.InputStream getResponseBodyAsInputStream()
public java.lang.String getHeader(java.lang.String name)
name
- the header namepublic java.util.Enumeration getHeaderNames()
public java.util.Enumeration getHeaders(java.lang.String header)
header
- the header namepublic java.lang.String getContentType()
public long getContentLength()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |