|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.http.client.Response
public abstract class Response
Wrapper which provides access to the components of an HTTP response.
com.google.gwt.http.HTTP
.
<?xml version="1.0" encoding="UTF-8"?> <module> <!-- other inherited modules, such as com.google.gwt.user.User --> <inherits name="com.google.gwt.http.HTTP"/> <!-- additional module settings --> </module>
Constructor Summary | |
---|---|
Response()
|
Method Summary | |
---|---|
abstract java.lang.String |
getHeader(java.lang.String header)
Returns the value of the requested header or null if the header was not specified. |
abstract Header[] |
getHeaders()
Returns an array of HTTP headers associated with this response. |
abstract java.lang.String |
getHeadersAsString()
Returns all headers as a single string. |
abstract int |
getStatusCode()
Returns the HTTP status code that is part of this response. |
abstract java.lang.String |
getStatusText()
Returns the HTTP status message text. |
abstract java.lang.String |
getText()
Returns the text associated with the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Response()
Method Detail |
---|
public abstract java.lang.String getHeader(java.lang.String header)
header
- the header to query for
java.lang.IllegalArgumentException
- if the header name is empty
java.lang.NullPointerException
- if the header name is nullpublic abstract Header[] getHeaders()
public abstract java.lang.String getHeadersAsString()
public abstract int getStatusCode()
public abstract java.lang.String getStatusText()
public abstract java.lang.String getText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |