public class WSAsync extends java.lang.Object implements WS.WSImpl
Get latest BBC World news as a RSS content
HttpResponse response = WS.url("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml").get(); Document xmldoc = response.getXml(); // the real pain begins here...
Search what Yahoo! thinks of google (starting from the 30th result).
HttpResponse response = WS.url("http://search.yahoo.com/search?p=%s&pstart=1&b=%s", "Google killed me", "30").get(); if (response.getStatus() == 200) { html = response.getString(); }
Modifier and Type | Class and Description |
---|---|
static class |
WSAsync.HttpAsyncResponse
An HTTP response wrapper
|
class |
WSAsync.WSAsyncRequest |
Constructor and Description |
---|
WSAsync() |
Modifier and Type | Method and Description |
---|---|
WS.WSRequest |
newRequest(java.lang.String url,
java.lang.String encoding) |
void |
stop() |
public WS.WSRequest newRequest(java.lang.String url, java.lang.String encoding)
newRequest
in interface WS.WSImpl
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly