public class WS
extends java.lang.Object
Constructor and Description |
---|
WS() |
Modifier and Type | Method and Description |
---|---|
static WSClient |
client()
Returns the default WSClient object managed by the Play application.
|
static WSClient |
newClient(int port)
Create a new WSClient.
|
static WSRequest |
url(java.lang.String url)
Returns a WSRequest object representing the URL.
|
public static WSClient client()
public static WSRequest url(java.lang.String url)
Promise<WSResponse>
.url
- the URL to requestpublic static WSClient newClient(int port)
port
- The port to use on localhost when relative URLs are requested.