Package javax.servlet.annotation

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


            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

            .loadClass(className);
        if (noAnnot == false) {
          WebServlet servletAnnot = servletClass
              .getAnnotation(WebServlet.class);
          if (servletAnnot != null) {
            asyncSupported = servletAnnot.asyncSupported();
          }
        }
        MultipartConfig multipartAnnot = servletClass
            .getAnnotation(MultipartConfig.class);
        if (multipartAnnot != null) {
View Full Code Here

                if (!webServlet.displayName().isEmpty()) {
                    newServlet.addNewDisplayName().setStringValue(webServlet.displayName());
                }
                newServlet.addNewServletClass().setStringValue(cls.getName());
                newServlet.addNewServletName().setStringValue(servletName);
                newServlet.addNewAsyncSupported().setBooleanValue(webServlet.asyncSupported());
                if (!webServlet.description().isEmpty()) {
                    newServlet.addNewDescription().setStringValue(webServlet.description());
                }
                if (webServlet.loadOnStartup() != -1) {
                    newServlet.setLoadOnStartup(webServlet.loadOnStartup());
View Full Code Here

        private static boolean hasAsync(Servlet existing) {
            boolean result = false;
            Class<?> clazz = existing.getClass();
            WebServlet ws = clazz.getAnnotation(WebServlet.class);
            if (ws != null) {
                result = ws.asyncSupported();
            }
            return result;
        }

        @Override
View Full Code Here

                webCompDesc.getDisplayName().length() == 0) {
            webCompDesc.setDisplayName(webServletAn.displayName());
        }

        if (webCompDesc.isAsyncSupported() == null) {
            webCompDesc.setAsyncSupported(webServletAn.asyncSupported());
        }

        return getDefaultProcessedResult();
    }
View Full Code Here

            metaData.setOrigin(servletName+".servlet.display-name",annotation,clazz);

            holder.setInitOrder(annotation.loadOnStartup());
            metaData.setOrigin(servletName+".servlet.load-on-startup",annotation,clazz);

            holder.setAsyncSupported(annotation.asyncSupported());
            metaData.setOrigin(servletName+".servlet.async-supported",annotation,clazz);

            for (WebInitParam ip:annotation.initParams())
            {
                holder.setInitParameter(ip.name(), ip.value());
View Full Code Here

            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

            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

                webCompDesc.getDisplayName().length() == 0) {
            webCompDesc.setDisplayName(webServletAn.displayName());
        }

        if (webCompDesc.isAsyncSupported() == null) {
            webCompDesc.setAsyncSupported(webServletAn.asyncSupported());
        }

        return getDefaultProcessedResult();
    }
}
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.