Java 类org.springframework.mock.web.MockRequestDispatcher 实例源码

项目:cims-server    文件:GenericWebContextLoader.java   
private MockServletContext initServletContext(String warRootDir, ResourceLoader resourceLoader) {
    return new MockServletContext(warRootDir, resourceLoader) {
        // Required for DefaultServletHttpRequestHandler...
        public RequestDispatcher getNamedDispatcher(String path) {
            return (path.equals("default")) ? new MockRequestDispatcher(path) : super.getNamedDispatcher(path);
        }
    };
}
项目:maven-framework-project    文件:GenericWebContextLoader.java   
private MockServletContext initServletContext(String warRootDir, ResourceLoader resourceLoader) {
    return new MockServletContext(warRootDir, resourceLoader) {
        // Required for DefaultServletHttpRequestHandler...
        public RequestDispatcher getNamedDispatcher(String path) {
            return (path.equals("default")) ? new MockRequestDispatcher(path) : super.getNamedDispatcher(path);
        }
    };
}
项目:maven-framework-project    文件:GenericWebContextLoader.java   
private MockServletContext initServletContext(String warRootDir, ResourceLoader resourceLoader) {
    return new MockServletContext(warRootDir, resourceLoader) {
        // Required for DefaultServletHttpRequestHandler...
        public RequestDispatcher getNamedDispatcher(String path) {
            return (path.equals("default")) ? new MockRequestDispatcher(path) : super.getNamedDispatcher(path);
        }
    };
}
项目:maven-framework-project    文件:GenericWebContextLoader.java   
private MockServletContext initServletContext(String warRootDir, ResourceLoader resourceLoader) {
    return new MockServletContext(warRootDir, resourceLoader) {
        // Required for DefaultServletHttpRequestHandler...
        public RequestDispatcher getNamedDispatcher(String path) {
            return (path.equals("default")) ? new MockRequestDispatcher(path) : super.getNamedDispatcher(path);
        }
    };
}
项目:openhds-server    文件:GenericWebContextLoader.java   
private MockServletContext initServletContext(String warRootDir, ResourceLoader resourceLoader) {
    return new MockServletContext(warRootDir, resourceLoader) {
        // Required for DefaultServletHttpRequestHandler...
        public RequestDispatcher getNamedDispatcher(String path) {
            return (path.equals("default")) ? new MockRequestDispatcher(path) : super.getNamedDispatcher(path);
        }
    };
}