|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.wise.core.client.jaxrs.impl.RSDynamicClientImpl
@ThreadSafe public class RSDynamicClientImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.wise.core.client.jaxrs.RSDynamicClient |
---|
RSDynamicClient.HttpMethod |
Constructor Summary | |
---|---|
RSDynamicClientImpl(java.lang.String resourceURI,
java.lang.String produceMediaTypes,
java.lang.String consumeMediaTypes,
RSDynamicClient.HttpMethod httpMethod)
Invoke JAXRS service. |
|
RSDynamicClientImpl(java.lang.String resourceURI,
java.lang.String produceMediaTypes,
java.lang.String consumeMediaTypes,
RSDynamicClient.HttpMethod httpMethod,
java.util.Map<java.lang.String,java.lang.String> requestHeaders)
|
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.File request,
WiseMapper mapper)
|
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(org.apache.commons.httpclient.methods.RequestEntity requestEntity,
WiseMapper mapper)
|
InvocationResult |
invoke(java.lang.String request,
WiseMapper mapper)
Invoke JAXRS service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSDynamicClientImpl(java.lang.String resourceURI, java.lang.String produceMediaTypes, java.lang.String consumeMediaTypes, RSDynamicClient.HttpMethod httpMethod)
resourceURI
- produceMediaTypes:
- default to "* / *"consumeMediaTypes:
- default to "* / *"httpMethod
- public RSDynamicClientImpl(java.lang.String resourceURI, java.lang.String produceMediaTypes, java.lang.String consumeMediaTypes, RSDynamicClient.HttpMethod httpMethod, java.util.Map<java.lang.String,java.lang.String> requestHeaders)
Method Detail |
---|
public java.lang.String getResourceURI()
getResourceURI
in interface RSDynamicClient
public java.lang.String getUser()
getUser
in interface RSDynamicClient
public java.lang.String getPassword()
getPassword
in interface RSDynamicClient
public RSDynamicClient.HttpMethod getHttpMethod()
getHttpMethod
in interface RSDynamicClient
RSDynamicClient.HttpMethod
used to call the resource (RSDynamicClient.getResourceURI()
)public java.lang.String getProduceMediaTypes()
getProduceMediaTypes
in interface RSDynamicClient
public java.lang.String getConsumeMediaTypes()
getConsumeMediaTypes
in interface RSDynamicClient
public InvocationResult invoke(java.util.Map<java.lang.String,java.lang.Object> inputObjects, WiseMapper mapper)
RSDynamicClient
invoke
in interface RSDynamicClient
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 servicepublic InvocationResult invoke(java.io.InputStream request, WiseMapper mapper)
RSDynamicClient
invoke
in interface RSDynamicClient
mapper
- WiseMapper
used to map inputObject to stream representation used to call the service
InvocationResult
implementation representing the result of JAXRS servicepublic InvocationResult invoke(java.lang.String request, WiseMapper mapper)
RSDynamicClient
invoke
in interface RSDynamicClient
mapper
- WiseMapper
used to map inputObject to stream representation used to call the service
InvocationResult
implementation representing the result of JAXRS servicepublic InvocationResult invoke(byte[] request, WiseMapper mapper)
RSDynamicClient
invoke
in interface RSDynamicClient
mapper
- WiseMapper
used to map inputObject to stream representation used to call the service
InvocationResult
implementation representing the result of JAXRS servicepublic InvocationResult invoke(java.io.File request, WiseMapper mapper)
public InvocationResult invoke()
RSDynamicClient
invoke
in interface RSDynamicClient
InvocationResult
implementation representing the result of JAXRS servicepublic InvocationResult invoke(org.apache.commons.httpclient.methods.RequestEntity requestEntity, WiseMapper mapper)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |