public class WS
extends java.lang.Object
Promise<Response>, and you should use Play's asynchronous mechanisms to use this response.| Constructor and Description |
|---|
WS() |
| Modifier and Type | Method and Description |
|---|---|
static WSClient |
client() |
static WSClient |
newClient(int port)
Create a new WSClient.
|
static WSRequestHolder |
url(java.lang.String url)
Prepare a new request.
|
public static WSClient client()
public static WSRequestHolder url(java.lang.String url)
url - the URL to requestpublic static WSClient newClient(int port)
port - The port to use on localhost when relative URLs are requested.