public interface SyncInvoker
Modifier and Type | Method and Description |
---|---|
Response |
delete()
Invoke HTTP DELETE method for the current request synchronously.
|
|
delete(Class
Invoke HTTP DELETE method for the current request synchronously.
|
|
delete(GenericType
Invoke HTTP DELETE method for the current request synchronously.
|
Response |
get()
Invoke HTTP GET method for the current request synchronously.
|
|
get(Class
Invoke HTTP GET method for the current request synchronously.
|
|
get(GenericType
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.
|
|
method(String name,
Class
Invoke an arbitrary method for the current request synchronously.
|
Response |
method(String name,
Entity> entity)
Invoke an arbitrary method for the current request synchronously.
|
|
method(String name,
Entity> entity,
Class
Invoke an arbitrary method for the current request synchronously.
|
|
method(String name,
Entity> entity,
GenericType
Invoke an arbitrary method for the current request synchronously.
|
|
method(String name,
GenericType
Invoke an arbitrary method for the current request synchronously.
|
Response |
options()
Invoke HTTP OPTIONS method for the current request synchronously.
|
|
options(Class
Invoke HTTP OPTIONS method for the current request synchronously.
|
|
options(GenericType
Invoke HTTP OPTIONS method for the current request synchronously.
|
Response |
post(Entity> entity)
Invoke HTTP POST method for the current request synchronously.
|
|
post(Entity> entity,
Class
Invoke HTTP POST method for the current request synchronously.
|
|
post(Entity> entity,
GenericType
Invoke HTTP POST method for the current request synchronously.
|
Response |
put(Entity> entity)
Invoke HTTP PUT method for the current request synchronously.
|
|
put(Entity> entity,
Class
Invoke HTTP PUT method for the current request synchronously.
|
|
put(Entity> entity,
GenericType
Invoke HTTP PUT method for the current request synchronously.
|
Response |
trace()
Invoke HTTP TRACE method for the current request synchronously.
|
|
trace(Class
Invoke HTTP TRACE method for the current request synchronously.
|
|
trace(GenericType
Invoke HTTP TRACE method for the current request synchronously.
|
Response get()
ProcessingException
- in case the invocation processing has failed.T get(Class responseType)
T
- response entity type.responseType
- Java type the response entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 get(GenericType responseType)
T
- generic response entity type.responseType
- representation of a generic Java type the response
entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 put(Entity> entity)
entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.T put(Entity> entity, Class responseType)
T
- response entity type.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.responseType
- Java type the response entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 put(Entity> entity, GenericType responseType)
T
- generic response entity type.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.responseType
- representation of a generic Java type the response
entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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)
entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.T post(Entity> entity, Class responseType)
T
- response entity type.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.responseType
- Java type the response entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 post(Entity> entity, GenericType responseType)
T
- generic response entity type.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.responseType
- representation of a generic Java type the response
entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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()
ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.T delete(Class responseType)
T
- response entity type.responseType
- Java type the response entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 delete(GenericType responseType)
T
- generic response entity type.responseType
- representation of a generic Java type the response
entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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()
ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.Response options()
ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.T options(Class responseType)
T
- response entity type.responseType
- Java type the response entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 options(GenericType responseType)
T
- generic response entity type.responseType
- representation of a generic Java type the response
entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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()
ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.T trace(Class responseType)
T
- response entity type.responseType
- Java type the response entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 trace(GenericType responseType)
T
- generic response entity type.responseType
- representation of a generic Java type the response
entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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)
name
- method name.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.T method(String name, Class responseType)
T
- response entity type.name
- method name.responseType
- Java type the response entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 method(String name, GenericType responseType)
T
- generic response entity type.name
- method name.responseType
- representation of a generic Java type the response
entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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)
name
- method name.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.T method(String name, Entity> entity, Class responseType)
T
- response entity type.name
- method name.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.responseType
- Java type the response entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 method(String name, Entity> entity, GenericType responseType)
T
- generic response entity type.name
- method name.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.responseType
- representation of a generic Java type the response
entity will be converted to.ResponseProcessingException
- in case processing of a received HTTP response fails (e.g. in a filter
or during conversion of the response entity data to an instance
of a particular Java type).ProcessingException
- in case the request processing or subsequent I/O operation fails.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 © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.