-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
228 additions
and
106 deletions.
There are no files selected for viewing
This file contains 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
27 changes: 13 additions & 14 deletions
27
...ent/src/main/java/io/quarkiverse/quinoa/deployment/items/ForwardedDevServerBuildItem.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
package io.quarkiverse.quinoa.deployment.items; | ||
|
||
import io.quarkiverse.quinoa.QuinoaNetworkConfiguration; | ||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
public final class ForwardedDevServerBuildItem extends SimpleBuildItem { | ||
|
||
private final boolean tls; | ||
private final boolean tlsAllowInsecure; | ||
private final String host; | ||
private final Integer port; | ||
private final QuinoaNetworkConfiguration networkConfiguration; | ||
|
||
public ForwardedDevServerBuildItem(boolean tls, boolean tlsAllowInsecure, String host, Integer port) { | ||
this.tls = tls; | ||
this.tlsAllowInsecure = tlsAllowInsecure; | ||
this.host = host; | ||
this.port = port; | ||
public ForwardedDevServerBuildItem(QuinoaNetworkConfiguration networkConfiguration) { | ||
this.networkConfiguration = networkConfiguration; | ||
} | ||
|
||
public QuinoaNetworkConfiguration getNetworkConfiguration() { | ||
return networkConfiguration; | ||
} | ||
|
||
public boolean isTls() { | ||
return tls; | ||
return networkConfiguration.isTls(); | ||
} | ||
|
||
public boolean isTlsAllowInsecure() { | ||
return tlsAllowInsecure; | ||
return networkConfiguration.isTlsAllowInsecure(); | ||
} | ||
|
||
public String getHost() { | ||
return host; | ||
return networkConfiguration.getHost(); | ||
} | ||
|
||
public Integer getPort() { | ||
return port; | ||
return networkConfiguration.getPort(); | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.