|
|||||||||
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
.
<!-- --> <!-- Copyright 2007 Google Inc. --> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you --> <!-- may not use this file except in compliance with the License. You may --> <!-- may obtain a copy of the License at --> <!-- --> <!-- http://www.apache.org/licenses/LICENSE-2.0 --> <!-- --> <!-- Unless required by applicable law or agreed to in writing, software --> <!-- distributed under the License is distributed on an "AS IS" BASIS, --> <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> <!-- implied. License for the specific language governing permissions and --> <!-- limitations under the License. --> <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 |