public Object getAttribute(String key) { return getServletContext().getAttribute(key); } public void setAttribute(String key, Object value) {
public String getInitParameter(String name) { return getServletContext().getInitParameter(name); } public ResourceResolver getResolver() {
public void setAttribute(String key, Object value) { getServletContext().setAttribute(key, value); } };
public void setAttribute(String key, Object value) { getServletContext().setAttribute(key, value); } };
public String getInitParameter(String name) { return getServletContext().getInitParameter(name); } public ResourceResolver getResolver() {
public Object getAttribute(String key) { return getServletContext().getAttribute(key); } public void setAttribute(String key, Object value) {
public ReadFileSystem<?> getClassPath() { return WarFileSystem.create(getServletContext(), "/WEB-INF/classes/"); } public ClassLoader getClassLoader() {
public ClassLoader getClassLoader() { return getServletContext().getClassLoader(); } public String getInitParameter(String name) {
public ReadFileSystem<?> getResourcePath() { return WarFileSystem.create(getServletContext(), "/WEB-INF/"); } public ReadFileSystem<?> getClassPath() {
public ReadFileSystem<?> getResourcePath() { return WarFileSystem.create(getServletContext(), "/WEB-INF/"); } public ReadFileSystem<?> getClassPath() {
public ReadFileSystem<?> getClassPath() { return WarFileSystem.create(getServletContext(), "/WEB-INF/classes/"); } public ClassLoader getClassLoader() {
public ClassLoader getClassLoader() { return getServletContext().getClassLoader(); } public String getInitParameter(String name) {
if (injector instanceof SpringInjector) { SpringInjector springInjector = (SpringInjector)injector; Object parent = getServletContext().getAttribute("org.springframework.web.context.WebApplicationContext.ROOT"); if (parent != null) { springInjector.setParent(parent); ModuleContextImpl module = (ModuleContextImpl)getServletContext().getAttribute("juzu.module"); if (module == null) { getServletContext().setAttribute("juzu.module", module = new ModuleContextImpl(servletLogger, bridgeContext, resolver)); AssetServer server = (AssetServer)getServletContext().getAttribute("asset.server"); if (server == null) { server = new AssetServer(); getServletContext().setAttribute("asset.server", server); this.applicationContext = new ServletApplicationContext(getServletContext().getClassLoader(), bundleName);
if (injector instanceof SpringInjector) { SpringInjector springInjector = (SpringInjector)injector; Object parent = getServletContext().getAttribute("org.springframework.web.context.WebApplicationContext.ROOT"); if (parent != null) { springInjector.setParent(parent); ModuleContextImpl module = (ModuleContextImpl)getServletContext().getAttribute("juzu.module"); if (module == null) { getServletContext().setAttribute("juzu.module", module = new ModuleContextImpl(servletLogger, bridgeContext, resolver)); AssetServer server = (AssetServer)getServletContext().getAttribute("asset.server"); if (server == null) { server = new AssetServer(); getServletContext().setAttribute("asset.server", server); this.applicationContext = new ServletApplicationContext(getServletContext().getClassLoader(), bundleName);
ServletRegistration reg = getServletContext().getServletRegistration(getServletName()); for (String mapping : reg.getMappings()) { if ("/".equals(mapping)) {
ServletRegistration reg = getServletContext().getServletRegistration(getServletName()); for (String mapping : reg.getMappings()) { if ("/".equals(mapping)) {
URL url = getServletContext().getResource(ctx.getRequestPath()); if (url != null) { RequestDispatcher dispatcher = getServletContext().getNamedDispatcher("default"); dispatcher.include(bridge.getRequestContext().req, bridge.getResponse()); return;
URL url = getServletContext().getResource(ctx.getRequestPath()); if (url != null) { RequestDispatcher dispatcher = getServletContext().getNamedDispatcher("default"); dispatcher.include(bridge.getRequestContext().req, bridge.getResponse()); return;