use of com.caucho.hessian.server.HessianServlet in project onebusaway-application-modules by camsys.
the class DynamicFederatedServiceCollectionImplTest method addServiceServlet.
private SimpleFederatedServiceImpl addServiceServlet(Server server, String agencyId, CoordinateBounds bounds) {
Map<String, List<CoordinateBounds>> agenciesA = new HashMap<String, List<CoordinateBounds>>();
agenciesA.put(agencyId, Arrays.asList(bounds));
SimpleFederatedServiceImpl serviceA = new SimpleFederatedServiceImpl(agenciesA, agencyId);
HessianServlet servletA = new HessianServlet();
servletA.setHome(serviceA);
servletA.setHomeAPI(SimpleFederatedService.class);
Context contextA = new Context(server, "/service-" + agencyId, Context.SESSIONS);
contextA.addServlet(new ServletHolder(servletA), "/*");
return serviceA;
}
Aggregations