play.libs.ws
Class WSAsync.HttpAsyncResponse

java.lang.Object
  extended by play.libs.WS.HttpResponse
      extended by play.libs.ws.WSAsync.HttpAsyncResponse
Enclosing class:
WSAsync

public static class WSAsync.HttpAsyncResponse
extends WS.HttpResponse

An HTTP response wrapper


Constructor Summary
WSAsync.HttpAsyncResponse(com.ning.http.client.Response response)
          you shouldnt have to create an HttpResponse yourself
 
Method Summary
 java.lang.String getHeader(java.lang.String key)
           
 java.util.List<Http.Header> getHeaders()
           
 java.lang.Integer getStatus()
          the HTTP status code
 java.lang.String getStatusText()
          the HTTP status text
 java.io.InputStream getStream()
          get the response as a stream
 
Methods inherited from class play.libs.WS.HttpResponse
getContentType, getEncoding, getJson, getQueryString, getString, getString, getXml, getXml, success
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSAsync.HttpAsyncResponse

public WSAsync.HttpAsyncResponse(com.ning.http.client.Response response)
you shouldnt have to create an HttpResponse yourself

Parameters:
response -
Method Detail

getStatus

public java.lang.Integer getStatus()
the HTTP status code

Specified by:
getStatus in class WS.HttpResponse
Returns:
the status code of the http response

getStatusText

public java.lang.String getStatusText()
the HTTP status text

Specified by:
getStatusText in class WS.HttpResponse
Returns:
the status text of the http response

getHeader

public java.lang.String getHeader(java.lang.String key)
Specified by:
getHeader in class WS.HttpResponse

getHeaders

public java.util.List<Http.Header> getHeaders()
Specified by:
getHeaders in class WS.HttpResponse

getStream

public java.io.InputStream getStream()
get the response as a stream

Specified by:
getStream in class WS.HttpResponse
Returns:
an inputstream


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly