|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.WS.HttpResponse play.libs.ws.WSUrlFetch.HttpUrlfetchResponse
public static class WSUrlFetch.HttpUrlfetchResponse
An HTTP response wrapper
Constructor Summary | |
---|---|
WSUrlFetch.HttpUrlfetchResponse(java.net.HttpURLConnection connection)
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 |
java.lang.String |
getString()
get the response body as a string |
Methods inherited from class play.libs.WS.HttpResponse |
---|
getContentType, getEncoding, getJson, getQueryString, getString, getXml, getXml, success |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSUrlFetch.HttpUrlfetchResponse(java.net.HttpURLConnection connection)
method
- Method Detail |
---|
public java.lang.Integer getStatus()
getStatus
in class WS.HttpResponse
public java.lang.String getStatusText()
getStatusText
in class WS.HttpResponse
public java.lang.String getHeader(java.lang.String key)
getHeader
in class WS.HttpResponse
public java.util.List<Http.Header> getHeaders()
getHeaders
in class WS.HttpResponse
public java.lang.String getString()
getString
in class WS.HttpResponse
public java.io.InputStream getStream()
getStream
in class WS.HttpResponse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |