- java.lang.Object
-
- aeonics.entity.Entity
-
- aeonics.http.Filter.Type
-
- aeonics.http.Filter.Response
-
- All Implemented Interfaces:
Exportable
,Snapshotable
- Enclosing class:
- Filter
public abstract static class Filter.Response extends Filter.Type
-
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Data
filter(Message request)
Filter the requests to perform pre-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)
Description copied from class:Filter.Type
Filter the requests to perform pre-endpoint treatments.- Specified by:
filter
in classFilter.Type
- Parameters:
request
- the incoming request- Returns:
- To abort the processing and send an error, throw an Exception. To continue the filter chain, return null (the request object can sill be altered). To stop the filter chain and prevent processing, return the response to send directly.
- See Also:
for the response content and structure
-
-