|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Immutable public interface RSDynamicClient
This is the Wise core class responsible to invoke the JAX-RS tools endpoint. It is used directly to represent a JAXRS service and invoke it.
Nested Class Summary | |
---|---|
static class |
RSDynamicClient.HttpMethod
JAXRS HTTP Method supported by Wise |
Method Summary | |
---|---|
java.lang.String |
getConsumeMediaTypes()
|
RSDynamicClient.HttpMethod |
getHttpMethod()
|
java.lang.String |
getPassword()
|
java.lang.String |
getProduceMediaTypes()
|
java.lang.String |
getResourceURI()
|
java.lang.String |
getUser()
|
InvocationResult |
invoke()
Invoke JAXRS service. |
InvocationResult |
invoke(byte[] request,
WiseMapper mapper)
Invoke JAXRS service. |
InvocationResult |
invoke(java.io.InputStream request,
WiseMapper mapper)
Invoke JAXRS service. |
InvocationResult |
invoke(java.util.Map<java.lang.String,java.lang.Object> inputObjects,
WiseMapper mapper)
Invoke JAXRS service. |
InvocationResult |
invoke(java.lang.String request,
WiseMapper mapper)
Invoke JAXRS service. |
Method Detail |
---|
java.lang.String getResourceURI()
java.lang.String getUser()
java.lang.String getPassword()
RSDynamicClient.HttpMethod getHttpMethod()
RSDynamicClient.HttpMethod
used to call the resource (getResourceURI()
)java.lang.String getProduceMediaTypes()
java.lang.String getConsumeMediaTypes()
InvocationResult invoke(java.util.Map<java.lang.String,java.lang.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 service
InvocationResult
implementation representing the result of JAXRS serviceInvocationResult invoke(java.io.InputStream request, WiseMapper mapper)
request
- mapper
- WiseMapper
used to map inputObject to stream representation used to call the service
InvocationResult
implementation representing the result of JAXRS serviceInvocationResult invoke(java.lang.String request, WiseMapper mapper)
request
- mapper
- WiseMapper
used to map inputObject to stream representation used to call the service
InvocationResult
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 service
InvocationResult
implementation representing the result of JAXRS serviceInvocationResult invoke()
InvocationResult
implementation representing the result of JAXRS service
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |