Skip to content

Commit f60e45b

Browse files
committed
Renamed -gwt-j2cl modules to -elemental2
1 parent 11b3880 commit f60e45b

File tree

36 files changed

+75
-104
lines changed

36 files changed

+75
-104
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
<module>webfx-stack-authn-login-ui-gateway-mojoauth-plugin</module>
6464
<module>webfx-stack-authn-login-ui-gateway-password-plugin</module>
6565
<module>webfx-stack-authn-login-ui-gateway-webviewbased</module>
66-
<module>webfx-stack-authn-login-ui-gateway-webviewbased-gwt</module>
6766
<module>webfx-stack-authn-login-ui-gateway-webviewbased-openjfx</module>
67+
<module>webfx-stack-authn-login-ui-gateway-webviewbased-web</module>
6868
<module>webfx-stack-authn-login-ui-portal</module>
6969
<module>webfx-stack-authn-logout-client</module>
7070
<module>webfx-stack-authn-logout-server</module>
@@ -98,8 +98,8 @@
9898
<module>webfx-stack-com-bus-simple</module>
9999
<module>webfx-stack-com-serial</module>
100100
<module>webfx-stack-com-websocket</module>
101-
<module>webfx-stack-com-websocket-gwt-j2cl-native</module>
102-
<module>webfx-stack-com-websocket-gwt-j2cl-sockjs</module>
101+
<module>webfx-stack-com-websocket-elemental2-native</module>
102+
<module>webfx-stack-com-websocket-elemental2-sockjs</module>
103103
<module>webfx-stack-com-websocket-jre</module>
104104
<module>webfx-stack-db-datascope</module>
105105
<module>webfx-stack-db-datasource</module>
@@ -161,7 +161,7 @@
161161
<module>webfx-stack-shareddata</module>
162162
<module>webfx-stack-shareddata-ast</module>
163163
<module>webfx-stack-shareddata-cache</module>
164-
<module>webfx-stack-shareddata-cache-cachestorage-gwt-j2cl</module>
164+
<module>webfx-stack-shareddata-cache-cachestorage-elemental2</module>
165165
<module>webfx-stack-shareddata-cache-localstorage-plugin</module>
166166
<module>webfx-stack-shareddata-cache-serial</module>
167167
<module>webfx-stack-shareddata-cache-storage</module>

webfx-stack-authn-login-ui-gateway-webviewbased-openjfx/src/main/java/dev/webfx/stack/authn/login/ui/spi/impl/gateway/webview/spi/impl/openjfx/HttpCookieSerialCodec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void encode(HttpCookie c, AstObject serial) {
3434
// We need to know the cookie creation time to serialize the expiration time (see below). HttpCookie has a
3535
// whenCreated field for that, but we can't use it as it's a private & inaccessible field. Instead, we use an
3636
// alternative solution provided by FXLoginCookieStore that keeps an internal record of the cookie creation date.
37-
long whenCreated = FXLoginCookieStore.getWhenCreated(c); // cookie creation time in millis
37+
long whenCreated = OpenJFXLoginCookieStore.getWhenCreated(c); // cookie creation time in millis
3838
encodeString( serial, NAME_KEY, c.getName(), NullEncoding.NULL_VALUE_NOT_ALLOWED);
3939
encodeString( serial, VALUE_KEY, c.getValue());
4040
encodeBoolean(serial, SECURE_KEY, c.getSecure());
@@ -55,7 +55,7 @@ public HttpCookie decode(ReadOnlyAstObject serial) {
5555
HttpCookie cookie = new HttpCookie(
5656
decodeString(serial, NAME_KEY, NullEncoding.NULL_VALUE_NOT_ALLOWED),
5757
decodeString(serial, VALUE_KEY));
58-
long whenCreated = FXLoginCookieStore.getWhenCreated(cookie); // will return 'now', as it's a new cookie
58+
long whenCreated = OpenJFXLoginCookieStore.getWhenCreated(cookie); // will return 'now', as it's a new cookie
5959
cookie.setSecure( decodeBoolean(serial, SECURE_KEY));
6060
cookie.setDomain( decodeString( serial, DOMAIN_KEY));
6161
// We recalculate maxAge, which is the difference between the expiration and the creation time
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
/**
2323
* @author Bruno Salmon
2424
*/
25-
public class FXLoginCookieStore implements CookieStore {
25+
public class OpenJFXLoginCookieStore implements CookieStore {
2626

2727
protected final Path cookieFilePath = Paths.get(StorageLocation.getInternalStorageLocation(), "login-cookies.json");
2828
private final CookieStore memoryStore = new CookieManager().getCookieStore();
2929

30-
public FXLoginCookieStore() {
30+
public OpenJFXLoginCookieStore() {
3131
try {
3232
// Reading the json file as text
3333
String jsonText = new String(Files.readAllBytes(cookieFilePath));
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @author Bruno Salmon
2020
*/
21-
public class FXLoginWebViewProvider implements LoginWebViewProvider {
21+
public class OpenJFXLoginWebViewProvider implements LoginWebViewProvider {
2222

2323
private DialogCallback popupDialogCallback;
2424

@@ -61,7 +61,7 @@ public WebView createLoginWebView() {
6161

6262
// Setting a cookie handler with a persistent cookie store. This is mainly for the Facebook login which prompts
6363
// an annoying cookie window. Thanks to the cookie persistence, this should now happen only once, on first time.
64-
CookieHandler.setDefault(new CookieManager(new FXLoginCookieStore(), CookiePolicy.ACCEPT_ALL));
64+
CookieHandler.setDefault(new CookieManager(new OpenJFXLoginCookieStore(), CookiePolicy.ACCEPT_ALL));
6565

6666
return webView;
6767
}

webfx-stack-authn-login-ui-gateway-webviewbased-openjfx/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
exports dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx;
1919

2020
// Provided services
21-
provides dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.LoginWebViewProvider with dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx.FXLoginWebViewProvider;
21+
provides dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.LoginWebViewProvider with dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx.OpenJFXLoginWebViewProvider;
2222
provides dev.webfx.stack.com.serial.spi.SerialCodec with dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx.HttpCookieSerialCodec;
2323

2424
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx.FXLoginWebViewProvider
1+
dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx.OpenJFXLoginWebViewProvider

webfx-stack-authn-login-ui-gateway-webviewbased-openjfx/webfx.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</dependencies>
1111

1212
<providers>
13-
<provider interface="dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.LoginWebViewProvider">dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx.FXLoginWebViewProvider</provider>
13+
<provider interface="dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.LoginWebViewProvider">dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx.OpenJFXLoginWebViewProvider</provider>
1414
<provider interface="dev.webfx.stack.com.serial.spi.SerialCodec">dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.openjfx.HttpCookieSerialCodec</provider>
1515
</providers>
1616

webfx-stack-authn-login-ui-gateway-webviewbased-gwt/pom.xml renamed to webfx-stack-authn-login-ui-gateway-webviewbased-web/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
<version>0.1.0-SNAPSHOT</version>
1212
</parent>
1313

14-
<artifactId>webfx-stack-authn-login-ui-gateway-webviewbased-gwt</artifactId>
14+
<artifactId>webfx-stack-authn-login-ui-gateway-webviewbased-web</artifactId>
1515

1616
<dependencies>
1717

1818
<dependency>
19-
<groupId>dev.webfx</groupId>
20-
<artifactId>webfx-kit-javafxweb-emul</artifactId>
21-
<version>0.1.0-SNAPSHOT</version>
19+
<groupId>org.openjfx</groupId>
20+
<artifactId>javafx-web</artifactId>
21+
<scope>provided</scope>
2222
</dependency>
2323

2424
<dependency>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.gwt;
1+
package dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.web;
22

33
import dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.LoginWebViewProvider;
44
import javafx.scene.web.WebView;
55

66
/**
77
* @author Bruno Salmon
88
*/
9-
public class GwtLoginWebViewProvider implements LoginWebViewProvider {
9+
public class WebLoginWebViewProvider implements LoginWebViewProvider {
1010

1111
@Override
1212
public WebView createLoginWebView() {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dev.webfx.stack.authn.login.ui.spi.impl.gateway.webview.spi.impl.web.WebLoginWebViewProvider

0 commit comments

Comments
 (0)