@Deprecated
public class WS
extends java.lang.Object
Constructor and Description |
---|
WS()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static WSClient |
newClient(int port)
Deprecated.
as of 2.6, not to be used. This method is not appropriate outside of testing
context, because it makes many assumptions about the url, starts up a new client and
actorsystem on every call, and hardcodes the config to something other than the app config.
|
@Deprecated public static WSClient newClient(int port)
This client holds on to resources such as connections and threads, and so must be closed after use.
If the URL passed into the url method of this client is a host relative absolute path (that is, if it starts with /), then this client will make the request on localhost using the supplied port.
port
- The port to use on localhost when relative URLs are requested.