play.libs.ws
类 WSAsync.HttpAsyncResponse

java.lang.Object
  继承者 play.libs.WS.HttpResponse
      继承者 play.libs.ws.WSAsync.HttpAsyncResponse
包容类:
WSAsync

public static class WSAsync.HttpAsyncResponse
extends WS.HttpResponse

An HTTP response wrapper


构造方法摘要
WSAsync.HttpAsyncResponse(com.ning.http.client.Response response)
          you shouldnt have to create an HttpResponse yourself
 
方法摘要
 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
 
从类 play.libs.WS.HttpResponse 继承的方法
getContentType, getEncoding, getJson, getQueryString, getString, getString, getXml, getXml, success
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WSAsync.HttpAsyncResponse

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

参数:
response -
方法详细信息

getStatus

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

指定者:
WS.HttpResponse 中的 getStatus
返回:
the status code of the http response

getStatusText

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

指定者:
WS.HttpResponse 中的 getStatusText
返回:
the status text of the http response

getHeader

public java.lang.String getHeader(java.lang.String key)
指定者:
WS.HttpResponse 中的 getHeader

getHeaders

public java.util.List<Http.Header> getHeaders()
指定者:
WS.HttpResponse 中的 getHeaders

getStream

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

指定者:
WS.HttpResponse 中的 getStream
返回:
an inputstream


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