Code example for Properties

Methods: load, size

0
     * if one is configured for this filter. 
     * @param filterConfig Servlet filter configuration. 
     * @return Properties that can contains key/trust info for Client Side Certificates 
     */ 
    protected Properties getSSLConfig(final FilterConfig filterConfig) {
        final Properties properties = new Properties();
        final String fileName = getPropertyFromInitParams(filterConfig, "sslConfigFile", null);
 
        if (fileName != null) {
            FileInputStream fis = null;
            try { 
                fis = new FileInputStream(fileName);
                properties.load(fis);
                logger.trace("Loaded {} entries from {}", properties.size(), fileName);
            } catch (final IOException ioe) {
                logger.error(ioe.getMessage(), ioe);
            } finally { 
                CommonUtils.closeQuietly(fis);
            } 
        } 
        return properties;