MuServerBuilder |
MuServerBuilder.addHandler(Method method,
java.lang.String uriTemplate,
RouteHandler handler) |
Registers a new handler that will only be called if it matches the given route info
|
MuServerBuilder |
MuServerBuilder.addHandler(MuHandler handler) |
Adds a request handler.
|
MuServerBuilder |
MuServerBuilder.addHandler(MuHandlerBuilder handler) |
Adds a request handler.
|
MuServerBuilder |
MuServerBuilder.addResponseCompleteListener(ResponseCompleteListener listener) |
Adds a listener that is notified when each response completes
|
MuServerBuilder |
MuServerBuilder.addShutdownHook(boolean stopServerOnShutdown) |
|
static MuServerBuilder |
MuServerBuilder.httpServer() |
Creates a new server builder which will run as HTTP on a random port.
|
static MuServerBuilder |
MuServerBuilder.httpsServer() |
Creates a new server builder which will run as HTTPS on a random port.
|
static MuServerBuilder |
MuServerBuilder.muServer() |
Creates a new server builder.
|
MuServerBuilder |
MuServerBuilder.withExceptionHandler(UnhandledExceptionHandler exceptionHandler) |
Sets the handler to use for exceptions thrown by other handlers, allowing for things such as custom error pages.
|
MuServerBuilder |
MuServerBuilder.withGzip(long minimumGzipSize,
java.util.Set<java.lang.String> mimeTypesToGzip) |
Enables gzip for files of at least the specified size that match the given mime-types.
|
MuServerBuilder |
MuServerBuilder.withGzipEnabled(boolean enabled) |
Enables gzip for certain resource types.
|
MuServerBuilder |
MuServerBuilder.withHandlerExecutor(java.util.concurrent.ExecutorService executor) |
Sets the thread executor service to run requests on.
|
MuServerBuilder |
MuServerBuilder.withHttp2Config(Http2Config http2Config) |
Sets the configuration for HTTP2
|
MuServerBuilder |
MuServerBuilder.withHttp2Config(Http2ConfigBuilder http2Config) |
Sets the configuration for HTTP2
|
MuServerBuilder |
MuServerBuilder.withHttpPort(int port) |
|
MuServerBuilder |
MuServerBuilder.withHttpsConfig(HttpsConfigBuilder httpsConfig) |
Sets the HTTPS config.
|
MuServerBuilder |
MuServerBuilder.withHttpsPort(int port) |
Sets the HTTPS port to use.
|
MuServerBuilder |
MuServerBuilder.withIdleTimeout(long duration,
java.util.concurrent.TimeUnit unit) |
Sets the idle timeout for connections.
|
MuServerBuilder |
MuServerBuilder.withInterface(java.lang.String host) |
Use this to specify which network interface to bind to.
|
MuServerBuilder |
MuServerBuilder.withMaxHeadersSize(int size) |
Specifies the maximum size in bytes of the HTTP request headers.
|
MuServerBuilder |
MuServerBuilder.withMaxRequestSize(long maxSizeInBytes) |
The maximum allowed request body size.
|
MuServerBuilder |
MuServerBuilder.withMaxUrlSize(int size) |
The maximum length that a URL can be.
|
MuServerBuilder |
MuServerBuilder.withNioThreads(int nioThreads) |
The number of nio threads to handle requests.
|
MuServerBuilder |
MuServerBuilder.withRateLimiter(RateLimitSelector selector) |
Adds a rate limiter to incoming requests.
|
MuServerBuilder |
MuServerBuilder.withRequestTimeout(long duration,
java.util.concurrent.TimeUnit unit) |
Sets the idle timeout for reading request bodies.
|