Module one.jpro.platform.auth.core
Class HttpServerImpl
java.lang.Object
one.jpro.platform.auth.core.http.impl.HttpServerImpl
- All Implemented Interfaces:
AutoCloseable,HttpServer
Implementation of the
HttpServer interface when running
the application in a desktop/device environment.-
Constructor Summary
ConstructorsConstructorDescriptionHttpServerImpl(@Nullable javafx.stage.Stage stage, @NotNull HttpOptions options) Creates HTTP server. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.jpro.platform.auth.core.http.HttpServer
close, decodeParams, getParameters, getQueryParams, getRequestedURL
-
Constructor Details
-
HttpServerImpl
public HttpServerImpl(@Nullable @Nullable javafx.stage.Stage stage, @NotNull @NotNull HttpOptions options) throws IOException Creates HTTP server.- Parameters:
options- the HTTP options- Throws:
IOException- if an error occurs
-
-
Method Details
-
start
public void start()Description copied from interface:HttpServerStarts the server. If the application is running in a browser via JPro server, then this method does nothing.- Specified by:
startin interfaceHttpServer
-
stop
public void stop()Description copied from interface:HttpServerStops the server. If the application is running in a browser via JPro server, then this method does nothing.- Specified by:
stopin interfaceHttpServer
-
getServerHost
Description copied from interface:HttpServerReturn the server host.- Specified by:
getServerHostin interfaceHttpServer- Returns:
- the server host
-
getServerPort
public int getServerPort()Description copied from interface:HttpServerReturn the server port.- Specified by:
getServerPortin interfaceHttpServer- Returns:
- the server port
-
getFullRequestedURL
Description copied from interface:HttpServerReturn the full URL (with query string) the client used to request the server.- Specified by:
getFullRequestedURLin interfaceHttpServer- Returns:
- the URL
-
openURL
Description copied from interface:HttpServerOpens the given URL string in the browser.- Specified by:
openURLin interfaceHttpServer- Parameters:
url- the URL string to open
-