Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.gwt.runtime.client.http
Class HttpResponse

java.lang.Object
  extended by com.google.gwt.http.client.Response
      extended by org.nuxeo.ecm.gwt.runtime.client.http.HttpResponse

public class HttpResponse
extends com.google.gwt.http.client.Response

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from class com.google.gwt.http.client.Response
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY
 
Constructor Summary
HttpResponse(com.google.gwt.http.client.Response response)
           
 
Method Summary
 com.google.gwt.json.client.JSONValue asJSON()
           
 java.lang.String getHeader(java.lang.String header)
           
 com.google.gwt.http.client.Header[] getHeaders()
           
 java.lang.String getHeadersAsString()
           
 int getStatusCode()
           
 java.lang.String getStatusText()
           
 java.lang.String getText()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponse

public HttpResponse(com.google.gwt.http.client.Response response)
Method Detail

getHeader

public java.lang.String getHeader(java.lang.String header)
Specified by:
getHeader in class com.google.gwt.http.client.Response
Parameters:
header -
Returns:
See Also:
Response.getHeader(java.lang.String)

getHeaders

public com.google.gwt.http.client.Header[] getHeaders()
Specified by:
getHeaders in class com.google.gwt.http.client.Response
Returns:
See Also:
Response.getHeaders()

getHeadersAsString

public java.lang.String getHeadersAsString()
Specified by:
getHeadersAsString in class com.google.gwt.http.client.Response
Returns:
See Also:
Response.getHeadersAsString()

getStatusCode

public int getStatusCode()
Specified by:
getStatusCode in class com.google.gwt.http.client.Response
Returns:
See Also:
Response.getStatusCode()

getStatusText

public java.lang.String getStatusText()
Specified by:
getStatusText in class com.google.gwt.http.client.Response
Returns:
See Also:
Response.getStatusText()

getText

public java.lang.String getText()
Specified by:
getText in class com.google.gwt.http.client.Response
Returns:
See Also:
Response.getText()

asJSON

public com.google.gwt.json.client.JSONValue asJSON()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.