Package | Description |
---|---|
org.restlet | |
org.restlet.engine.component | |
org.restlet.engine.local | |
org.restlet.ext.guice |
Integration with Google Guice @minor-version@.
|
org.restlet.ext.javamail | |
org.restlet.ext.sip | |
org.restlet.ext.spring | |
org.restlet.ext.wadl | |
org.restlet.resource | |
org.restlet.routing |
Modifier and Type | Method and Description |
---|---|
Finder |
Restlet.createFinder(Class<? extends ServerResource> resourceClass)
Creates a new finder instance based on the "targetClass" property.
|
void |
Application.setInboundRoot(Class<? extends ServerResource> inboundRootClass)
Sets the inbound root Resource class.
|
void |
Server.setNext(Class<? extends ServerResource> nextClass)
Sets the next Restlet as a Finder for a given resource class.
|
void |
Application.setOutboundRoot(Class<? extends ServerResource> outboundRootClass)
Sets the outbound root Resource class.
|
Constructor and Description |
---|
Server(Context context,
Protocol protocol,
Class<? extends ServerResource> nextClass)
Constructor.
|
Server(Context context,
Protocol protocol,
int port,
Class<? extends ServerResource> nextClass)
Constructor.
|
Server(Protocol protocol,
Class<? extends ServerResource> nextClass)
Constructor using the protocol's default port.
|
Server(Protocol protocol,
int port,
Class<? extends ServerResource> nextClass)
Constructor.
|
Server(Protocol protocol,
String address,
Class<? extends ServerResource> nextClass)
Constructor using the protocol's default port.
|
Modifier and Type | Method and Description |
---|---|
Finder |
InternalRouter.createFinder(Class<? extends ServerResource> targetClass) |
Modifier and Type | Class and Description |
---|---|
class |
DirectoryServerResource
Resource supported by a set of context representations (from file system,
class loaders and webapp context).
|
Modifier and Type | Class and Description |
---|---|
class |
SelfInjectingServerResource
Base class for ServerResources that do their own member injection.
|
Modifier and Type | Method and Description |
---|---|
Finder |
ResourceInjectingApplication.createFinder(Class<? extends ServerResource> targetClass) |
Modifier and Type | Class and Description |
---|---|
class |
TriggerResource
Resource that handles requests to target resources according to parameters
located in mails.
|
Modifier and Type | Class and Description |
---|---|
class |
SipServerResource
Deprecated.
Will be removed to focus on Web APIs.
|
Modifier and Type | Method and Description |
---|---|
ServerResource |
SpringFinder.create()
Creates a new instance of the
ServerResource class designated by
the "targetClass" property. |
ServerResource |
SpringBeanFinder.create() |
ServerResource |
SpringFinder.create(Class<? extends ServerResource> targetClass,
Request request,
Response response)
Calls the
SpringFinder.create() method that can be configured as a lookup
method in Spring. |
ServerResource |
SpringFinder.create(Request request,
Response response) |
Modifier and Type | Method and Description |
---|---|
ServerResource |
SpringFinder.create(Class<? extends ServerResource> targetClass,
Request request,
Response response)
Calls the
SpringFinder.create() method that can be configured as a lookup
method in Spring. |
Constructor and Description |
---|
SpringFinder(Context context,
Class<? extends ServerResource> targetClass)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
WadlServerResource
Resource that is able to automatically describe itself with WADL.
|
Modifier and Type | Method and Description |
---|---|
static void |
MethodInfo.describeAnnotations(MethodInfo info,
ServerResource resource)
Automatically describe a method by discovering the resource's
annotations.
|
Modifier and Type | Method and Description |
---|---|
ServerResource |
Finder.create(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 |
---|---|
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(Class<? extends ServerResource> targetClass,
Request request,
Response response)
Creates a new instance of a given
ServerResource subclass. |
static Finder |
Finder.createFinder(Class<? extends ServerResource> targetClass,
Class<? extends Finder> finderClass,
Context context,
Logger logger)
Creates a new finder instance based on the "targetClass" property.
|
void |
Finder.setTargetClass(Class<? extends ServerResource> targetClass)
Sets the target resource class which must be a subclass of
ServerResource . |
Constructor and Description |
---|
Finder(Context context,
Class<? extends ServerResource> targetClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TemplateRoute |
Router.attach(String pathTemplate,
Class<? extends ServerResource> targetClass)
Attaches a target Resource class to this router based on a given URI
pattern.
|
TemplateRoute |
Router.attach(String pathTemplate,
Class<? extends ServerResource> targetClass,
int matchingMode)
Attaches a target Resource class to this router based on a given URI
pattern.
|
TemplateRoute |
Router.attachDefault(Class<? extends ServerResource> defaultTargetClass)
Attaches a Resource class to this router as the default target to invoke
when no route matches.
|
Finder |
VirtualHost.createFinder(Class<? extends ServerResource> targetClass)
Creates a new finder instance based on the "targetClass" property.
|
void |
Filter.setNext(Class<? extends ServerResource> targetClass)
|
Copyright © 2005–2015. All rights reserved.