public class GXWebTargetAdapterRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
GXWebTargetAdapterRequest |
configProperty(String name,
String value)
Sets a new property in the request.
|
GXInboundResponse |
delete()
Sends the DELETE request to the web application.
|
GXWebTargetAdapterRequest |
from(String agent)
Sets the identity user agent associated to the request.
|
GXInboundResponse |
get()
Sends the GET request to the web application.
|
GXInboundResponse |
head()
Sends the HEAD request to the web application.
|
static GXWebTargetAdapterRequest |
newRequest(String address)
Creates a new request.
|
GXWebTargetAdapterRequest |
path(String path)
Adds s positional path parameter to the request.
|
GXInboundResponse |
post(javax.ws.rs.client.Entity<?> body)
Sends the POST request to the web application.
|
GXInboundResponse |
put(javax.ws.rs.client.Entity<?> body)
Sends the PUT request to the web application.
|
GXWebTargetAdapterRequest |
queryParams(Map<String,String> parameters)
Sets the query parameters for the request.
|
GXWebTargetAdapterRequest |
register(Object component)
Register an instance of a custom JAX-RS component (such as an extension provider or
a
feature meta-provider) to be instantiated
and used in the scope of this request. |
void |
setSecurityToken(String token)
Overrides the default security token.
|
public static GXWebTargetAdapterRequest newRequest(String address)
address - the address of the web app to callpublic void setSecurityToken(String token)
token - public GXWebTargetAdapterRequest from(String agent)
agent - public GXWebTargetAdapterRequest configProperty(String name, String value)
name - value - public GXWebTargetAdapterRequest register(Object component)
feature meta-provider) to be instantiated
and used in the scope of this request.component - the compontent to registerpublic GXWebTargetAdapterRequest path(String path) throws UnsupportedEncodingException
path - UnsupportedEncodingExceptionpublic GXWebTargetAdapterRequest queryParams(Map<String,String> parameters) throws UnsupportedEncodingException
parameters - the parameters that go in the URL after the address and the path params.UnsupportedEncodingExceptionpublic GXInboundResponse delete() throws Exception
Exceptionpublic GXInboundResponse head() throws Exception
Exceptionpublic GXInboundResponse get() throws Exception
Exceptionpublic GXInboundResponse put(javax.ws.rs.client.Entity<?> body) throws Exception
body - the body of the requestExceptionpublic GXInboundResponse post(javax.ws.rs.client.Entity<?> body) throws Exception
body - the body of the requestExceptionCopyright © 2018. All Rights Reserved.