public Set<WebComponentDescriptor> getServletDescriptors() { Set<WebComponentDescriptor> servletDescriptors = new HashSet<WebComponentDescriptor>(); for (WebComponentDescriptor next : getWebComponentDescriptors()) { if (next.isServlet()) { servletDescriptors.add(next); } } return servletDescriptors; }
/** * @return my Set of jsps. */ public Set<WebComponentDescriptor> getJspDescriptors() { Set<WebComponentDescriptor> jspDescriptors = new HashSet<WebComponentDescriptor>(); for (WebComponentDescriptor next : getWebComponentDescriptors()) { if (!next.isServlet()) { jspDescriptors.add(next); } } return jspDescriptors; }
/** * A formatted string representing my state. */ public void print(StringBuffer toStringBuffer) { super.print(toStringBuffer); toStringBuffer.append("WebComponentDescriptor\n"); toStringBuffer.append("\n initializationParameters ").append(initializationParameters); toStringBuffer.append("\n urlPatterns ").append(urlPatterns); toStringBuffer.append("\n canonicalName ").append(canonicalName); toStringBuffer.append("\n loadOnStartUp ").append(loadOnStartUp); toStringBuffer.append("\n enabled ").append(enabled); toStringBuffer.append("\n asyncSupported ").append(asyncSupported); toStringBuffer.append("\n securityRoleReferences ").append(securityRoleReferences); toStringBuffer.append("\n multipartConfig ").append(multipartConfig); if (isServlet()) { toStringBuffer.append("\n servlet className ").append(getWebComponentImplementation()); } else { toStringBuffer.append("\n jspFileName ").append(getWebComponentImplementation()); } }
public WebComponentContext(WebComponentDescriptor wComp) { setDescriptor(wComp); if (wComp.isServlet()) { componentClassName = wComp.getWebComponentImplementation(); } }
public WebComponentContext(WebComponentDescriptor wComp) { setDescriptor(wComp); if (wComp.isServlet()) { componentClassName = wComp.getWebComponentImplementation(); } }
public WebComponentsContext(WebComponentDescriptor[] webComps) { webCompContexts = new WebComponentContext[webComps.length]; for (int i = 0; i < webComps.length ; i++) { webCompContexts[i] = new WebComponentContext(webComps[i]); } if (webComps[0].isServlet()) { componentClassName = webComps[0].getWebComponentImplementation(); } }
public WebComponentsContext(WebComponentDescriptor[] webComps) { webCompContexts = new WebComponentContext[webComps.length]; for (int i = 0; i < webComps.length ; i++) { webCompContexts[i] = new WebComponentContext(webComps[i]); } if (webComps[0].isServlet()) { componentClassName = webComps[0].getWebComponentImplementation(); } }
String canonicalName = wcd.getCanonicalName(); sb.append("<"); String wcdType = (wcd.isServlet() ? "Servlet" : "JSP"); sb.append(wcdType); sb.append(">");
WebComponentDescriptor webCompDesc = (WebComponentDescriptor)webComponents.next(); if (webCompDesc.isServlet()) { String servletName = webCompDesc.getWebComponentImplementation(); if (isScan(servletName, commonCL)) {
(!webCompImpl.equals(webCompClass.getName()) || !webCompDesc.isServlet())) { if (webCompDesc.isServlet()) { messageKey = "enterprise.deployment.annotation.handlers.servletimpldontmatch"; defaultMessage = "The servlet '{0}' has implementation '{1}' in xml. It does not match with '{2}' from annotation @{3}.";
/** * The copy constructor. */ public WebComponentDescriptor(WebComponentDescriptor other) { setCanonicalName(other.getCanonicalName()); setServlet(other.isServlet()); setWebComponentImplementation( other.getWebComponentImplementation()); getInitializationParameterSet().addAll( other.getInitializationParameterSet()); getUrlPatternsSet().addAll(other.getUrlPatternsSet()); setLoadOnStartUp(other.getLoadOnStartUp()); getSecurityRoleReferenceSet().addAll( other.getSecurityRoleReferenceSet()); setRunAsIdentity(other.getRunAsIdentity()); setAsyncSupported(other.isAsyncSupported()); setMultipartConfig(other.getMultipartConfig()); setWebBundleDescriptor(other.getWebBundleDescriptor()); setConflict(other.isConflict()); }
if (descriptor.isServlet()) { appendTextChild(myNode, WebTagNames.SERVLET_CLASS, descriptor.getWebComponentImplementation()); } else {
if (wbd != null) { for (WebComponentDescriptor webCompDesc : wbd.getWebComponentDescriptors()) { if (webCompDesc.isServlet()) { servletNames.add(webCompDesc.getCanonicalName());
if (webComponentDesc.isServlet()){ wrapper.setServletClassName(impl); } else {