Search in sources :

Example 6 with ServletFilter

use of com.sun.enterprise.deployment.web.ServletFilter in project Payara by payara.

the class WebBundleTracerVisitor method accept.

public void accept(BundleDescriptor descriptor) {
    if (descriptor instanceof WebBundleDescriptor) {
        WebBundleDescriptor webBundle = (WebBundleDescriptor) descriptor;
        accept(webBundle);
        for (Iterator<WebComponentDescriptor> i = webBundle.getWebComponentDescriptors().iterator(); i.hasNext(); ) {
            WebComponentDescriptor aWebComp = i.next();
            accept(aWebComp);
        }
        for (Iterator<WebService> itr = webBundle.getWebServices().getWebServices().iterator(); itr.hasNext(); ) {
            WebService aWebService = itr.next();
            accept(aWebService);
        }
        super.accept(descriptor);
        for (Iterator<ServletFilter> itr = webBundle.getServletFilterDescriptors().iterator(); itr.hasNext(); ) {
            ServletFilter servletFilterDescriptor = itr.next();
            accept(servletFilterDescriptor);
        }
    }
}
Also used : ServletFilter(com.sun.enterprise.deployment.web.ServletFilter)

Example 7 with ServletFilter

use of com.sun.enterprise.deployment.web.ServletFilter in project Payara by payara.

the class WebBundleValidator method accept.

public void accept(BundleDescriptor descriptor) {
    if (descriptor instanceof WebBundleDescriptor) {
        WebBundleDescriptor webBundle = (WebBundleDescriptor) descriptor;
        accept(webBundle);
        // inject field.
        for (InjectionCapable injectable : webBundle.getInjectableResources(webBundle)) {
            accept(injectable);
        }
        for (Iterator<WebComponentDescriptor> i = webBundle.getWebComponentDescriptors().iterator(); i.hasNext(); ) {
            WebComponentDescriptor aWebComp = i.next();
            accept(aWebComp);
        }
        for (Iterator<WebService> itr = webBundle.getWebServices().getWebServices().iterator(); itr.hasNext(); ) {
            WebService aWebService = itr.next();
            accept(aWebService);
        }
        super.accept(descriptor);
        for (Iterator<ServletFilter> itr = webBundle.getServletFilterDescriptors().iterator(); itr.hasNext(); ) {
            ServletFilterDescriptor servletFilterDescriptor = (ServletFilterDescriptor) itr.next();
            accept(servletFilterDescriptor);
        }
    }
}
Also used : ServletFilter(com.sun.enterprise.deployment.web.ServletFilter) ServletFilterDescriptor(org.glassfish.web.deployment.descriptor.ServletFilterDescriptor)

Aggregations

ServletFilter (com.sun.enterprise.deployment.web.ServletFilter)7 ServletFilterDescriptor (org.glassfish.web.deployment.descriptor.ServletFilterDescriptor)2 EnvironmentProperty (com.sun.enterprise.deployment.EnvironmentProperty)1 WebComponentDescriptor (com.sun.enterprise.deployment.WebComponentDescriptor)1 AppListenerDescriptor (com.sun.enterprise.deployment.web.AppListenerDescriptor)1 ServletFilterMapping (com.sun.enterprise.deployment.web.ServletFilterMapping)1 Iterator (java.util.Iterator)1 Vector (java.util.Vector)1 DispatcherType (javax.servlet.DispatcherType)1 WebFilter (javax.servlet.annotation.WebFilter)1 WebInitParam (javax.servlet.annotation.WebInitParam)1 ServletFilterMappingDescriptor (org.glassfish.web.deployment.descriptor.ServletFilterMappingDescriptor)1