|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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
.
<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 |
Field Detail |
---|
public static final int SC_ACCEPTED
public static final int SC_BAD_GATEWAY
public static final int SC_BAD_REQUEST
public static final int SC_CONFLICT
public static final int SC_CONTINUE
public static final int SC_CREATED
public static final int SC_EXPECTATION_FAILED
public static final int SC_FORBIDDEN
public static final int SC_GATEWAY_TIMEOUT
public static final int SC_GONE
public static final int SC_HTTP_VERSION_NOT_SUPPORTED
public static final int SC_INTERNAL_SERVER_ERROR
public static final int SC_LENGTH_REQUIRED
public static final int SC_METHOD_NOT_ALLOWED
public static final int SC_MOVED_PERMANENTLY
public static final int SC_MOVED_TEMPORARILY
public static final int SC_MULTIPLE_CHOICES
public static final int SC_NO_CONTENT
public static final int SC_NON_AUTHORITATIVE_INFORMATION
public static final int SC_NOT_ACCEPTABLE
public static final int SC_NOT_FOUND
public static final int SC_NOT_IMPLEMENTED
public static final int SC_NOT_MODIFIED
public static final int SC_OK
public static final int SC_PARTIAL_CONTENT
public static final int SC_PAYMENT_REQUIRED
public static final int SC_PRECONDITION_FAILED
public static final int SC_PROXY_AUTHENTICATION_REQUIRED
public static final int SC_REQUEST_ENTITY_TOO_LARGE
public static final int SC_REQUESTED_RANGE_NOT_SATISFIABLE
public static final int SC_RESET_CONTENT
public static final int SC_SEE_OTHER
public static final int SC_SERVICE_UNAVAILABLE
public static final int SC_SWITCHING_PROTOCOLS
public static final int SC_TEMPORARY_REDIRECT
public static final int SC_UNAUTHORIZED
public static final int SC_UNSUPPORTED_MEDIA_TYPE
public static final int SC_USE_PROXY
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()
The value will be 0 if the request failed (e.g. network error, or the server disallowed the request) or has been aborted (this will generally be the case when leaving the page).
public abstract java.lang.String getStatusText()
public abstract java.lang.String getText()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |