ActionTransformer
A simple kind of ActionRefiner which, given a request (of type R), unconditionally transforms it to a new parameter type (P) to be passed to its Action block. The critical (abstract) function is transform.
Attributes
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Augment or transform an existing request. This is the main method that an ActionTransformer has to implement.
Augment or transform an existing request. This is the main method that an ActionTransformer has to implement.
Value parameters
- request
-
the input request
Attributes
- Returns
-
The new parameter to pass to the Action block
Concrete methods
Determine how to process a request. This is the main method than an ActionRefiner has to implement. It can decide to immediately intercept the request and return a Result (Left), or continue processing with a new parameter of type P (Right).
Determine how to process a request. This is the main method than an ActionRefiner has to implement. It can decide to immediately intercept the request and return a Result (Left), or continue processing with a new parameter of type P (Right).
Value parameters
- request
-
the input request
Attributes
- Returns
-
Either a result or a new parameter to pass to the Action block
Inherited methods
Compose this ActionFunction with another, with this one applied first.
Compose this ActionFunction with another, with this one applied first.
Value parameters
- other
-
ActionFunction with which to compose
Attributes
- Returns
-
The new ActionFunction
- Inherited from:
- ActionFunction
Attributes
- Inherited from:
- ActionFunction
Compose another ActionFunction with this one, with this one applied last.
Compose another ActionFunction with this one, with this one applied last.
Value parameters
- other
-
ActionFunction with which to compose
Attributes
- Returns
-
The new ActionFunction
- Inherited from:
- ActionFunction
Attributes
- Returns
-
The execution context to run the request in.
- Inherited from:
- ActionFunction
Invoke the block. This is the main method that an ActionBuilder has to implement, at this stage it can wrap it in any other actions, modify the request object or potentially use a different class to represent the request.
Invoke the block. This is the main method that an ActionBuilder has to implement, at this stage it can wrap it in any other actions, modify the request object or potentially use a different class to represent the request.
Value parameters
- block
-
The block of code to invoke
- request
-
The request
Attributes
- Returns
-
A future of the result
- Inherited from:
- ActionRefiner