See: Description
Interface | Description |
---|---|
HttpResponseAware | |
HttpStatusException | |
Interceptor | |
InvocationAware | |
ParamsDigest |
This may be used for REST APIs where some parameters' values must be digests of other parameters.
|
RequestWriter |
Interface for serializing data sent to REST services (HTTP body).
|
SynchronizedValueFactory<T> |
Allows services to accept a placeholder that is replaced with generated value just before message is serialized and sent.
|
Class | Description |
---|---|
AnnotationUtils | |
BasicAuthCredentials | |
ClientConfig | |
FormUrlEncodedRequestWriter |
Writes the @FormParam annotated data as URL-encoded string.
|
HmacPostBodyDigest |
This may be used as the value of a @HeaderParam, @QueryParam or @PathParam to create a digest of the post body (composed of @FormParam's).
|
InvocationResult |
Result of a REST service invocation.
|
NullRequestWriter | |
Params |
This class provides support for various types of HTTP params, especially in the context of RESTful web services, but may be also used to construct urls in other contexts.
|
RequestWriterResolver |
Resolves which RequestWriter to use for REST requests.
|
ResponseReader |
Interface for deserializing of REST returned data.
|
ResponseReaderResolver |
Resolves which ResponseReader to use for REST responses.
|
RestInvocation |
This holds name-value mapping for various types of params used in REST (QueryParam, PathParam, FormParam, HeaderParam).
|
RestInvocationHandler | |
RestMethodMetadata | |
RestProxyFactory | |
Utils |
Enum | Description |
---|---|
ClientConfigUtil | |
HttpMethod |
Exception | Description |
---|---|
AwareException | |
ExceptionalReturnContentException |
Throw this exception (eg.
|
HttpStatusExceptionSupport | |
HttpStatusIOException |
Classes in this package may be used to create proxy client objects for REST web services.
For a working example see the XChange project on github.
This is based on JAX-RS (javax.ws.rs
-- only the JAX-RS annotations are used) and Proxy
.
RestProxyFactory.createProxy(Class, String)
Basic support is provided for Path
, GET
, POST
,
DELETE
, HEAD
, OPTIONS
, QueryParam
,
FormParam
, HeaderParam
, PathParam
.
Params
.RestProxyFactory
Copyright © 2012–2016. All rights reserved.