public abstract class PolygeneRestApplication
extends org.restlet.Application
Modifier and Type | Field and Description |
---|---|
protected String |
basePath |
protected ObjectFactory |
objectFactory |
protected Application |
polygeneApplication |
protected org.restlet.routing.Router |
router |
Modifier | Constructor and Description |
---|---|
protected |
PolygeneRestApplication(String basePath,
org.restlet.Context context) |
Modifier and Type | Method and Description |
---|---|
protected void |
addResourcePath(String name,
Class<? extends HasIdentity> type,
String basePath) |
protected void |
addResourcePath(String name,
Class<? extends HasIdentity> type,
String basePath,
boolean createLink,
boolean rootRoute) |
protected abstract void |
addRoutes(org.restlet.routing.Router router) |
protected org.restlet.security.Enroler |
createEnroler() |
org.restlet.Restlet |
createInboundRoot() |
protected org.restlet.routing.Filter |
createInnerInterceptor() |
protected org.restlet.routing.Filter |
createOuterInterceptor() |
protected org.restlet.security.Verifier |
createVerifier() |
protected void |
printRoutes(PrintStream out) |
void |
start() |
void |
stop() |
createOutboundRoot, getConnectorService, getConnegService, getConverterService, getCurrent, getDecoderService, getEncoderService, getInboundRoot, getMetadataService, getOutboundRoot, getRangeService, getRole, getRoles, getServices, getStatusService, getTaskService, getTunnelService, handle, isDebugging, setConnectorService, setConnegService, setContext, setConverterService, setCurrent, setDebugging, setDecoderService, setEncoderService, setInboundRoot, setInboundRoot, setMetadataService, setOutboundRoot, setOutboundRoot, setRangeService, setRoles, setStatusService, setTaskService, setTunnelService
@Structure protected Application polygeneApplication
@Structure protected ObjectFactory objectFactory
protected org.restlet.routing.Router router
protected String basePath
protected PolygeneRestApplication(String basePath, org.restlet.Context context)
protected void printRoutes(PrintStream out)
public void start() throws Exception
start
in class org.restlet.Application
Exception
public void stop() throws Exception
stop
in class org.restlet.Application
Exception
public org.restlet.Restlet createInboundRoot()
createInboundRoot
in class org.restlet.Application
protected org.restlet.routing.Filter createOuterInterceptor()
protected org.restlet.routing.Filter createInnerInterceptor()
protected org.restlet.security.Verifier createVerifier()
protected org.restlet.security.Enroler createEnroler()
protected abstract void addRoutes(org.restlet.routing.Router router)
protected void addResourcePath(String name, Class<? extends HasIdentity> type, String basePath)
protected void addResourcePath(String name, Class<? extends HasIdentity> type, String basePath, boolean createLink, boolean rootRoute)