@ InitParam ( name = "accept-mappings-file" ) public void setAcceptMappingsFile ( String pPropertiesFile ) throws ServletConfigException { // NOTE: Format is: // <agent-name>=<reg-exp> // <agent-name>.accept=<http-accept-header> Properties mappings = new Properties ( ) ; try { log ( "Reading Accept-mappings properties file: " + pPropertiesFile ) ; mappings . load ( getServletContext ( ) . getResourceAsStream ( pPropertiesFile ) ) ; //System.out.println("--> Loaded file: " + pPropertiesFile); } catch ( IOException e ) { throw new ServletConfigException ( "Could not read Accept-mappings properties file: " + pPropertiesFile , e ) ; } parseMappings ( mappings ) ; }
Sets the accept - mappings for this filter