Record Class FrontendConfig
java.lang.Object
java.lang.Record
io.fluxzero.devserver.FrontendConfig
- Record Components:
mode- frontend integration modecommand- command used to start a managed frontendurl- URL of an externally managed frontenddirectory- optional working directory for managed frontend commands, relative to the project directorysetupCommand- optional setup command executed once before each managed frontend launchbackendPaths- public paths routed unchanged to the Fluxzero proxy
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionDefault path routed unchanged from the public gateway to Fluxzero. -
Constructor Summary
ConstructorsConstructorDescriptionFrontendConfig(FrontendConfig.Mode mode, String command, String url) FrontendConfig(FrontendConfig.Mode mode, String command, String url, String directory, String setupCommand, List<String> backendPaths) Creates an instance of aFrontendConfigrecord class.FrontendConfig(FrontendConfig.Mode mode, String command, String url, List<String> backendPaths) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackendPathsrecord component.command()Returns the value of thecommandrecord component.static FrontendConfigReturns the value of thedirectoryrecord component.final booleanIndicates whether some other object is "equal to" this one.static FrontendConfigexternalUrl(String url) final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.static FrontendConfignone()Returns the value of thesetupCommandrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.withBackendPaths(List<String> backendPaths) Returns a copy with the public paths that should bypass the frontend and retain their path toward Fluxzero.withLaunchSetup(String directory, String setupCommand) Returns a copy with the working directory and optional setup command for the managed frontend.
-
Field Details
-
DEFAULT_BACKEND_PATHS
-
-
Constructor Details
-
FrontendConfig
public FrontendConfig(FrontendConfig.Mode mode, String command, String url, String directory, String setupCommand, List<String> backendPaths) Creates an instance of aFrontendConfigrecord class.- Parameters:
mode- the value for themoderecord componentcommand- the value for thecommandrecord componenturl- the value for theurlrecord componentdirectory- the value for thedirectoryrecord componentsetupCommand- the value for thesetupCommandrecord componentbackendPaths- the value for thebackendPathsrecord component
-
FrontendConfig
-
FrontendConfig
public FrontendConfig(FrontendConfig.Mode mode, String command, String url, List<String> backendPaths)
-
-
Method Details
-
none
-
externalUrl
-
command
-
withBackendPaths
Returns a copy with the public paths that should bypass the frontend and retain their path toward Fluxzero. -
withLaunchSetup
Returns a copy with the working directory and optional setup command for the managed frontend. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
mode
-
command
-
url
-
directory
-
setupCommand
Returns the value of thesetupCommandrecord component.- Returns:
- the value of the
setupCommandrecord component
-
backendPaths
Returns the value of thebackendPathsrecord component.- Returns:
- the value of the
backendPathsrecord component
-