|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.ws.WSAsync
public class WSAsync
Simple HTTP client to make webservices requests.
Get latest BBC World news as a RSS contentresponse = WS.GET("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"); Document xmldoc = response.getXml(); // the real pain begins here...Search what Yahoo! thinks of google (starting from the 30th result).
response = WS.GET("http://search.yahoo.com/search?p=%s&pstart=1&b=%d", "Google killed me", 30 ); if( response.getStatus() == 200 ) { html = response.getString(); }
Nested Class Summary | |
---|---|
static class |
WSAsync.HttpAsyncResponse
An HTTP response wrapper |
class |
WSAsync.WSAsyncRequest
|
Constructor Summary | |
---|---|
WSAsync()
|
Method Summary | |
---|---|
WS.WSRequest |
newRequest(java.lang.String url)
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSAsync()
Method Detail |
---|
public void stop()
stop
in interface WS.WSImpl
public WS.WSRequest newRequest(java.lang.String url)
newRequest
in interface WS.WSImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |