Package org.impalaframework.web.spring.integration

Examples of org.impalaframework.web.spring.integration.ContextAndServletPath


        RootBeanDefinition prefixDefinition = definitions.get(0);
        PropertyValue prefixMap = prefixDefinition.getPropertyValues().getPropertyValue("prefixMap");
        Map<String,ContextAndServletPath> actualValue = (Map<String, ContextAndServletPath>) prefixMap.getValue();
       
        Map<String,ContextAndServletPath> expectedValue = new LinkedHashMap<String, ContextAndServletPath>();
        expectedValue.put("/path1", new ContextAndServletPath(null, null));
        expectedValue.put("/path2", new ContextAndServletPath(null, "/path2"));
        expectedValue.put("/path3", new ContextAndServletPath(null, "/path3modified"));
        expectedValue.put("/path4", new ContextAndServletPath("/path4modified", null));
        expectedValue.put("/path5", new ContextAndServletPath("/path5", null));
        expectedValue.put("/path6", new ContextAndServletPath("/cp", "/sp"));
       
        assertEquals(expectedValue, actualValue);
       
        RootBeanDefinition invokerDefinition = definitions.get(1);
        Class<?> invokerContributor = invokerDefinition.getBeanClass();
View Full Code Here


                    !toModulesElement.hasAttribute(SERVLET_PATH_ATTRIBUTE) &&
                    !toModulesElement.hasAttribute(CONTEXT_PATH_ATTRIBUTE)) {
                logger.warn("Both 'setServletPath' and 'setContextPath' are used for to-handler attribute. This is ordinarily not required, and is not a recommended usage.");
            }
           
            ContextAndServletPath paths = new ContextAndServletPath(contextPath, servletPath);
            toModulesMap.put(pathAttribute.trim(), paths);
        }

        RootBeanDefinition definition = newContributorDefinition(toModulesMap);
        registerDefinition(parserContext, definition);
View Full Code Here

                    !toModulesElement.hasAttribute(SERVLET_PATH_ATTRIBUTE) &&
                    !toModulesElement.hasAttribute(CONTEXT_PATH_ATTRIBUTE)) {
                logger.warn("Both 'setServletPath' and 'setContextPath' are used for to-handler attribute. This is ordinarily not required, and is not a recommended usage.");
            }
           
            ContextAndServletPath paths = new ContextAndServletPath(contextPath, servletPath);
            toModulesMap.put(pathAttribute.trim(), paths);
        }

        RootBeanDefinition definition = newContributorDefinition(toModulesMap);
        registerDefinition(parserContext, definition);
View Full Code Here

TOP

Related Classes of org.impalaframework.web.spring.integration.ContextAndServletPath

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.