Package org.rendersnake.ext.servlet

Examples of org.rendersnake.ext.servlet.PostHandler


     * by looking for a named component that matches the path.
     */
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String uri = req.getPathInfo();
        PostHandler handler = this.handlerMap.get(uri);
        if (handler == null) {
            resp.sendError(404);
        } else {
            handler.handlePost(req, resp);
        }
    }   
View Full Code Here


                    } else {
                        LOG.severe("Missing @Named annotation in component:"+klass);
                    }
                }
                if (PostHandler.class.isAssignableFrom(klass)) {
                    PostHandler h = (PostHandler)injector.getInstance(klass);
                    Named annotation = klass.getAnnotation(Named.class);
                    if (annotation != null) {
                        handlerMap.put(annotation.value(), h);
                        LOG.info("Binding component:"+klass+" to:" + annotation);
                    } else {
View Full Code Here

TOP

Related Classes of org.rendersnake.ext.servlet.PostHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.