jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/resolver/ResourceResolverSpi.java
changeset 10694 cf59e2badd14
parent 1337 e8d6cef36199
child 18240 cda839ac048f
equal deleted inserted replaced
10693:6e9ebed2e783 10694:cf59e2badd14
    39     static java.util.logging.Logger log =
    39     static java.util.logging.Logger log =
    40         java.util.logging.Logger.getLogger(
    40         java.util.logging.Logger.getLogger(
    41                     ResourceResolverSpi.class.getName());
    41                     ResourceResolverSpi.class.getName());
    42 
    42 
    43    /** Field _properties */
    43    /** Field _properties */
    44    protected java.util.Map _properties = null;
    44    protected java.util.Map<String,String> _properties = null;
    45 
    45 
    46    /**
    46    /**
    47     * This is the workhorse method used to resolve resources.
    47     * This is the workhorse method used to resolve resources.
    48     *
    48     *
    49     * @param uri
    49     * @param uri
    61     * @param key
    61     * @param key
    62     * @param value
    62     * @param value
    63     */
    63     */
    64    public void engineSetProperty(String key, String value) {
    64    public void engineSetProperty(String key, String value) {
    65           if (_properties==null) {
    65           if (_properties==null) {
    66                   _properties=new HashMap();
    66                   _properties=new HashMap<String,String>();
    67           }
    67           }
    68       this._properties.put(key, value);
    68       this._properties.put(key, value);
    69    }
    69    }
    70 
    70 
    71    /**
    71    /**
    76     */
    76     */
    77    public String engineGetProperty(String key) {
    77    public String engineGetProperty(String key) {
    78           if (_properties==null) {
    78           if (_properties==null) {
    79                         return null;
    79                         return null;
    80           }
    80           }
    81       return (String) this._properties.get(key);
    81       return this._properties.get(key);
    82    }
    82    }
    83 
    83 
    84    /**
    84    /**
    85     *
    85     *
    86     * @param properties
    86     * @param properties
    87     */
    87     */
    88    public void engineAddProperies(Map properties) {
    88    public void engineAddProperies(Map<String,String> properties) {
    89           if (properties!=null) {
    89           if (properties!=null) {
    90                   if (_properties==null) {
    90                   if (_properties==null) {
    91                           _properties=new HashMap();
    91                           _properties=new HashMap<String,String>();
    92                   }
    92                   }
    93                   this._properties.putAll(properties);
    93                   this._properties.putAll(properties);
    94           }
    94           }
    95    }
    95    }
    96    /**
    96    /**