public interface MuServer
MuServerBuilder.httpsServer()
or
MuServerBuilder.httpServer()
Modifier and Type | Method and Description |
---|---|
Set<HttpConnection> |
activeConnections() |
InetSocketAddress |
address() |
static String |
artifactVersion() |
void |
changeHttpsConfig(HttpsConfigBuilder newHttpsConfig)
Changes the HTTPS certificate.
|
void |
changeSSLContext(SSLContext newSSLContext)
Deprecated.
Use
changeSSLContext(SSLContextBuilder) instead. |
void |
changeSSLContext(SSLContextBuilder newSSLContext)
Deprecated.
Use
changeHttpsConfig(HttpsConfigBuilder) instead |
boolean |
gzipEnabled()
Specifies whether GZIP is on or not.
|
URI |
httpsUri() |
URI |
httpUri() |
int |
maxRequestHeadersSize()
The maximum allowed size of request headers.
|
long |
maxRequestSize()
The maximum allowed size of a request body.
|
int |
maxUrlSize()
The maximum allowed size of the URI sent in a request line.
|
Set<String> |
mimeTypesToGzip()
Specifies the mime-types that GZIP should be applied to.
|
long |
minimumGzipSize()
The size a response body must be before GZIP is enabled, if
gzipEnabled() is true and the mime type is in mimeTypesToGzip() |
long |
requestIdleTimeoutMillis()
The maximum idle timeout for reading request bodies.
|
SSLInfo |
sslInfo()
Gets the SSL info of the server, or null if SSL is not enabled.
|
MuStats |
stats() |
void |
stop()
Shuts down the server
|
URI |
uri() |
void stop()
URI uri()
URI httpUri()
URI httpsUri()
MuStats stats()
Set<HttpConnection> activeConnections()
InetSocketAddress address()
InetSocketAddress.getAddress()
and on that
call InetAddress.getHostAddress()
. To get the hostname, use InetSocketAddress.getHostName()
or
InetSocketAddress.getHostString()
.static String artifactVersion()
long minimumGzipSize()
gzipEnabled()
is true and the mime type is in mimeTypesToGzip()
This can only be set at point of server creation with MuServerBuilder.withGzip(long, Set)
int maxRequestHeadersSize()
This can only be set at point of server creation with MuServerBuilder.withMaxHeadersSize(int)
long requestIdleTimeoutMillis()
This can only be set at point of server creation with MuServerBuilder.withIdleTimeout(long, TimeUnit)
long maxRequestSize()
This can only be set at point of server creation with MuServerBuilder.withMaxRequestSize(long)
int maxUrlSize()
This can only be set at point of server creation with MuServerBuilder.withMaxUrlSize(int)
boolean gzipEnabled()
This can only be set at point of server creation with MuServerBuilder.withGzipEnabled(boolean)
or
MuServerBuilder.withGzip(long, Set)
Set<String> mimeTypesToGzip()
This can only be set at point of server creation with MuServerBuilder.withGzip(long, Set)
@Deprecated void changeSSLContext(SSLContext newSSLContext)
changeSSLContext(SSLContextBuilder)
instead.newSSLContext
- The new SSL Context to use.@Deprecated void changeSSLContext(SSLContextBuilder newSSLContext)
changeHttpsConfig(HttpsConfigBuilder)
insteadnewSSLContext
- The new SSL Context to use.void changeHttpsConfig(HttpsConfigBuilder newHttpsConfig)
newHttpsConfig
- The new SSL Context to use.SSLInfo sslInfo()
Copyright © 2017–2020. All rights reserved.