Package | Description |
---|---|
org.restlet |
Core classes of the API.
|
org.restlet.resource |
Client and server resource classes.
|
org.restlet.routing |
Classes related to call routing.
|
Modifier and Type | Method and Description |
---|---|
Finder |
Restlet.createFinder(java.lang.Class<? extends ServerResource> resourceClass)
Creates a new finder instance based on the "targetClass" property.
|
void |
Application.setInboundRoot(java.lang.Class<? extends ServerResource> inboundRootClass)
Sets the inbound root Resource class.
|
void |
Server.setNext(java.lang.Class<? extends ServerResource> nextClass)
Sets the next Restlet as a Finder for a given resource class.
|
void |
Application.setOutboundRoot(java.lang.Class<? extends ServerResource> outboundRootClass)
Sets the outbound root Resource class.
|
Constructor and Description |
---|
Server(Context context,
Protocol protocol,
java.lang.Class<? extends ServerResource> nextClass)
Constructor.
|
Server(Context context,
Protocol protocol,
int port,
java.lang.Class<? extends ServerResource> nextClass)
Constructor.
|
Server(Protocol protocol,
java.lang.Class<? extends ServerResource> nextClass)
Constructor using the protocol's default port.
|
Server(Protocol protocol,
int port,
java.lang.Class<? extends ServerResource> nextClass)
Constructor.
|
Server(Protocol protocol,
java.lang.String address,
java.lang.Class<? extends ServerResource> nextClass)
Constructor using the protocol's default port.
|
Modifier and Type | Method and Description |
---|---|
ServerResource |
Finder.create(java.lang.Class<? extends ServerResource> targetClass,
Request request,
Response response)
Creates a new instance of a given
ServerResource subclass. |
ServerResource |
Finder.create(Request request,
Response response)
Creates a new instance of the
ServerResource subclass designated
by the "targetClass" property. |
ServerResource |
Finder.find(Request request,
Response response)
Finds the target
ServerResource if available. |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends ServerResource> |
Finder.getTargetClass()
Returns the target resource class which must be either a subclass of
ServerResource . |
Modifier and Type | Method and Description |
---|---|
ServerResource |
Finder.create(java.lang.Class<? extends ServerResource> targetClass,
Request request,
Response response)
Creates a new instance of a given
ServerResource subclass. |
static Finder |
Finder.createFinder(java.lang.Class<? extends ServerResource> targetClass,
java.lang.Class<? extends Finder> finderClass,
Context context,
java.util.logging.Logger logger)
Creates a new finder instance based on the "targetClass" property.
|
void |
Finder.setTargetClass(java.lang.Class<? extends ServerResource> targetClass)
Sets the target resource class which must be a subclass of
ServerResource . |
Constructor and Description |
---|
Finder(Context context,
java.lang.Class<? extends ServerResource> targetClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TemplateRoute |
Router.attach(java.lang.String pathTemplate,
java.lang.Class<? extends ServerResource> targetClass)
Attaches a target Resource class to this router based on a given URI
pattern.
|
TemplateRoute |
Router.attach(java.lang.String pathTemplate,
java.lang.Class<? extends ServerResource> targetClass,
int matchingMode)
Attaches a target Resource class to this router based on a given URI
pattern.
|
TemplateRoute |
Router.attachDefault(java.lang.Class<? extends ServerResource> defaultTargetClass)
Attaches a Resource class to this router as the default target to invoke
when no route matches.
|
Finder |
VirtualHost.createFinder(java.lang.Class<? extends ServerResource> targetClass)
Creates a new finder instance based on the "targetClass" property.
|
void |
Filter.setNext(java.lang.Class<? extends ServerResource> targetClass)
|
Copyright © 2005-2024 Restlet.