Created
May 1, 2021 07:37
-
-
Save Cartmanishere/cf971e0512075e1cafa18690fb6f2994 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HTTPTemplateLoader extends URLTemplateLoader { | |
public HTTPTemplateLoader(String baseUrl) { | |
setPrefix(normalize(baseUrl)); | |
} | |
public String resolve(final String filename) { | |
return getPrefix() + filename + getSuffix(); | |
} | |
protected URL getResource(String location) throws IOException { | |
return new URL(location); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment