|
||||||||||
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.WSAsync.HttpAsyncResponse
public static class WSAsync.HttpAsyncResponse
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.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, getJson, getXml, getXml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSAsync.HttpAsyncResponse(com.ning.http.client.Response response)
method
- Method Detail |
---|
public java.lang.Integer getStatus()
getStatus
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 |