![JAR search and dependency download from the Maven repository](/logo.png)
io.apptik.json.schema.fetch.SchemaFetcherConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema Show documentation
Show all versions of json-schema Show documentation
General Purpose Json Model Helper compatible with json-schema spec
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