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:org.wso2.carbon.identity.relyingparty.OpenIDRelyingPartyData.java
/** * When the RP hosted Tomcat is behind an Apache serever, OpenID verification fails since * return_to url mismatches with the returning url. To avoid that - only when the Tomcat is * behind an Apache frontend we need to provide a host/port mapping in the web.xml. * /*from w w w.j a va 2s . c om*/ * @param filterConfig Filter configurations */ protected void loadOpenIDHostMapping(FilterConfig filterConfig) { mappedHostName = filterConfig.getInitParameter(TokenVerifierConstants.MAPPED_HOST); mappedPortNumber = filterConfig.getInitParameter(TokenVerifierConstants.MAPPED_PORT); mappingHostName = filterConfig.getInitParameter(TokenVerifierConstants.MAPPING_HOST); mappingPortNumber = filterConfig.getInitParameter(TokenVerifierConstants.MAPPING_PORT); }
From source file:filter.ConexaoHibernateFilter.java
@Override public void init(FilterConfig config) throws ServletException { this.sf = HibernateUtil.getSessionFactory(); if (config.getInitParameter("page") != null) { page = config.getInitParameter("page"); }// w w w. ja v a 2s. c o m }
From source file:org.taverna.server.master.utils.CallTimingFilter.java
@Override public void init(FilterConfig filterConfig) throws ServletException { log = getLog("Taverna.Server.Performance"); name = filterConfig.getInitParameter("name"); }
From source file:org.josso.gatein.agent.GateInSSOAgentFilter.java
public void init(FilterConfig config) throws ServletException { super.init(config); this.logoutUri = config.getInitParameter("logoutUri"); }
From source file:com.appeligo.search.entity.SetPermissionsInViewFilter.java
/** * /*w w w . j a v a 2s .c o m*/ * @see javax.servlet.Filter#init(javax.servlet.FilterConfig) */ public void init(FilterConfig config) throws ServletException { String printFullExceptionsString = config.getInitParameter("printFullExceptions"); if (printFullExceptionsString != null && printFullExceptionsString.toLowerCase().equals("true")) { printFullExceptions = true; } }
From source file:de.betterform.agent.web.filter.XSLTFilter.java
public void init(FilterConfig filterConfig) throws ServletException { this.filterConfig = filterConfig; this.xsltPath = filterConfig.getInitParameter("xsltHome"); this.xslFile = filterConfig.getInitParameter("xsltFile"); }
From source file:uk.ac.edukapp.shibboleth.ShiroShibbolethFilter.java
public void init(FilterConfig filterConfig) throws ServletException { final String configuredTriggerUrl = filterConfig.getInitParameter("shibbolethTriggerUrl"); if (!StringUtils.isEmpty(configuredTriggerUrl)) { shibbolethTriggerUrl = configuredTriggerUrl; }/*from w ww. j a v a2s . c om*/ }
From source file:egovframework.com.utl.wed.filter.CkFilter.java
public void init(FilterConfig filterConfig) throws ServletException { String properties = filterConfig.getInitParameter("properties"); InputStream inStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(properties); Properties props = new Properties(); try {/*w ww .j a v a 2s . c o m*/ props.load(inStream); } catch (IOException e) { log.error(e); } String imageBaseDir = (String) props.get(IMAGE_BASE_DIR_KEY); String imageDomain = (String) props.get(IMAGE_BASE_URL_KEY); String[] allowFileTypeArr = null; String allowFileType = (String) props.get(IMAGE_ALLOW_TYPE_KEY); if (StringUtils.isNotBlank(allowFileType)) { allowFileTypeArr = StringUtils.split(allowFileType, ","); } String saveManagerClass = (String) props.get(IMAGE_SAVE_CLASS_KEY); ckImageSaver = new CkImageSaver(imageBaseDir, imageDomain, allowFileTypeArr, saveManagerClass); }
From source file:org.geoserver.filters.LoggingFilter.java
protected boolean getConfigBool(String name, FilterConfig conf) { try {/* ww w .ja v a 2s. com*/ String value = conf.getInitParameter(name); return Boolean.valueOf(value).booleanValue(); } catch (Exception e) { return false; } }
From source file:org.codelabor.system.security.web.filter.SelectiveSessionValidationFilter.java
public List<String> getExcludePatterns(FilterConfig filterConfig) { String tempExcludePattern = filterConfig.getInitParameter("excludes"); List<String> excludePatterns = null; if (!StringUtils.isBlank(tempExcludePattern)) { String[] excludePatternsString = tempExcludePattern.split(delimeterPattern); if (excludePatternsString != null && excludePatternsString.length > 0) { excludePatterns = Arrays.asList(excludePatternsString); }/*from w w w.ja v a 2 s . c om*/ } logger.debug("excludePatterns: {}", excludePatterns); return excludePatterns; }