/** * Add a new Wrapper to an existing Context. * * @param hostName Virtual host name this wrapper belongs to * @param contextPath Context path this wrapper belongs to * @param path Wrapper mapping * @param wrapper Wrapper object */ public void addWrapper(String hostName, String contextPath, String path, Object wrapper) { addWrapper(hostName, contextPath, path, wrapper, false); }
/** * Add a new Wrapper to an existing Context. * * @param hostName Virtual host name this wrapper belongs to * @param contextPath Context path this wrapper belongs to * @param path Wrapper mapping * @param wrapper Wrapper object */ public void addWrapper(String hostName, String contextPath, String path, Object wrapper) { addWrapper(hostName, contextPath, path, wrapper, false); }
/** * Add a new Wrapper to an existing Context. * * @param hostName Virtual host name this wrapper belongs to * @param contextPath Context path this wrapper belongs to * @param path Wrapper mapping * @param wrapper Wrapper object */ public void addWrapper(String hostName, String contextPath, String path, Object wrapper) { addWrapper(hostName, contextPath, path, wrapper, false); }
/** * Add a wrapper to the context associated with this wrapper. * * @param path Wrapper mapping * @param wrapper The Wrapper object */ public void addWrapper(String path, Object wrapper) { addWrapper(context, path, wrapper); }
public void addWrapper(String path, Object wrapper, boolean jspWildCard) { addWrapper(context, path, wrapper, jspWildCard); }
/** * Add a wrapper to the context associated with this wrapper. * * @param path Wrapper mapping * @param wrapper The Wrapper object */ public void addWrapper(String path, Object wrapper) { addWrapper(context, path, wrapper); }
/** * Add a wrapper to the context associated with this wrapper. * * @param path Wrapper mapping * @param wrapper The Wrapper object */ public void addWrapper(String path, Object wrapper) { addWrapper(context, path, wrapper); }
public void addWrapper(String path, Object wrapper, boolean jspWildCard, boolean resourceOnly) { addWrapper(context, path, wrapper, jspWildCard, resourceOnly); }
public void addWrapper(String path, Object wrapper, boolean jspWildCard, boolean resourceOnly) { addWrapper(context, path, wrapper, jspWildCard, resourceOnly); }
public void addWrapper(String path, Object wrapper, boolean jspWildCard, boolean resourceOnly) { addWrapper(context, path, wrapper, jspWildCard, resourceOnly); }
protected void addWrapper(Context context, String path, Object wrapper) { addWrapper(context, path, wrapper, false); }
protected void addWrapper(Context context, String path, Object wrapper) { addWrapper(context, path, wrapper, false); }
public void addWrapper(String path, Object wrapper, boolean jspWildCard) { addWrapper(context, path, wrapper, jspWildCard); }
protected void addWrapper(Context context, String path, Object wrapper) { addWrapper(context, path, wrapper, false); }
public void addWrapper(String path, Object wrapper, boolean jspWildCard) { addWrapper(context, path, wrapper, jspWildCard); }
public void addWrapper(String hostName, String contextPath, String path, Object wrapper, boolean jspWildCard) { Host[] hosts = this.hosts; int pos = find(hosts, hostName); if (pos < 0) { return; } Host host = hosts[pos]; if (host.name.equals(hostName)) { Context[] contexts = host.contextList.contexts; int pos2 = find(contexts, contextPath); if( pos2<0 ) { throw new IllegalStateException("No context found: " + contextPath ); } Context context = contexts[pos2]; if (context.name.equals(contextPath)) { addWrapper(context, path, wrapper, jspWildCard); } } }
public void addWrapper(String hostName, String contextPath, String path, Object wrapper, boolean jspWildCard) { Host[] hosts = this.hosts; int pos = find(hosts, hostName); if (pos < 0) { return; } Host host = hosts[pos]; if (host.name.equals(hostName)) { Context[] contexts = host.contextList.contexts; int pos2 = find(contexts, contextPath); if( pos2<0 ) { throw MESSAGES.mapperContextNotFound(contextPath); } Context context = contexts[pos2]; if (context.name.equals(contextPath)) { addWrapper(context, path, wrapper, jspWildCard); } } }
public void addWrapper(String hostName, String contextPath, String path, Object wrapper, boolean jspWildCard) { Host[] hosts = this.hosts; int pos = find(hosts, hostName); if (pos < 0) { return; } Host host = hosts[pos]; if (host.name.equals(hostName)) { Context[] contexts = host.contextList.contexts; int pos2 = find(contexts, contextPath); if( pos2<0 ) { logger.error("No context found: " + contextPath ); return; } Context context = contexts[pos2]; if (context.name.equals(contextPath)) { addWrapper(context, path, wrapper, jspWildCard); } } }
protected void addContext(Context context) { mapper.addContext(context.getParent().getName(), context.getName(), context, context.findWelcomeFiles(), context.getResources()); // Add all wrappers for (Container child : context.findChildren()) { Wrapper wrapper = (Wrapper) child; if (wrapper.getEnabled()) { for (String mapping : wrapper.findMappings()) { boolean jspWildCard = ("jsp".equals(wrapper.getName()) && mapping.endsWith("/*")); mapper.addWrapper(context.getParent().getName(), context.getName(), mapping, wrapper, jspWildCard); } } } }
protected void addContext(Context context) { mapper.addContext(context.getParent().getName(), context.getName(), context, context.findWelcomeFiles(), context.getResources()); // Add all wrappers for (Container child : context.findChildren()) { Wrapper wrapper = (Wrapper) child; if (wrapper.getEnabled()) { for (String mapping : wrapper.findMappings()) { boolean jspWildCard = ("jsp".equals(wrapper.getName()) && mapping.endsWith("/*")); mapper.addWrapper(context.getParent().getName(), context.getName(), mapping, wrapper, jspWildCard); } } } }