Search in sources :

Example 1 with RemoteServlet

use of org.apache.jackrabbit.oak.remote.http.RemoteServlet in project jackrabbit-oak by apache.

the class RemoteServer method createHandler.

private Handler createHandler(RemoteRepository repository) {
    ServletHandler handler = new ServletHandler();
    handler.addServletWithMapping(new ServletHolder(new RemoteServlet(repository)), "/*");
    return handler;
}
Also used : ServletHandler(org.eclipse.jetty.servlet.ServletHandler) RemoteServlet(org.apache.jackrabbit.oak.remote.http.RemoteServlet) ServletHolder(org.eclipse.jetty.servlet.ServletHolder)

Aggregations

RemoteServlet (org.apache.jackrabbit.oak.remote.http.RemoteServlet)1 ServletHandler (org.eclipse.jetty.servlet.ServletHandler)1 ServletHolder (org.eclipse.jetty.servlet.ServletHolder)1