Skip to content

Commit

Permalink
Renamed "css" protocol to "webfx-css"
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Jun 9, 2024
1 parent 1324fec commit 7460043
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
/**
* @author Bruno Salmon
*/
public class CssProtocol extends URLStreamHandlerProvider {
public class WebFXCssProtocol extends URLStreamHandlerProvider {

private static final String PROTOCOL_NAME = "webfx-css";

@Override
public URLStreamHandler createURLStreamHandler(String protocol) {
if ("css".equals(protocol)) {
if (PROTOCOL_NAME.equalsIgnoreCase(protocol)) {
return new URLStreamHandler() {
@Override
protected URLConnection openConnection(URL u) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
exports dev.webfx.kit.css.protocol;

// Provided services
provides java.net.spi.URLStreamHandlerProvider with dev.webfx.kit.css.protocol.CssProtocol;
provides java.net.spi.URLStreamHandlerProvider with dev.webfx.kit.css.protocol.WebFXCssProtocol;

}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dev.webfx.kit.css.protocol.CssProtocol
dev.webfx.kit.css.protocol.WebFXCssProtocol
2 changes: 1 addition & 1 deletion webfx-kit/webfx-kit-cssprotocol-openjfx-plugin/webfx.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</dependencies>

<providers>
<provider interface="java.net.spi.URLStreamHandlerProvider">dev.webfx.kit.css.protocol.CssProtocol</provider>
<provider interface="java.net.spi.URLStreamHandlerProvider">dev.webfx.kit.css.protocol.WebFXCssProtocol</provider>
</providers>

</project>

0 comments on commit 7460043

Please sign in to comment.