All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apptik.json.schema.fetch.SchemaFetcherConfig Maven / Gradle / Ivy

The newest version!
package io.apptik.json.schema.fetch;


import java.util.HashMap;

public class SchemaFetcherConfig {
    //uri anatomy:
    //[scheme:][//authority][path][?query][#fragment]
    //where authority: [user-info@]host[:port]

    public HashMap uriSchemeReplacements =  new HashMap();
    public HashMap uriAuthorityReplacements =  new HashMap();
    public HashMap uriPathReplacements =  new HashMap();
    public HashMap uriQueryReplacements =  new HashMap();


    public SchemaFetcherConfig withUriSchemeReplacement(String value, String replacement) {
        uriSchemeReplacements.put(value, replacement);
        return this;
    }
    public SchemaFetcherConfig withUriAuthorityReplacement(String value, String replacement) {
        uriAuthorityReplacements.put(value, replacement);
        return this;
    }
    public SchemaFetcherConfig withUriPathReplacement(String value, String replacement) {
        uriPathReplacements.put(value, replacement);
        return this;
    }
    public SchemaFetcherConfig withUriQueryReplacement(String value, String replacement) {
        uriQueryReplacements.put(value, replacement);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy