
uriSchemeHandler.RealURLProtocolHandlerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of URISchemeHandler Show documentation
Show all versions of URISchemeHandler Show documentation
A Java library to open and register applications with a URI scheme.
The newest version!
package uriSchemeHandler;
public class RealURLProtocolHandlerFactory {
public static RealURISchemeHandler produce(final String osName) {
final String osLowerCase = osName.toLowerCase();
if (osLowerCase.contains("linux")) {
return new LinuxURISchemeHandler();
}
if (osLowerCase.contains("windows")) {
return new WindowsURISchemeHandler();
}
if (osLowerCase.contains("mac")) {
return new MacURISchemeHandler();
}
throw new RuntimeException("OS not supported");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy