webUiContext.getInitParams().put("oidc-supported", String.valueOf(props.isOidcEnabled())); webUiContext.getInitParams().put("knox-supported", String.valueOf(props.isKnoxSsoEnabled())); webUiContext.getInitParams().put("whitelistedContextPaths", props.getWhitelistedContextPaths()); webAppContextHandlers.addHandler(webUiContext); webContentViewerContext.getInitParams().putAll(extensionUiInfo.getMimeMappings()); webAppContextHandlers.addHandler(webContentViewerContext); webErrorContext.getInitParams().put("whitelistedContextPaths", props.getWhitelistedContextPaths()); webAppContextHandlers.addHandler(webErrorContext);
context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); break; context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); if (!((String)context.getInitParams().get(name)).equals(value)) throw new IllegalStateException("Conflicting context-param "+name+"="+value+" in "+descriptor.getResource());
@Override public void dump(Appendable out, String indent) throws IOException { List<String> system_classes=null; if (_systemClasses!=null) { system_classes=new ArrayList<>(_systemClasses); Collections.sort(system_classes); } List<String> server_classes=null; if (_serverClasses!=null) { server_classes=new ArrayList<>(_serverClasses); Collections.sort(server_classes); } dumpObjects(out,indent, new ClassLoaderDump(getClassLoader()), new DumpableCollection("Systemclasses "+this,system_classes), new DumpableCollection("Serverclasses "+this,server_classes), new DumpableCollection("Configurations "+this,_configurations), new DumpableCollection("Handler attributes "+this,((AttributesMap)getAttributes()).getAttributeEntrySet()), new DumpableCollection("Context attributes "+this,((Context)getServletContext()).getAttributeEntrySet()), new DumpableCollection("Initparams "+this,getInitParams().entrySet()) ); }
@Override public void beforeStart(WebAppContext context) { context.getInitParams().putAll(initParams); } }
@Override public void beforeStart(WebAppContext context) { context.getInitParams().put("org.eclipse.jetty.servlet.Default.dirAllowed", Boolean.toString(dirAllowed)); } }
@SuppressWarnings("unused") private void copyDeploymentTypeIntoInitParams(final WebAppContext context) { Map<String, String> initParams = context.getInitParams(); Map<String, String> convertedInitParams = ObjectExtensions.asT(initParams); initParams.clear(); initParams.putAll(convertedInitParams); }
@Override public void dump(Appendable out, String indent) throws IOException { List<String> system_classes=null; if (_systemClasses!=null) { system_classes=new ArrayList<>(_systemClasses); Collections.sort(system_classes); } List<String> server_classes=null; if (_serverClasses!=null) { server_classes=new ArrayList<>(_serverClasses); Collections.sort(server_classes); } dumpBeans(out,indent, Collections.singletonList(new ClassLoaderDump(getClassLoader())), Collections.singletonList(new DumpableCollection("Systemclasses "+this,system_classes)), Collections.singletonList(new DumpableCollection("Serverclasses "+this,server_classes)), Collections.singletonList(new DumpableCollection("Configurations "+this,_configurations)), Collections.singletonList(new DumpableCollection("Handler attributes "+this,((AttributesMap)getAttributes()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Context attributes "+this,((Context)getServletContext()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Initparams "+this,getInitParams().entrySet())) ); }
context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); break; context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); if (!((String)context.getInitParams().get(name)).equals(value)) throw new IllegalStateException("Conflicting context-param "+name+"="+value+" in "+descriptor.getResource());
context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); break; context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); if (!((String)context.getInitParams().get(name)).equals(value)) throw new IllegalStateException("Conflicting context-param "+name+"="+value+" in "+descriptor.getResource());
context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); break; context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); if (!((String)context.getInitParams().get(name)).equals(value)) throw new IllegalStateException("Conflicting context-param "+name+"="+value+" in "+descriptor.getResource());
context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); break; context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); if (!((String)context.getInitParams().get(name)).equals(value)) throw new IllegalStateException("Conflicting context-param "+name+"="+value+" in "+descriptor.getResource());
context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); break; context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); if (!((String)context.getInitParams().get(name)).equals(value)) throw new IllegalStateException("Conflicting context-param "+name+"="+value+" in "+descriptor.getResource());
context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); break; context.getInitParams().put(name, value); context.getMetaData().setOrigin("context-param."+name, descriptor); if (!((String)context.getInitParams().get(name)).equals(value)) throw new IllegalStateException("Conflicting context-param "+name+"="+value+" in "+descriptor.getResource());
wah.setWar("src/main/webapp"); wah.getInitParams().put("GEOWEBCACHE_CONF_DIR", confDir.getCanonicalPath()); wah.getInitParams().put("GEOWEBCACHE_CACHE_DIR", cacheDir.getCanonicalPath()); jettyServer.setHandler(wah);
for (String p : _webApp.getInitParams().keySet()) out.openTag("context-param",origin(md,"context-param." + p)) .tag("param-name",p)