- java.lang.Object
-
- aeonics.entity.Entity
-
- aeonics.http.Filter.Type
-
- aeonics.http.Filter.Request
-
- All Implemented Interfaces:
Exportable
,Snapshotable
- Enclosing class:
- Filter
public abstract static class Filter.Request extends Filter.Type
-
-
Constructor Summary
Constructors Constructor Description Request()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Data
filter(Message request, Data response)
Filter the requests to perform post-endpoint treatments.-
Methods inherited from class aeonics.http.Filter.Type
category, filter
-
Methods inherited from class aeonics.entity.Entity
addRelation, addRelation, addRelation, cast, clearRelation, config, defineRelation, equals, export, firstRelation, hashCode, hasRelation, id, internal, name, name, onCreate, onRemove, onUpdate, parameter, relations, relationships, removeRelation, snapshot, type, valueOf, valueOf
-
-
-
-
Method Detail
-
filter
public Data filter(Message request, Data response)
Description copied from class:Filter.Type
Filter the requests to perform post-endpoint treatments.- Specified by:
filter
in classFilter.Type
- Parameters:
request
- the incoming requestresponse
- the generated response- Returns:
- To overwrite the response with an error, throw an Exception. To continue the filter chain, return null (the response object can sill be altered). To stop the filter chain, return the response to send directly.
- See Also:
for the response content and structure
-
-