Package org.jvnet.glassfish.comms.deployment.backend

Examples of org.jvnet.glassfish.comms.deployment.backend.ServletMapping


    public void addDescriptor(Object  newDescriptor) {      
        if (newDescriptor instanceof ServletMapping) { 
            if( getParentNode() instanceof SipBundleNode) {
                SipBundleNode parentNode = (SipBundleNode) getParentNode();
                SipApplication sipApp = (SipApplication) parentNode.getDescriptor();
                ServletMapping servletMapping = (ServletMapping) newDescriptor;
                sipApp.addServletMapping(servletMapping);
            }
        }
    }
View Full Code Here


                ExistsOperand existsOperand = new ExistsOperand();
                existsOperand.setVariable("request.method");
                Pattern pattern = new Pattern();
                pattern.addCondition(existsOperand);

                ServletMapping servletMapping = new ServletMapping();
                servletMapping.setServletName(value);
                servletMapping.setPattern(pattern);

                sipApp.addServletMapping(servletMapping);
            }
        }
    }
View Full Code Here

        Map<String, ServletMapping> mappings = sipApplicationModel.getServletMappings();
        Iterator<String> itr = servlets.keySet().iterator();

        while (itr.hasNext()) {
            String servletName = itr.next();
            ServletMapping mapping = mappings.get(servletName);

            if ((mapping != null) &&
                    mapping.getPattern().getTopCondition().evaluate(request)) {
                matchingServlets.add(servletName);

                if (logger.isLoggable(Level.FINE)) {
                    logger.log(Level.FINE, "Matched Servlet " + servletName +
                        " with incoming request");
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.deployment.backend.ServletMapping

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.