public interface Server
| Modifier and Type | Method and Description |
|---|---|
void |
join()
Blocks the current thread until the server stops.
|
void |
setEndpoints(Endpoint[] endpoints)
Specify the HTTP listening endpoints.
|
void |
setFilters(Filter[] filters)
Set the filter chain.
|
void |
setServerConfigurator(ServerConfigurator serverConfig)
Set a server configurator class that allows a server add a custom
configuration
|
void |
setServices(Service[] services) |
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
void setEndpoints(Endpoint[] endpoints)
endpoints - The server will listen for requests on these
endpoints.void setServices(Service[] services)
services - void setFilters(Filter[] filters)
filters - list of filters.void setServerConfigurator(ServerConfigurator serverConfig)
serverConfig - a ServerConfigurator to add custom configuration to
the serverCopyright © 2023. All rights reserved.