List of usage examples for javax.servlet FilterConfig getInitParameter
public String getInitParameter(String name);
String
containing the value of the named initialization parameter, or null
if the initialization parameter does not exist. From source file:es.alvsanand.webpage.web.fileupload.filter.FileUploadFilter.java
public void init(FilterConfig filterConfig) throws ServletException { thresholdSize = filterConfig.getInitParameter(THRESHOLD_SIZE_PARAM); logger.info("FileUploadFilter initiated successfully"); }
From source file:com.iflytek.edu.cloud.frame.web.filter.HttpRequestRateLimiterFilter.java
@Override public void init(FilterConfig filterConfig) throws ServletException { String value = filterConfig.getInitParameter("permitsPerSecond"); int permitsPerSecond = DEFAULT_PERMITS_PER_SECOND; if (StringUtils.hasText(value)) permitsPerSecond = Integer.valueOf(value); limiter = RateLimiter.create(permitsPerSecond); LOGGER.info("?http{}", permitsPerSecond); }
From source file:com.pcms.filter.XssFilter.java
@Override public void init(FilterConfig filterConfig) throws ServletException { this._filterChar = filterConfig.getInitParameter("FilterChar"); this._replaceChar = filterConfig.getInitParameter("ReplaceChar"); this._splitChar = filterConfig.getInitParameter("SplitChar"); this._excludeUrls = filterConfig.getInitParameter("excludeUrls"); this._filterConfig = filterConfig; }
From source file:com.swdouglass.joid.server.UserUrlFilter.java
@Override public void init(FilterConfig filterConfig) throws ServletException { idJsp = filterConfig.getInitParameter("idJsp"); }
From source file:fr.putnami.pwt.plugin.ajaxbot.filter.DeleteCacheFilter.java
@Override public void init(FilterConfig config) throws ServletException { String paramCacheFolder = config.getInitParameter(DeleteCacheFilter.FILTER_PARAM_CACHE_FOLDER); if (!Strings.isNullOrEmpty(paramCacheFolder)) { this.cacheFolder = new File(paramCacheFolder); this.cacheFolder.mkdirs(); }//w w w. j a v a2s .co m }
From source file:net.duckling.ddl.web.filter.VWBFilter.java
public void init(FilterConfig config) throws ServletException { encoding = config.getInitParameter("charset"); if (encoding == null) { encoding = "UTF-8"; }//from www. ja v a 2s. c o m }
From source file:org.extremecomponents.table.filter.ExportFilter.java
public void init(FilterConfig filterConfig) throws ServletException { String responseHeadersSetBeforeDoFilter = filterConfig.getInitParameter("responseHeadersSetBeforeDoFilter"); if (StringUtils.isNotBlank(responseHeadersSetBeforeDoFilter)) { this.responseHeadersSetBeforeDoFilter = new Boolean(responseHeadersSetBeforeDoFilter).booleanValue(); }/*ww w. ja v a 2s .co m*/ }
From source file:com.xhsoft.framework.common.filter.SessionUpcFilter.java
public void init(FilterConfig filterConfig) throws ServletException { this.fileResource = filterConfig.getInitParameter("fileResource"); }
From source file:org.sakaiproject.tool.gradebook.ui.standalone.AuthnFilter.java
public void init(FilterConfig filterConfig) throws ServletException { authnRedirect = filterConfig.getInitParameter("authnRedirect"); authnServiceBean = filterConfig.getInitParameter("authnServiceBean"); }
From source file:com.lyh.licenseworkflow.web.filter.LoginFilter.java
public void init(FilterConfig filterConfig) throws ServletException { String ignoreStr = filterConfig.getInitParameter("ignoreUrl"); if (StringUtils.isNotEmpty(ignoreStr)) { String igs[] = ignoreStr.split(","); for (String ig : igs) { ingoreUrls.add(ig.trim());// www. j a v a 2s .c o m } } }