- 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 classEndpoint.Filestatic classEndpoint.RestThis is the base REST endpoint.static classEndpoint.TemplateSuperclass template for endpointsstatic classEndpoint.TypeThis is the base endpoint.static classEndpoint.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.Templatetemplate()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:ItemReturns the target entity category. This method should be implemented by subclasses to specify the entity category.- Specified by:
categoryin classItem<Endpoint.Type>- Returns:
- the target entity category
-
template
public Endpoint.Template template()
Description copied from class:ItemReturns 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:
templatein classItem<Endpoint.Type>- Returns:
- the matching entity template
-
-