@ThreadSafe public class RSDynamicClientImpl extends Object implements RSDynamicClient
RSDynamicClient.HttpMethod| Constructor and Description |
|---|
RSDynamicClientImpl(String resourceURI,
String produceMediaTypes,
String consumeMediaTypes,
RSDynamicClient.HttpMethod httpMethod)
Invoke JAXRS service.
|
RSDynamicClientImpl(String resourceURI,
String produceMediaTypes,
String consumeMediaTypes,
RSDynamicClient.HttpMethod httpMethod,
Map<String,String> requestHeaders) |
| 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(File request,
WiseMapper mapper) |
InvocationResult |
invoke(InputStream request,
WiseMapper mapper)
Invoke JAXRS service.
|
InvocationResult |
invoke(Map<String,Object> inputObjects,
WiseMapper mapper)
Invoke JAXRS service.
|
InvocationResult |
invoke(org.apache.commons.httpclient.methods.RequestEntity requestEntity,
WiseMapper mapper) |
InvocationResult |
invoke(String request,
WiseMapper mapper)
Invoke JAXRS service.
|
public RSDynamicClientImpl(String resourceURI, String produceMediaTypes, String consumeMediaTypes, RSDynamicClient.HttpMethod httpMethod)
resourceURI - produceMediaTypes - default to "* / *"consumeMediaTypes - default to "* / *"httpMethod - public String getResourceURI()
getResourceURI in interface RSDynamicClientpublic String getUser()
getUser in interface RSDynamicClientpublic String getPassword()
getPassword in interface RSDynamicClientpublic RSDynamicClient.HttpMethod getHttpMethod()
getHttpMethod in interface RSDynamicClientRSDynamicClient.HttpMethod used to call the resource (RSDynamicClient.getResourceURI())public String getProduceMediaTypes()
getProduceMediaTypes in interface RSDynamicClientpublic String getConsumeMediaTypes()
getConsumeMediaTypes in interface RSDynamicClientpublic InvocationResult invoke(Map<String,Object> inputObjects, WiseMapper mapper)
RSDynamicClientinvoke in interface RSDynamicClientinputObjects - 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 servicepublic InvocationResult invoke(InputStream request, WiseMapper mapper)
RSDynamicClientinvoke in interface RSDynamicClientrequest - InputStreammapper - WiseMapper used to map inputObject to stream representation used to call the serviceInvocationResult implementation representing the result of JAXRS servicepublic InvocationResult invoke(String request, WiseMapper mapper)
RSDynamicClientinvoke in interface RSDynamicClientrequest - Stringmapper - WiseMapper used to map inputObject to stream representation used to call the serviceInvocationResult implementation representing the result of JAXRS servicepublic InvocationResult invoke(byte[] request, WiseMapper mapper)
RSDynamicClientinvoke in interface RSDynamicClientrequest - byte arraymapper - WiseMapper used to map inputObject to stream representation used to call the serviceInvocationResult implementation representing the result of JAXRS servicepublic InvocationResult invoke(File request, WiseMapper mapper)
public InvocationResult invoke()
RSDynamicClientinvoke in interface RSDynamicClientInvocationResult implementation representing the result of JAXRS servicepublic InvocationResult invoke(org.apache.commons.httpclient.methods.RequestEntity requestEntity, WiseMapper mapper)
Copyright © 2008–2016 JBoss.org. All rights reserved.