- All Known Subinterfaces:
- Invocation.Builder
public interface SyncInvoker
Uniform interface for synchronous invocation of HTTP methods.
- Since:
- 2.0
- 
Method SummaryModifier and TypeMethodDescriptiondelete()Invoke HTTP DELETE method for the current request synchronously.<T> Tdelete(GenericType<T> responseType) Invoke HTTP DELETE method for the current request synchronously.<T> TInvoke HTTP DELETE method for the current request synchronously.get()Invoke HTTP GET method for the current request synchronously.<T> Tget(GenericType<T> responseType) Invoke HTTP GET method for the current request synchronously.<T> TInvoke HTTP GET method for the current request synchronously.head()Invoke HTTP HEAD method for the current request synchronously.Invoke an arbitrary method for the current request synchronously.Invoke an arbitrary method for the current request synchronously.<T> Tmethod(String name, Entity<?> entity, GenericType<T> responseType) Invoke an arbitrary method for the current request synchronously.<T> TInvoke an arbitrary method for the current request synchronously.<T> Tmethod(String name, GenericType<T> responseType) Invoke an arbitrary method for the current request synchronously.<T> TInvoke an arbitrary method for the current request synchronously.options()Invoke HTTP OPTIONS method for the current request synchronously.<T> Toptions(GenericType<T> responseType) Invoke HTTP OPTIONS method for the current request synchronously.<T> TInvoke HTTP OPTIONS method for the current request synchronously.Invoke HTTP POST method for the current request synchronously.<T> Tpost(Entity<?> entity, GenericType<T> responseType) Invoke HTTP POST method for the current request synchronously.<T> TInvoke HTTP POST method for the current request synchronously.Invoke HTTP PUT method for the current request synchronously.<T> Tput(Entity<?> entity, GenericType<T> responseType) Invoke HTTP PUT method for the current request synchronously.<T> TInvoke HTTP PUT method for the current request synchronously.trace()Invoke HTTP TRACE method for the current request synchronously.<T> Ttrace(GenericType<T> responseType) Invoke HTTP TRACE method for the current request synchronously.<T> TInvoke HTTP TRACE method for the current request synchronously.
- 
Method Details- 
getResponse get()Invoke HTTP GET method for the current request synchronously.- Returns:
- invocation response.
- Throws:
- ProcessingException- in case the invocation processing has failed.
 
- 
getInvoke HTTP GET method for the current request synchronously.- Type Parameters:
- T- response entity type.
- Parameters:
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified response type is not- Response.
 
- 
getInvoke HTTP GET method for the current request synchronously.- Type Parameters:
- T- generic response entity type.
- Parameters:
- responseType- representation of a generic Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified generic response type does not represent- Response
 
- 
putInvoke HTTP PUT method for the current request synchronously.- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- Returns:
- invocation response.
- Throws:
- 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.
 
- 
putInvoke HTTP PUT method for the current request synchronously.- Type Parameters:
- T- response entity type.
- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified response type is not- Response.
 
- 
putInvoke HTTP PUT method for the current request synchronously.- Type Parameters:
- T- generic response entity type.
- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- responseType- representation of a generic Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified generic response type does not represent- Response.
 
- 
postInvoke HTTP POST method for the current request synchronously.- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- Returns:
- invocation response.
- Throws:
- 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.
 
- 
postInvoke HTTP POST method for the current request synchronously.- Type Parameters:
- T- response entity type.
- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified response type is not- Response.
 
- 
postInvoke HTTP POST method for the current request synchronously.- Type Parameters:
- T- generic response entity type.
- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- responseType- representation of a generic Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified generic response type does not represent- Response.
 
- 
deleteResponse delete()Invoke HTTP DELETE method for the current request synchronously.- Returns:
- invocation response.
- Throws:
- 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.
 
- 
deleteInvoke HTTP DELETE method for the current request synchronously.- Type Parameters:
- T- response entity type.
- Parameters:
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified response type is not- Response.
 
- 
deleteInvoke HTTP DELETE method for the current request synchronously.- Type Parameters:
- T- generic response entity type.
- Parameters:
- responseType- representation of a generic Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified generic response type does not represent- Response.
 
- 
headResponse head()Invoke HTTP HEAD method for the current request synchronously.- Returns:
- invocation response.
- Throws:
- 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.
 
- 
optionsResponse options()Invoke HTTP OPTIONS method for the current request synchronously.- Returns:
- invocation response.
- Throws:
- 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.
 
- 
optionsInvoke HTTP OPTIONS method for the current request synchronously.- Type Parameters:
- T- response entity type.
- Parameters:
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified response type is not- Response.
 
- 
optionsInvoke HTTP OPTIONS method for the current request synchronously.- Type Parameters:
- T- generic response entity type.
- Parameters:
- responseType- representation of a generic Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified generic response type does not represent- Response.
 
- 
traceResponse trace()Invoke HTTP TRACE method for the current request synchronously.- Returns:
- invocation response.
- Throws:
- 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.
 
- 
traceInvoke HTTP TRACE method for the current request synchronously.- Type Parameters:
- T- response entity type.
- Parameters:
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified response type is not- Response.
 
- 
traceInvoke HTTP TRACE method for the current request synchronously.- Type Parameters:
- T- generic response entity type.
- Parameters:
- responseType- representation of a generic Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified generic response type does not represent- Response.
 
- 
methodInvoke an arbitrary method for the current request synchronously.- Parameters:
- name- method name.
- Returns:
- invocation response.
- Throws:
- 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.
 
- 
methodInvoke an arbitrary method for the current request synchronously.- Type Parameters:
- T- response entity type.
- Parameters:
- name- method name.
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified response type is not- Response.
 
- 
methodInvoke an arbitrary method for the current request synchronously.- Type Parameters:
- T- generic response entity type.
- Parameters:
- name- method name.
- responseType- representation of a generic Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified generic response type does not represent- Response.
 
- 
methodInvoke an arbitrary method for the current request synchronously.- Parameters:
- name- method name.
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- Returns:
- invocation response.
- Throws:
- 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.
 
- 
methodInvoke an arbitrary method for the current request synchronously.- Type Parameters:
- T- response entity type.
- Parameters:
- name- method name.
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified response type is not- Response.
 
- 
methodInvoke an arbitrary method for the current request synchronously.- Type Parameters:
- T- generic response entity type.
- Parameters:
- name- method name.
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- responseType- representation of a generic Java type the response entity will be converted to.
- Returns:
- invocation response.
- Throws:
- 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- successfuland the specified generic response type does not represent- Response.
 
 
-