Class DevServerConfigDelegate
- java.lang.Object
-
- io.quarkiverse.quinoa.deployment.config.delegate.DevServerConfigDelegate
-
- All Implemented Interfaces:
DevServerConfig
public class DevServerConfigDelegate extends Object implements DevServerConfig
-
-
Constructor Summary
Constructors Constructor Description DevServerConfigDelegate(DevServerConfig delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>checkPath()After start, Quinoa wait for the external dev server.intcheckTimeout()Timeout in ms for the dev server to be up and running.booleanenabled()Enable external dev server (live coding).Stringhost()Host of the server to forward requests to.Optional<String>indexPage()Set this value if the index page is different for the dev-serverbooleanlogs()Enable external dev server live coding logs.booleanmanaged()When set to true, Quinoa will manage the Web UI dev server When set to false, the Web UI dev server have to be started before running Quarkus devOptional<Integer>port()Port of the server to forward requests to.booleanwebsocket()By default, Quinoa will handle request upgrade to websocket and act as proxy with the dev server.
-
-
-
Constructor Detail
-
DevServerConfigDelegate
public DevServerConfigDelegate(DevServerConfig delegate)
-
-
Method Detail
-
enabled
public boolean enabled()
Description copied from interface:DevServerConfigEnable external dev server (live coding). If the "dev-server.port" config is not detected or defined it will be disabled.- Specified by:
enabledin interfaceDevServerConfig
-
managed
public boolean managed()
Description copied from interface:DevServerConfigWhen set to true, Quinoa will manage the Web UI dev server When set to false, the Web UI dev server have to be started before running Quarkus dev- Specified by:
managedin interfaceDevServerConfig
-
port
public Optional<Integer> port()
Description copied from interface:DevServerConfigPort of the server to forward requests to. The dev server process (i.e npm start) is managed like a dev service by Quarkus. If the external server responds with a 404, it is ignored by Quinoa and processed like any other backend request.- Specified by:
portin interfaceDevServerConfig
-
host
public String host()
Description copied from interface:DevServerConfigHost of the server to forward requests to.- Specified by:
hostin interfaceDevServerConfig
-
checkPath
public Optional<String> checkPath()
Description copied from interface:DevServerConfigAfter start, Quinoa wait for the external dev server. by sending GET requests to this path waiting for a 200 status. If forced empty, Quinoa will not check if the dev server is up.- Specified by:
checkPathin interfaceDevServerConfig
-
websocket
public boolean websocket()
Description copied from interface:DevServerConfigBy default, Quinoa will handle request upgrade to websocket and act as proxy with the dev server. If set to false, Quinoa will pass websocket upgrade request to the next Vert.x route handler.- Specified by:
websocketin interfaceDevServerConfig
-
checkTimeout
public int checkTimeout()
Description copied from interface:DevServerConfigTimeout in ms for the dev server to be up and running.- Specified by:
checkTimeoutin interfaceDevServerConfig
-
logs
public boolean logs()
Description copied from interface:DevServerConfigEnable external dev server live coding logs. This is not enabled by default because most dev servers display compilation errors directly in the browser.- Specified by:
logsin interfaceDevServerConfig
-
indexPage
public Optional<String> indexPage()
Description copied from interface:DevServerConfigSet this value if the index page is different for the dev-server- Specified by:
indexPagein interfaceDevServerConfig
-
-