public abstract class ResourceInvoker extends Object
Modifier and Type | Field and Description |
---|---|
static String |
METHOD_DELETE |
static String |
METHOD_GET |
static String |
METHOD_OPTIONS |
static String |
METHOD_POST |
static String |
METHOD_PUT |
Modifier | Constructor and Description |
---|---|
protected |
ResourceInvoker(Environment env) |
public static final String METHOD_OPTIONS
public static final String METHOD_GET
public static final String METHOD_POST
public static final String METHOD_PUT
public static final String METHOD_DELETE
protected ResourceInvoker(Environment env)
protected Environment getEnvironment()
protected abstract String getContextRoot()
protected abstract String getResourceRoot()
protected abstract String getMediaType()
protected String getRequestBodyMediaType()
protected String getResponseBodyMediaType()
protected String getUrl()
public ResourceInvoker url(String val)
protected String getBaseUrl()
public ResourceInvoker baseUrl(String val)
protected String getProtocol()
public ResourceInvoker protocol(String val)
protected String getHost()
public ResourceInvoker host(String val)
protected String getPort()
public ResourceInvoker port(String val)
protected String getUserName()
public ResourceInvoker username(String val)
protected String getPassword()
public ResourceInvoker password(String val)
protected String getUri()
public ResourceInvoker uri(String val)
public ResourceInvoker queryParam(String name, String value)
protected javax.json.JsonObject getBody()
public ResourceInvoker body(javax.json.JsonObject val)
public ResourceInvoker body(ObjectValue val) throws Exception
Exception
protected javax.ws.rs.client.Client customizeClient(javax.ws.rs.client.Client client)
Copyright © 2018. All rights reserved.