public final class VirtualHost extends Object
VirtualHost
contains the following information:
SslContext
if TLS is enabledService
s and their PathMapping
sVirtualHostBuilder
Modifier and Type | Method and Description |
---|---|
String |
defaultHostname()
Returns the default hostname of this virtual host.
|
PathMapped<ServiceConfig> |
findServiceConfig(PathMappingContext mappingCtx)
|
String |
hostnamePattern()
Returns the hostname pattern of this virtual host, as defined in
the section 3.1 of RFC2818.
|
MediaTypeSet |
producibleMediaTypes()
Returns
MediaTypeSet that consists of media types producible by this virtual host. |
Server |
server()
Returns the
Server where this VirtualHost belongs to. |
List<ServiceConfig> |
serviceConfigs()
Returns the information about the
Service s bound to this virtual host. |
SslContext |
sslContext()
Returns the
SslContext of this virtual host. |
String |
toString() |
public Server server()
Server
where this VirtualHost
belongs to.public String defaultHostname()
public String hostnamePattern()
@Nullable public SslContext sslContext()
SslContext
of this virtual host.public List<ServiceConfig> serviceConfigs()
Service
s bound to this virtual host.public MediaTypeSet producibleMediaTypes()
MediaTypeSet
that consists of media types producible by this virtual host.public PathMapped<ServiceConfig> findServiceConfig(PathMappingContext mappingCtx)
mappingCtx
- a context to find the Service
.ServiceConfig
wrapped by a PathMapped
if there's a match.
PathMapped.empty()
if there's no match.© Copyright 2015–2018 LINE Corporation. All rights reserved.