Package io.fusionauth.http.server
Class HTTPServer
java.lang.Object
io.fusionauth.http.server.HTTPServer
- All Implemented Interfaces:
Configurable<HTTPServer>,Closeable,AutoCloseable
The server bro!
- Author:
- Brian Pontarelli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()start()withConfiguration(HTTPServerConfiguration configuration) Specify the full configuration object for the server rather than using thewithbuilder methods.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fusionauth.http.server.Configurable
withBaseDir, withCompressByDefault, withContextPath, withExpectValidator, withHandler, withInitialReadTimeout, withInstrumenter, withKeepAliveTimeoutDuration, withListener, withLoggerFactory, withMaxResponseChunkSize, withMinimumReadThroughput, withMinimumWriteThroughput, withMultipartBufferSize, withProcessingTimeoutDuration, withReadThroughputCalculationDelayDuration, withRequestBufferSize, withResponseBufferSize, withShutdownDuration, withWriteThroughputCalculationDelayDuration
-
Constructor Details
-
HTTPServer
public HTTPServer()
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
configuration
- Specified by:
configurationin interfaceConfigurable<HTTPServer>- Returns:
- The configuration object.
-
getContext
- Returns:
- The HTTP Context or null if the server hasn't been started yet.
-
start
-
withConfiguration
Specify the full configuration object for the server rather than using thewithbuilder methods.- Parameters:
configuration- The configuration for the server.- Returns:
- This.
-