TypedRest for Java
|
An RPC-like trigger endpoint. More...
Public Member Functions | |
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... | |
![]() | |
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... | |
An RPC-like trigger endpoint.
Optional<Boolean> net.typedrest.TriggerEndpoint.isTriggerAllowed | ( | ) |
Shows whether the server has indicated that the trigger method is currently allowed.
Uses cached data from last response.
Implemented in net.typedrest.AbstractTriggerEndpoint.
void net.typedrest.TriggerEndpoint.probe | ( | ) | throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException |
Queries the server about capabilities of the endpoint without performing any action.
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.AbstractTriggerEndpoint.