- java.lang.Object
-
- aeonics.template.Item<Endpoint.Type>
-
- aeonics.http.Endpoint
-
- Direct Known Subclasses:
Endpoint.File
,Endpoint.Rest
,Endpoint.Websocket
public abstract class Endpoint extends Item<Endpoint.Type>
This item represents an HTTP endpoint that will produce a response to a request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Endpoint.File
static class
Endpoint.Rest
This is the base REST endpoint.static class
Endpoint.Template
Superclass template for endpointsstatic class
Endpoint.Type
This is the base endpoint.static class
Endpoint.Websocket
-
Constructor Summary
Constructors Constructor Description Endpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<? extends Endpoint>
category()
Returns the target entity category.Endpoint.Template
template()
Returns the template to build the target entity.-
Methods inherited from class aeonics.template.Item
creator, creator, defaultCreator, defaultTarget, defaultType, from, target, target, type, type
-
-
-
-
Method Detail
-
category
protected java.lang.Class<? extends Endpoint> category()
Description copied from class:Item
Returns the target entity category. This method should be implemented by subclasses to specify the entity category.- Specified by:
category
in classItem<Endpoint.Type>
- Returns:
- the target entity category
-
template
public Endpoint.Template template()
Description copied from class:Item
Returns the template to build the target entity.This method should ultimately be used to provide the final entity template. Although, it may also provide a partial template that subclassed may complement.
- Overrides:
template
in classItem<Endpoint.Type>
- Returns:
- the matching entity template
-
-