Skip to content

Instantly share code, notes, and snippets.

@ansell
Created August 12, 2011 06:36
Show Gist options
  • Save ansell/1141581 to your computer and use it in GitHub Desktop.
Save ansell/1141581 to your computer and use it in GitHub Desktop.
Restlet web.xml skeleton
<!-- Application class name -->
<context-param>
<param-name>org.restlet.application</param-name>
<param-value>
mypackage.WebSiteApplication
</param-value>
</context-param>
<!-- Restlet adapter -->
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>
org.restlet.ext.servlet.ServerServlet
</servlet-class>
<init-param>
<param-name>org.restlet.clients</param-name>
<param-value>HTTP HTTPS CLAP</param-value>
</init-param>
</servlet>
<!-- Catch all requests -->
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment