ServletHolder makeRequestHolder = new ServletHolder(new MakeRequestServlet());
context.addServlet(makeRequestHolder, MAKEREQUEST_BASE);
context.addFilter(AuthenticationServletFilter.class, MAKEREQUEST_BASE, 0);
// Attach the gadgets rpc servlet
ServletHolder gadgetsRpcServletHolder = new ServletHolder(new JsonRpcServlet());
gadgetsRpcServletHolder.setInitParameter("handlers", "org.apache.shindig.gadgets.handlers");
context.addServlet(gadgetsRpcServletHolder, GADGETS_RPC_BASE);
context.addFilter(AuthenticationServletFilter.class, GADGETS_RPC_BASE, 0);
// Attach the gadgets rest servlet
ServletHolder gadgetsRestServletHolder = new ServletHolder(new DataServiceServlet());
gadgetsRestServletHolder.setInitParameter("handlers", "org.apache.shindig.gadgets.handlers");
context.addServlet(gadgetsRestServletHolder, GADGETS_REST_BASE);
context.addFilter(AuthenticationServletFilter.class, GADGETS_REST_BASE, 0);
// Attach DataServiceServlet
ServletHolder restServletHolder = new ServletHolder(new DataServiceServlet());
restServletHolder.setInitParameter("handlers", "org.apache.shindig.social.handlers");
context.addServlet(restServletHolder, REST_BASE);
context.addFilter(AuthenticationServletFilter.class, REST_BASE, 0);
// Attach JsonRpcServlet
ServletHolder rpcServletHolder = new ServletHolder(new JsonRpcServlet());
rpcServletHolder.setInitParameter("handlers", "org.apache.shindig.social.handlers");
context.addServlet(rpcServletHolder, JSON_RPC_BASE);
context.addFilter(AuthenticationServletFilter.class, JSON_RPC_BASE, 0);
DefaultServlet defaultServlet = new DefaultServlet() {