APISonar


voldemort.common.service.ServiceType.HTTP

> voldemort > common > service > ServiceType > HTTP
voldemort APIs common APIs service APIs ServiceType APIs HTTP APIs

Example 1
public void init() throws ServletException {
        super.init();
        // if we don't already have a stores map, attempt to initialize from the
        // servlet context
        if(this.requestHandler == null) {
            ServletContext context = this.getServletContext();
            VoldemortServer server = (VoldemortServer) Utils.notNull(context.getAttribute(VoldemortServletContextListener.SERVER_KEY));
            HttpService httpService = (HttpService) server.getService(ServiceType.HTTP);
            this.requestHandler = httpService.getRequestHandler();
        }
    }