public interface SyncInvoker
| Modifier and Type | Method and Description |
|---|---|
Response |
delete()
Invoke HTTP DELETE method for the current request synchronously.
|
<T> T |
delete(Class<T> responseType)
Invoke HTTP DELETE method for the current request synchronously.
|
<T> T |
delete(GenericType<T> responseType)
Invoke HTTP DELETE method for the current request synchronously.
|
Response |
get()
Invoke HTTP GET method for the current request synchronously.
|
<T> T |
get(Class<T> responseType)
Invoke HTTP GET method for the current request synchronously.
|
<T> T |
get(GenericType<T> responseType)
Invoke HTTP GET method for the current request synchronously.
|
Response |
head()
Invoke HTTP HEAD method for the current request synchronously.
|
Response |
method(String name)
Invoke an arbitrary method for the current request synchronously.
|
<T> T |
method(String name,
Class<T> responseType)
Invoke an arbitrary method for the current request synchronously.
|
Response |
method(String name,
Entity<?> entity)
Invoke an arbitrary method for the current request synchronously.
|
<T> T |
method(String name,
Entity<?> entity,
Class<T> responseType)
Invoke an arbitrary method for the current request synchronously.
|
<T> T |
method(String name,
Entity<?> entity,
GenericType<T> responseType)
Invoke an arbitrary method for the current request synchronously.
|
<T> T |
method(String name,
GenericType<T> responseType)
Invoke an arbitrary method for the current request synchronously.
|
Response |
options()
Invoke HTTP OPTIONS method for the current request synchronously.
|
<T> T |
options(Class<T> responseType)
Invoke HTTP OPTIONS method for the current request synchronously.
|
<T> T |
options(GenericType<T> responseType)
Invoke HTTP OPTIONS method for the current request synchronously.
|
Response |
post(Entity<?> entity)
Invoke HTTP POST method for the current request synchronously.
|
<T> T |
post(Entity<?> entity,
Class<T> responseType)
Invoke HTTP POST method for the current request synchronously.
|
<T> T |
post(Entity<?> entity,
GenericType<T> responseType)
Invoke HTTP POST method for the current request synchronously.
|
Response |
put(Entity<?> entity)
Invoke HTTP PUT method for the current request synchronously.
|
<T> T |
put(Entity<?> entity,
Class<T> responseType)
Invoke HTTP PUT method for the current request synchronously.
|
<T> T |
put(Entity<?> entity,
GenericType<T> responseType)
Invoke HTTP PUT method for the current request synchronously.
|
Response |
trace()
Invoke HTTP TRACE method for the current request synchronously.
|
<T> T |
trace(Class<T> responseType)
Invoke HTTP TRACE method for the current request synchronously.
|
<T> T |
trace(GenericType<T> responseType)
Invoke HTTP TRACE method for the current request synchronously.
|
Response get() throws ClientException
ClientException - in case the invocation processing has failed.<T> T get(Class<T> responseType) throws ClientException, WebApplicationException
T - response entity type.responseType - Java type the response entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified response type is not
Response.<T> T get(GenericType<T> responseType) throws ClientException, WebApplicationException
T - generic response entity type.responseType - representation of a generic Java type the response
entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified generic response type does not represent
ResponseResponse put(Entity<?> entity) throws ClientException
entity - request entity.ClientException - in case the invocation processing has failed.<T> T put(Entity<?> entity, Class<T> responseType) throws ClientException, WebApplicationException
T - response entity type.entity - request entity.responseType - Java type the response entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified response type is not
Response.<T> T put(Entity<?> entity, GenericType<T> responseType) throws ClientException, WebApplicationException
T - generic response entity type.entity - request entity.responseType - representation of a generic Java type the response
entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified generic response type does not represent
Response.Response post(Entity<?> entity) throws ClientException
entity - request entity.ClientException - in case the invocation processing has failed.<T> T post(Entity<?> entity, Class<T> responseType) throws ClientException, WebApplicationException
T - response entity type.entity - request entity.responseType - Java type the response entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified response type is not
Response.<T> T post(Entity<?> entity, GenericType<T> responseType) throws ClientException, WebApplicationException
T - generic response entity type.entity - request entity.responseType - representation of a generic Java type the response
entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified generic response type does not represent
Response.Response delete() throws ClientException
ClientException - in case the invocation processing has failed.<T> T delete(Class<T> responseType) throws ClientException, WebApplicationException
T - response entity type.responseType - Java type the response entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified response type is not
Response.<T> T delete(GenericType<T> responseType) throws ClientException, WebApplicationException
T - generic response entity type.responseType - representation of a generic Java type the response
entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified generic response type does not represent
Response.Response head() throws ClientException
ClientException - in case the invocation processing has failed.Response options() throws ClientException
ClientException - in case the invocation processing has failed.<T> T options(Class<T> responseType) throws ClientException, WebApplicationException
T - response entity type.responseType - Java type the response entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified response type is not
Response.<T> T options(GenericType<T> responseType) throws ClientException, WebApplicationException
T - generic response entity type.responseType - representation of a generic Java type the response
entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified generic response type does not represent
Response.Response trace() throws ClientException
ClientException - in case the invocation processing has failed.<T> T trace(Class<T> responseType) throws ClientException, WebApplicationException
T - response entity type.responseType - Java type the response entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified response type is not
Response.<T> T trace(GenericType<T> responseType) throws ClientException, WebApplicationException
T - generic response entity type.responseType - representation of a generic Java type the response
entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified generic response type does not represent
Response.Response method(String name) throws ClientException
name - method name.ClientException - in case the invocation processing has failed.<T> T method(String name, Class<T> responseType) throws ClientException, WebApplicationException
T - response entity type.name - method name.responseType - Java type the response entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified response type is not
Response.<T> T method(String name, GenericType<T> responseType) throws ClientException, WebApplicationException
T - generic response entity type.name - method name.responseType - representation of a generic Java type the response
entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified generic response type does not represent
Response.Response method(String name, Entity<?> entity) throws ClientException
name - method name.entity - request entity.ClientException - in case the invocation processing has failed.<T> T method(String name, Entity<?> entity, Class<T> responseType) throws ClientException, WebApplicationException
T - response entity type.name - method name.entity - request entity.responseType - Java type the response entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified response type is not
Response.<T> T method(String name, Entity<?> entity, GenericType<T> responseType) throws ClientException, WebApplicationException
T - generic response entity type.name - method name.entity - request entity.responseType - representation of a generic Java type the response
entity will be converted to.ClientException - in case the invocation processing has failed.WebApplicationException - in case the response status code of the response
returned by the server is not
successful and the specified generic response type does not represent
Response.Copyright © 2013. All Rights Reserved.