Interface H2WebServerWrapper
public interface H2WebServerWrapper
Provides programmatic access to otherwise protected H2
WebServer configuration.-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether other computers are allowed to connect.voidsetAdminPassword(String password) Web Admin Password.voidsetAllowOthers(boolean b) Whether to allow other computers to connect.voidsetConnectionInfo(org.h2.server.web.ConnectionInfo connectionInfo) Update the connection information setting.static voidwithH2WebServerWrapperDo(@NonNull org.h2.server.web.WebServlet webServlet, @NonNull Consumer<H2WebServerWrapper> onConfiguration)
-
Method Details
-
setConnectionInfo
Update the connection information setting. -
setAllowOthers
Whether to allow other computers to connect. -
getAllowOthers
boolean getAllowOthers()Whether other computers are allowed to connect. -
setAdminPassword
Web Admin Password. -
withH2WebServerWrapperDo
static void withH2WebServerWrapperDo(@NonNull @NonNull org.h2.server.web.WebServlet webServlet, @NonNull @NonNull Consumer<H2WebServerWrapper> onConfiguration)
-