org.apache.jasper.EmbeddedServletOptions Java Examples
The following examples show how to use
org.apache.jasper.EmbeddedServletOptions.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JspServlet.java From packagedrone with Eclipse Public License 1.0 | 4 votes |
public void init(ServletConfig config) throws ServletException { super.init(config); this.config = config; this.context = config.getServletContext(); // Initialize the JSP Runtime Context options = new EmbeddedServletOptions(config, context); rctxt = new JspRuntimeContext(context,options); // START SJSWS 6232180 // Determine which HTTP methods to service ("*" means all) httpMethodsString = config.getInitParameter("httpMethods"); if (httpMethodsString != null && !httpMethodsString.equals("*")) { httpMethodsSet = new HashSet<String>(); StringTokenizer tokenizer = new StringTokenizer( httpMethodsString, ", \t\n\r\f"); while (tokenizer.hasMoreTokens()) { httpMethodsSet.add(tokenizer.nextToken()); } } // END SJSWS 6232180 // START GlassFish 750 taglibs = new ConcurrentHashMap<String, TagLibraryInfo>(); context.setAttribute(Constants.JSP_TAGLIBRARY_CACHE, taglibs); tagFileJarUrls = new ConcurrentHashMap<String, URL>(); context.setAttribute(Constants.JSP_TAGFILE_JAR_URLS_CACHE, tagFileJarUrls); // END GlassFish 750 if (log.isLoggable(Level.FINEST)) { log.finest(Localizer.getMessage("jsp.message.scratch.dir.is", options.getScratchDir().toString())); log.finest(Localizer.getMessage("jsp.message.dont.modify.servlets")); } this.jspProbeEmitter = (JspProbeEmitter) config.getServletContext().getAttribute( "org.glassfish.jsp.monitor.probeEmitter"); }