TypedRest for Java
Public Member Functions | List of all members
net.typedrest.ActionEndpoint Interface Reference

REST endpoint that represents an RPC-like action. More...

Inheritance diagram for net.typedrest.ActionEndpoint:
net.typedrest.TriggerEndpoint net.typedrest.Endpoint net.typedrest.ActionEndpointImpl

Public Member Functions

void trigger () throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException
 Triggers the action. 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...
 

Detailed Description

REST endpoint that represents an RPC-like action.

Member Function Documentation

◆ trigger()

void net.typedrest.ActionEndpoint.trigger ( ) throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException

Triggers the action.

Exceptions
IOExceptionNetwork communication failed.
IllegalArgumentExceptionHttpStatus#SC_BAD_REQUEST
IllegalAccessExceptionHttpStatus#SC_UNAUTHORIZED or HttpStatus#SC_FORBIDDEN
FileNotFoundExceptionHttpStatus#SC_NOT_FOUND or HttpStatus#SC_GONE
IllegalStateExceptionHttpStatus#SC_CONFLICT
RuntimeExceptionOther non-success status code.

Implemented in net.typedrest.ActionEndpointImpl.


The documentation for this interface was generated from the following file: