public Context createEJBWebServiceContext(String contextPath, WebServiceContainer webServiceContainer, String securityRealmName, String realmName, String transportGuarantee, String authMethod, ClassLoader classLoader) { if( log.isDebugEnabled() ) log.debug("Creating EJBWebService context '" + contextPath + "'."); TomcatEJBWebServiceContext context = new TomcatEJBWebServiceContext(contextPath, webServiceContainer, securityRealmName, realmName, transportGuarantee, authMethod, classLoader); ContextConfig config = new ContextConfig(); config.setCustomAuthenticators(authenticators); ((Lifecycle) context).addLifecycleListener(config); return (context); }
public Context createContext(String path, String docBase, ClassLoader cl) { if( log.isDebugEnabled() ) log.debug("Creating context '" + path + "' with docBase '" + docBase + "'"); GeronimoStandardContext context = new GeronimoStandardContext(); context.setDocBase(docBase); context.setPath(path); if (cl != null) context.setParentClassLoader(cl); ContextConfig config = new ContextConfig(); config.setCustomAuthenticators(authenticators); ((Lifecycle) context).addLifecycleListener(config); context.setDelegate(true); return (context); }
config.setCustomAuthenticators(authenticators); ((Lifecycle) context).addLifecycleListener(config);
context.setPath(path); config.setCustomAuthenticators(authenticators); ((Lifecycle) context).addLifecycleListener(config);
config.setCustomAuthenticators(authenticators); config.setDebug(debug); ((Lifecycle) context).addLifecycleListener(config);
@Override public Context createContext(String path, String docBase) { if( log.isDebugEnabled() ) log.debug("Creating context '" + path + "' with docBase '" + docBase + "'"); context = new StandardContext(); context.setDocBase(docBase); context.setPath(path); ContextConfig config = new ContextConfig(); config.setCustomAuthenticators(authenticators); ((Lifecycle) context).addLifecycleListener(config); return (context); }
config.setCustomAuthenticators(authenticators); context.addLifecycleListener(config);
config.setCustomAuthenticators(authenticators); context.addLifecycleListener(config);
config.setCustomAuthenticators(authenticators); context.addLifecycleListener(config);
config.setCustomAuthenticators(authenticators); context.addLifecycleListener(config);
config.setCustomAuthenticators(authenticators); context.addLifecycleListener(config);