| java.lang.Object org.restlet.util.Engine com.noelios.restlet.Engine
Engine | public class Engine extends org.restlet.util.Engine (Code) | | Restlet factory supported by the engine.
author: Jerome Louvel (contact@noelios.com) |
Constructor Summary | |
public | Engine() Constructor that will automatically attempt to discover connectors. | public | Engine(boolean discoverConnectors) Constructor. |
Method Summary | |
public Resource | createDirectoryResource(Directory handler, Request request, Response response) Creates a directory resource.
Parameters: handler - The parent directory handler. Parameters: request - The request to handle. Parameters: response - The response to return. | public Helper | createHelper(Application application, Context parentContext) Creates a new helper for a given component.
Parameters: application - The application to help. Parameters: parentContext - The parent context, typically the component's context. | public Helper | createHelper(Client client) Creates a new helper for a given client connector.
Parameters: client - The client to help. | public Helper | createHelper(Component component) Creates a new helper for a given component.
Parameters: component - The component to help. | public Helper | createHelper(Server server) Creates a new helper for a given server connector.
Parameters: server - The server to help. | public static int | getJavaMajorVersion() Parses the "java.version" system property and returns the first digit of
the version number of the Java Runtime Environment (e.g. | public static int | getJavaMinorVersion() Parses the "java.version" system property and returns the second digit of
the version number of the Java Runtime Environment (e.g. | public static int | getJavaUpdateVersion() Parses the "java.version" system property and returns the update release
number of the Java Runtime Environment (e.g. | public Variant | getPreferredVariant(ClientInfo client, List<Variant> variants, Language defaultLanguage) Returns the preferred variant representation for a given resource
according the the client preferences.
Parameters: client - The client preferences. Parameters: variants - The list of variants to compare. | public List<ConnectorHelper> | getRegisteredClients() Returns the list of available client connectors. | public List<ConnectorHelper> | getRegisteredServers() Returns the list of available server connectors. | public void | parse(Logger logger, Form form, Representation webForm) Parses an URL encoded Web form. | public void | parse(Logger logger, Form form, String queryString, CharacterSet characterSet) Parses an URL encoded query string into a given form. | public static void | register() Registers a new Noelios Restlet Engine. |
VERSION | final public static String VERSION(Code) | | Complete version.
|
VERSION_HEADER | final public static String VERSION_HEADER(Code) | | Complete version header.
|
Engine | public Engine()(Code) | | Constructor that will automatically attempt to discover connectors.
|
Engine | public Engine(boolean discoverConnectors)(Code) | | Constructor.
Parameters: discoverConnectors - True if connectors should be automatically discovered. |
createDirectoryResource | public Resource createDirectoryResource(Directory handler, Request request, Response response) throws IOException(Code) | | Creates a directory resource.
Parameters: handler - The parent directory handler. Parameters: request - The request to handle. Parameters: response - The response to return. A new directory resource. throws: IOException - |
createHelper | public Helper createHelper(Application application, Context parentContext)(Code) | | Creates a new helper for a given component.
Parameters: application - The application to help. Parameters: parentContext - The parent context, typically the component's context. The new helper. |
createHelper | public Helper createHelper(Client client)(Code) | | Creates a new helper for a given client connector.
Parameters: client - The client to help. The new helper. |
createHelper | public Helper createHelper(Component component)(Code) | | Creates a new helper for a given component.
Parameters: component - The component to help. The new helper. |
createHelper | public Helper createHelper(Server server)(Code) | | Creates a new helper for a given server connector.
Parameters: server - The server to help. The new helper. |
getJavaMajorVersion | public static int getJavaMajorVersion()(Code) | | Parses the "java.version" system property and returns the first digit of
the version number of the Java Runtime Environment (e.g. "1" for
"1.3.0").
See Also: Official
* Java versioning The major version number of the Java Runtime Environment. |
getJavaMinorVersion | public static int getJavaMinorVersion()(Code) | | Parses the "java.version" system property and returns the second digit of
the version number of the Java Runtime Environment (e.g. "3" for
"1.3.0").
See Also: Official
* Java versioning The minor version number of the Java Runtime Environment. |
getJavaUpdateVersion | public static int getJavaUpdateVersion()(Code) | | Parses the "java.version" system property and returns the update release
number of the Java Runtime Environment (e.g. "10" for "1.3.0_10").
See Also: Official
* Java versioning The release number of the Java Runtime Environment or 0 if itdoes not exist. |
getPreferredVariant | public Variant getPreferredVariant(ClientInfo client, List<Variant> variants, Language defaultLanguage)(Code) | | Returns the preferred variant representation for a given resource
according the the client preferences.
Parameters: client - The client preferences. Parameters: variants - The list of variants to compare. The preferred variant. See Also: Apache
* content negotiation algorithm |
getRegisteredClients | public List<ConnectorHelper> getRegisteredClients()(Code) | | Returns the list of available client connectors.
The list of available client connectors. |
getRegisteredServers | public List<ConnectorHelper> getRegisteredServers()(Code) | | Returns the list of available server connectors.
The list of available server connectors. |
parse | public void parse(Logger logger, Form form, Representation webForm)(Code) | | Parses an URL encoded Web form.
Parameters: logger - The logger to use. Parameters: form - The target form. Parameters: webForm - The posted form. |
parse | public void parse(Logger logger, Form form, String queryString, CharacterSet characterSet)(Code) | | Parses an URL encoded query string into a given form.
Parameters: logger - The logger to use. Parameters: form - The target form. Parameters: queryString - Query string. Parameters: characterSet - The supported character encoding. |
register | public static void register()(Code) | | Registers a new Noelios Restlet Engine.
|
Methods inherited from org.restlet.util.Engine | abstract public Resource createDirectoryResource(Directory handler, Request request, Response response) throws IOException(Code)(Java Doc) abstract public Helper createHelper(Application application, Context parentContext)(Code)(Java Doc) abstract public Helper createHelper(Client client)(Code)(Java Doc) abstract public Helper createHelper(Component component)(Code)(Java Doc) abstract public Helper createHelper(Server server)(Code)(Java Doc) public static ClassLoader getClassLoader()(Code)(Java Doc) public static Engine getInstance()(Code)(Java Doc) abstract public Variant getPreferredVariant(ClientInfo client, List<Variant> variants, Language defaultLanguage)(Code)(Java Doc) public static int hashCode(Object... objects)(Code)(Java Doc) abstract public void parse(Logger logger, Form form, Representation representation)(Code)(Java Doc) abstract public void parse(Logger logger, Form form, String queryString, CharacterSet characterSet)(Code)(Java Doc) public static void setClassLoader(ClassLoader newClassloader)(Code)(Java Doc) public static void setInstance(Engine engine)(Code)(Java Doc)
|
|
|