org.jboss.wise.core.client
Interface RSDynamicClient
@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.
- Author:
- Stefano Maestri, stefano.maestri@javalinux.it
getResourceURI
java.lang.String getResourceURI()
- Returns:
- the JAXRS resource URI to be called.
getUser
java.lang.String getUser()
- Returns:
- Usename used for HTTP authentication
getPassword
java.lang.String getPassword()
- Returns:
- Password used for HTTP authentication
getHttpMethod
RSDynamicClient.HttpMethod getHttpMethod()
- Returns:
RSDynamicClient.HttpMethod
used to call the resource (getResourceURI()
)
getContentType
java.lang.String getContentType()
- Returns:
- content type used to call the resource (
getResourceURI()
)
invoke
InvocationResult invoke(java.util.Map<java.lang.String,java.lang.Object> inputObjects,
WiseMapper mapper)
- Invoke JAXRS service.
- Parameters:
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 te 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
- Returns:
InvocationResult
implementation representing the result of JAXRS service