Examples of asyncSupported()


Examples of javax.servlet.annotation.WebFilter.asyncSupported()

            } else {
                //Create filter element
                org.apache.openejb.jee.Filter newFilter = new org.apache.openejb.jee.Filter();
                webApp.getFilter().add(newFilter);
                newFilter.setFilterName(filterName);
                newFilter.setAsyncSupported(webFilter.asyncSupported());
                if (!webFilter.description().isEmpty()) {
                    newFilter.addDescription(new Text(null, webFilter.description()));
                }
                if (!webFilter.displayName().isEmpty()) {
                    newFilter.addDisplayName(new Text(null, webFilter.displayName()));
View Full Code Here

Examples of javax.servlet.annotation.WebFilter.asyncSupported()

      try {
        Class<Filter> filterClass = (Class<Filter>) ucl
            .loadClass(className);
        WebFilter annot = filterClass.getAnnotation(WebFilter.class);
        if (annot != null)
          asyncSupported = annot.asyncSupported();
        filterInstance = filterClass.newInstance();
        filterInstance.init(this);
      } catch (InstantiationException ie) {
        throw new ServletException("Filter class " + className
            + " can't instantiate. ", ie);
View Full Code Here

Examples of javax.servlet.annotation.WebFilter.asyncSupported()

                }
            } else {
                //Create filter element
                FilterType newFilter = webApp.addNewFilter();
                newFilter.addNewFilterName().setStringValue(filterName);
                newFilter.addNewAsyncSupported().setBooleanValue(webFilter.asyncSupported());
                if (!webFilter.description().isEmpty()) {
                    newFilter.addNewDescription().setStringValue(webFilter.description());
                }
                if (!webFilter.displayName().isEmpty()) {
                    newFilter.addNewDisplayName().setStringValue(webFilter.displayName());
View Full Code Here

Examples of javax.servlet.annotation.WebFilter.asyncSupported()

        if (servletFilterDesc.getLargeIconUri() == null) {
            servletFilterDesc.setLargeIconUri(webFilterAn.largeIcon());
        }

        if (servletFilterDesc.isAsyncSupported() == null) {
            servletFilterDesc.setAsyncSupported(webFilterAn.asyncSupported());
        }

        ServletFilterMapping servletFilterMappingDesc = null;
        boolean hasUrlPattern = false;
        boolean hasServletName = false;
View Full Code Here

Examples of javax.servlet.annotation.WebFilter.asyncSupported()

                dispatcherSet.add(d);
            }
            mapping.setDispatcherTypes(dispatcherSet);
            metaData.setOrigin(name+".filter.mappings",filterAnnotation,clazz);

            holder.setAsyncSupported(filterAnnotation.asyncSupported());
            metaData.setOrigin(name+".filter.async-supported",filterAnnotation,clazz);

            _context.getServletHandler().addFilter(holder);
            _context.getServletHandler().addFilterMapping(mapping);
        }
View Full Code Here

Examples of javax.servlet.annotation.WebFilter.asyncSupported()

        if (servletFilterDesc.getLargeIconUri() == null) {
            servletFilterDesc.setLargeIconUri(webFilterAn.largeIcon());
        }

        if (servletFilterDesc.isAsyncSupported() == null) {
            servletFilterDesc.setAsyncSupported(webFilterAn.asyncSupported());
        }

        ServletFilterMapping servletFilterMappingDesc = null;
        boolean hasUrlPattern = false;
        boolean hasServletName = false;
View Full Code Here

Examples of javax.servlet.annotation.WebFilter.asyncSupported()

      if (webFilter.filterName().length() == 0)
         filterName = element.getName();
      else
         filterName = webFilter.filterName();
      filter.setFilterName(filterName);
      filter.setAsyncSupported(webFilter.asyncSupported());
      if (webFilter.initParams() != null)
      {
         List<ParamValueMetaData> initParams = new ArrayList<ParamValueMetaData>();
         for (WebInitParam webInitParam : webFilter.initParams())
         {
View Full Code Here

Examples of javax.servlet.annotation.WebFilter.asyncSupported()

        if (servletFilterDesc.getLargeIconUri() == null) {
            servletFilterDesc.setLargeIconUri(webFilterAn.largeIcon());
        }

        if (servletFilterDesc.isAsyncSupported() == null) {
            servletFilterDesc.setAsyncSupported(webFilterAn.asyncSupported());
        }

        ServletFilterMapping servletFilterMappingDesc = null;
        boolean hasUrlPattern = false;
        boolean hasServletName = false;
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.asyncSupported()

                if (!webServlet.displayName().isEmpty()) {
                    newServlet.addDisplayName(new Text(null, webServlet.displayName()));
                }
                newServlet.setServletClass(cls.getName());
                newServlet.setServletName(servletName);
                newServlet.setAsyncSupported(webServlet.asyncSupported());
                if (!webServlet.description().isEmpty()) {
                    newServlet.addDescription(new Text(null, webServlet.description()));
                }
                if (webServlet.loadOnStartup() != -1) {
                    newServlet.setLoadOnStartup(webServlet.loadOnStartup());
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.asyncSupported()

            if (isAsyncSupported()) return true;
            boolean result = false;
            Class<?> clazz = existing.getClass();
            if (clazz.isAnnotationPresent(WebServlet.class)) {
                WebServlet ws = clazz.getAnnotation(WebServlet.class);
                result = ws.asyncSupported();
            }
            return result;
        }

        @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.