public abstract class Response extends Object
com.google.gwt.http.HTTP
.
Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getHeader(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 String |
getHeadersAsString()
Returns all headers as a single string.
|
abstract int |
getStatusCode()
Returns the HTTP status code that is part of this response.
|
abstract String |
getStatusText()
Returns the HTTP status message text.
|
abstract String |
getText()
Returns the text associated with the response.
|
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
public abstract String getHeader(String header)
header
- the header to query forIllegalArgumentException
- if the header name is emptyNullPointerException
- if the header name is nullpublic abstract Header[] getHeaders()
public abstract String getHeadersAsString()
public abstract int getStatusCode()
public abstract String getStatusText()
public abstract String getText()
Copyright © 2018. All rights reserved.