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

An RPC-like trigger endpoint. More...

Inheritance diagram for net.typedrest.TriggerEndpoint:
net.typedrest.Endpoint net.typedrest.AbstractTriggerEndpoint net.typedrest.ActionEndpoint net.typedrest.ConsumerEndpoint< TEntity > net.typedrest.FunctionEndpoint< TEntity, TResult > net.typedrest.SupplierEndpoint< TResult > net.typedrest.ActionEndpointImpl net.typedrest.ConsumerEndpointImpl< TEntity > net.typedrest.FunctionEndpointImpl< TEntity, TResult > net.typedrest.SupplierEndpointImpl< TResult > net.typedrest.ActionEndpointImpl net.typedrest.ConsumerEndpointImpl< TEntity > net.typedrest.FunctionEndpointImpl< TEntity, TResult > net.typedrest.SupplierEndpointImpl< TResult >

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...
 
- 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

An RPC-like trigger endpoint.

Member Function Documentation

◆ isTriggerAllowed()

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.

Returns
An indicator whether the method is allowed. If no request has been sent yet or the server did not specify allowed methods Optional#empty() is returned.

Implemented in net.typedrest.AbstractTriggerEndpoint.

◆ probe()

void net.typedrest.TriggerEndpoint.probe ( ) throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException

Queries the server about capabilities of the endpoint without performing any 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.AbstractTriggerEndpoint.


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