public class WS
extends java.lang.Object
Constructor and Description |
---|
WS() |
Modifier and Type | Method and Description |
---|---|
static WSClient |
client()
Deprecated.
Please use a WSClient instance using DI (since 2.5)
|
static WSClient |
newClient(int port)
Create a new WSClient.
|
static WSRequest |
url(java.lang.String url)
Deprecated.
Please use a WSClient instance using DI (since 2.5)
|
@Deprecated public static WSClient client()
@Deprecated 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.