@Immutable
public interface RSDynamicClient
Modifier and Type | Interface and Description |
---|---|
static class |
RSDynamicClient.HttpMethod
JAXRS HTTP Method supported by Wise
|
Modifier and Type | Method and Description |
---|---|
String |
getConsumeMediaTypes() |
RSDynamicClient.HttpMethod |
getHttpMethod() |
String |
getPassword() |
String |
getProduceMediaTypes() |
String |
getResourceURI() |
String |
getUser() |
InvocationResult |
invoke()
Invoke JAXRS service.
|
InvocationResult |
invoke(byte[] request,
WiseMapper mapper)
Invoke JAXRS service.
|
InvocationResult |
invoke(InputStream request,
WiseMapper mapper)
Invoke JAXRS service.
|
InvocationResult |
invoke(Map<String,Object> inputObjects,
WiseMapper mapper)
Invoke JAXRS service.
|
InvocationResult |
invoke(String request,
WiseMapper mapper)
Invoke JAXRS service.
|
String getResourceURI()
String getUser()
String getPassword()
RSDynamicClient.HttpMethod getHttpMethod()
RSDynamicClient.HttpMethod
used to call the resource (getResourceURI()
)String getProduceMediaTypes()
String getConsumeMediaTypes()
InvocationResult invoke(Map<String,Object> inputObjects, WiseMapper mapper)
inputObjects
- it's a Map containing objects to call the services. They can be pojo mapped to stream using a
SmooksMapper
, JAXB annotated object marshaled using a JAXBMapper, a standard key/value pair with keys
"ContentType" and "JAXRSStream". In the last case ContentType represent the content type of the input that have to
be converted to the content type needed by service call if possible. If it isn't possible an
InvalidParameterException
is thrownmapper
- WiseMapper
used to map inputObject to stream representation used to call the serviceInvocationResult
implementation representing the result of JAXRS serviceInvocationResult invoke(InputStream request, WiseMapper mapper)
request
- mapper
- WiseMapper
used to map inputObject to stream representation used to call the serviceInvocationResult
implementation representing the result of JAXRS serviceInvocationResult invoke(String request, WiseMapper mapper)
request
- mapper
- WiseMapper
used to map inputObject to stream representation used to call the serviceInvocationResult
implementation representing the result of JAXRS serviceInvocationResult invoke(byte[] request, WiseMapper mapper)
request
- mapper
- WiseMapper
used to map inputObject to stream representation used to call the serviceInvocationResult
implementation representing the result of JAXRS serviceInvocationResult invoke()
InvocationResult
implementation representing the result of JAXRS serviceCopyright © 2008–2013 JBoss.org. All rights reserved.