com.noelios.restlet.ext.servlet |
|
Java Source File Name | Type | Comment |
ServerServlet.java | Class | Servlet acting like an HTTP server connector.
See Developper FAQ
#2 for details on how to integrate a Restlet application into a servlet
container. Here is a sample configuration for your Restlet webapp:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Restlet adapter</display-name>
<!-- Your application class name -->
<context-param>
<param-name>org.restlet.application</param-name>
<param-value>com.noelios.restlet.test.TraceApplication</param-value>
</context-param>
<!-- Restlet adapter -->
<servlet>
<servlet-name>ServerServlet</servlet-name>
<servlet-class>com.noelios.restlet.ext.servlet.ServerServlet</servlet-class>
</servlet>
<!-- Catch all requests -->
<servlet-mapping>
<servlet-name>ServerServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
The enumeration of initParameters of your Servlet will be copied to the
"context.parameters" property of your application. |
ServletCall.java | Class | Call that is used by the Servlet HTTP server connector. |
ServletContextAdapter.java | Class | Context allowing access to the component's connectors, reusing the Servlet's
logging mechanism and adding the Servlet's initialization parameters to the
context's parameters. |
ServletConverter.java | Class | HTTP converter from Servlet calls to Restlet calls. |
ServletLogger.java | Class | Logger that wraps the logging methods of javax.servlet.ServletContext. |
ServletWarClient.java | Class | Connector acting as a WAR client for a Servlet Application. |
ServletWarClientHelper.java | Class | Local client connector based on a Servlet context (JEE Web application
context). |