|
TypedRest for Java
|
REST endpoint that represents an RPC-like function which returns TResult as output.
More...
Public Member Functions | |
| Class< TResult > | getResultType () |
| Returns The type of entity the endpoint returns as output. More... | |
| TResult | trigger () throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException |
| Triggers the function. More... | |
Public Member Functions inherited from net.typedrest.TriggerEndpoint | |
| Optional< Boolean > | isTriggerAllowed () |
| Shows whether the server has indicated that the trigger method is currently allowed. More... | |
| void | probe () throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException |
| Queries the server about capabilities of the endpoint without performing any action. More... | |
Public Member Functions inherited from net.typedrest.Endpoint | |
| URI | getUri () |
| The HTTP URI of the remote resource. More... | |
| Executor | getExecutor () |
| The REST executor used to communicate with the remote resource. More... | |
| ObjectMapper | getSerializer () |
| Controls the serialization of entities sent to and received from the server. More... | |
| Set< URI > | getLinks (String rel) |
| Retrieves all links with a specific relation type cached from the last request. More... | |
| Map< URI, String > | getLinksWithTitles (String rel) |
| Retrieves all links (with titles) with a specific relation type cached from the last request. More... | |
| URI | link (String rel) |
| Retrieves a single link with a specific relation type. More... | |
| UriTemplate | linkTemplate (String rel) |
| Retrieves a link template with a specific relation type. More... | |
| default URI | linkTemplate (String rel, String variableName, Object value) |
| Retrieves a link template with a specific relation type and resolves it. More... | |
REST endpoint that represents an RPC-like function which returns TResult as output.
| <TResult> | The type of entity the endpoint returns as output. |
| Class<TResult> net.typedrest.SupplierEndpoint< TResult >.getResultType | ( | ) |
Returns The type of entity the endpoint returns as output.
| TResult net.typedrest.SupplierEndpoint< TResult >.trigger | ( | ) | throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException |
Triggers the function.
| IOException | Network communication failed. |
| IllegalArgumentException | HttpStatus#SC_BAD_REQUEST |
| IllegalAccessException | HttpStatus#SC_UNAUTHORIZED or HttpStatus#SC_FORBIDDEN |
| FileNotFoundException | HttpStatus#SC_NOT_FOUND or HttpStatus#SC_GONE |
| IllegalStateException | HttpStatus#SC_CONFLICT |
| RuntimeException | Other non-success status code. |
Implemented in net.typedrest.SupplierEndpointImpl< TResult >.
1.8.15