public class GXWebTargetAdapterRequest extends Object
| Constructor and Description |
|---|
GXWebTargetAdapterRequest(String address) |
| Modifier and Type | Method and Description |
|---|---|
GXInboundResponse |
delete()
Sends the DELETE request to the web application.
|
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()
Sends the POST request to the web application.
|
GXWebTargetAdapterRequest |
property(String name,
String value)
Sets a new property in the request.
|
GXInboundResponse |
put()
Sends the PUT request to the web application.
|
GXWebTargetAdapterRequest |
queryParams(Map<String,String> parameters)
Sets the query parameters for the request.
|
void |
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. |
GXWebTargetAdapterRequest |
setSecurityToken(String token)
Overrides the default security token.
|
GXWebTargetAdapterRequest |
withEntity(javax.ws.rs.client.Entity<?> entity)
Sets the body of the request.
|
public GXWebTargetAdapterRequest(String address)
address - public static GXWebTargetAdapterRequest newRequest(String address)
address - the address of the web app to callpublic GXWebTargetAdapterRequest setSecurityToken(String token)
token - public GXWebTargetAdapterRequest property(String name, String value)
name - value - public void register(Object component)
feature meta-provider) to be instantiated
and used in the scope of this request.component - public 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 GXWebTargetAdapterRequest withEntity(javax.ws.rs.client.Entity<?> entity)
body - public GXInboundResponse put() throws Exception
Exceptionpublic GXInboundResponse delete() throws Exception
Exceptionpublic GXInboundResponse post() throws Exception
Exceptionpublic GXInboundResponse head() throws Exception
Exceptionpublic GXInboundResponse get() throws Exception
ExceptionCopyright © 2018. All Rights Reserved.