play.libs.ws
类 WSUrlFetch.HttpUrlfetchResponse

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

public static class WSUrlFetch.HttpUrlfetchResponse
extends WS.HttpResponse

An HTTP response wrapper


构造方法摘要
WSUrlFetch.HttpUrlfetchResponse(java.net.HttpURLConnection connection)
          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
 java.lang.String getString()
          get the response body as a string
 
从类 play.libs.WS.HttpResponse 继承的方法
getContentType, getEncoding, getJson, getQueryString, getString, getXml, getXml, success
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WSUrlFetch.HttpUrlfetchResponse

public WSUrlFetch.HttpUrlfetchResponse(java.net.HttpURLConnection connection)
you shouldnt have to create an HttpResponse yourself

参数:
method -
方法详细信息

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

getString

public java.lang.String getString()
get the response body as a string

覆盖:
WS.HttpResponse 中的 getString
返回:
the body of the http response

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