| Package | Description |
|---|---|
| com.linecorp.armeria.server |
Server core.
|
| Modifier and Type | Method and Description |
|---|---|
VirtualHostBuilder |
VirtualHostBuilder.accessLogger(Function<VirtualHost,org.slf4j.Logger> mapper)
Sets the access logger mapper of this
VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.accessLogger(org.slf4j.Logger logger)
Sets the
Logger of this VirtualHost, which is used for writing access logs. |
VirtualHostBuilder |
VirtualHostBuilder.accessLogger(String loggerName)
|
VirtualHostBuilder |
VirtualHostBuilder.accessLogWriter(AccessLogWriter accessLogWriter,
boolean shutdownOnStop)
Sets the access log writer of this
VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(Object service)
Binds the specified annotated service object under the path prefix
"/". |
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(Object service,
Function<? super HttpService,? extends HttpService> decorator,
Object... exceptionHandlersAndConverters)
Binds the specified annotated service object under the path prefix
"/". |
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(Object service,
Object... exceptionHandlersAndConverters)
Binds the specified annotated service object under the path prefix
"/". |
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(String pathPrefix,
Object service)
Binds the specified annotated service object under the specified path prefix.
|
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(String pathPrefix,
Object service,
Function<? super HttpService,? extends HttpService> decorator,
Iterable<?> exceptionHandlersAndConverters)
Binds the specified annotated service object under the specified path prefix.
|
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(String pathPrefix,
Object service,
Function<? super HttpService,? extends HttpService> decorator,
Iterable<? extends ExceptionHandlerFunction> exceptionHandlerFunctions,
Iterable<? extends RequestConverterFunction> requestConverterFunctions,
Iterable<? extends ResponseConverterFunction> responseConverterFunctions)
Binds the specified annotated service object under the specified path prefix.
|
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(String pathPrefix,
Object service,
Function<? super HttpService,? extends HttpService> decorator,
Object... exceptionHandlersAndConverters)
Binds the specified annotated service object under the specified path prefix.
|
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(String pathPrefix,
Object service,
Iterable<?> exceptionHandlersAndConverters)
Binds the specified annotated service object under the specified path prefix.
|
VirtualHostBuilder |
VirtualHostBuilder.annotatedService(String pathPrefix,
Object service,
Object... exceptionHandlersAndConverters)
Binds the specified annotated service object under the specified path prefix.
|
VirtualHostBuilder |
VirtualHostDecoratingServiceBindingBuilder.build(DecoratingHttpServiceFunction decoratingHttpServiceFunction)
Sets the
DecoratingHttpServiceFunction and returns VirtualHostBuilder that this
VirtualHostDecoratingServiceBindingBuilder was created from. |
VirtualHostBuilder |
VirtualHostDecoratingServiceBindingBuilder.build(Function<? super HttpService,? extends HttpService> decorator)
Sets the
decorator and returns VirtualHostBuilder that this
VirtualHostDecoratingServiceBindingBuilder was created from. |
VirtualHostBuilder |
VirtualHostServiceBindingBuilder.build(HttpService service)
Sets the
HttpService and returns the VirtualHostBuilder that this
VirtualHostServiceBindingBuilder was created from. |
VirtualHostBuilder |
VirtualHostAnnotatedServiceBindingBuilder.build(Object service)
Registers the given service to the VirtualHostBuilder.
|
VirtualHostBuilder |
VirtualHostBuilder.contentPreview(int length)
Sets the
ContentPreviewerFactory for creating a ContentPreviewer which produces the
preview with the maximum length limit for a request and a response of this VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.contentPreview(int length,
Charset defaultCharset)
Sets the
ContentPreviewerFactory for creating a ContentPreviewer which produces the
preview with the maximum length limit for a request and a response of this VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.contentPreviewerFactory(ContentPreviewerFactory factory)
Sets the
ContentPreviewerFactory for a request and a response of this VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.decorator(DecoratingHttpServiceFunction decoratingHttpServiceFunction)
Decorates all
HttpServices with the specified DecoratingHttpServiceFunction. |
VirtualHostBuilder |
VirtualHostBuilder.decorator(Function<? super HttpService,? extends HttpService> decorator)
Decorates all
HttpServices with the specified decorator. |
VirtualHostBuilder |
VirtualHostBuilder.decorator(Route route,
DecoratingHttpServiceFunction decoratingHttpServiceFunction)
|
VirtualHostBuilder |
VirtualHostBuilder.decorator(Route route,
Function<? super HttpService,? extends HttpService> decorator)
|
VirtualHostBuilder |
VirtualHostBuilder.decorator(String pathPattern,
DecoratingHttpServiceFunction decoratingHttpServiceFunction)
|
VirtualHostBuilder |
VirtualHostBuilder.decorator(String pathPattern,
Function<? super HttpService,? extends HttpService> decorator)
|
VirtualHostBuilder |
VirtualHostBuilder.decoratorUnder(String prefix,
DecoratingHttpServiceFunction decoratingHttpServiceFunction)
Decorates
HttpServices under the specified directory. |
VirtualHostBuilder |
VirtualHostBuilder.decoratorUnder(String prefix,
Function<? super HttpService,? extends HttpService> decorator)
Decorates
HttpServices under the specified directory. |
VirtualHostBuilder |
VirtualHostBuilder.defaultHostname(String defaultHostname)
Sets the default hostname of this
VirtualHost. |
VirtualHostBuilder |
ServerBuilder.defaultVirtualHost()
Returns the
VirtualHostBuilder for building the default
name-based virtual host. |
VirtualHostBuilder |
VirtualHostBuilder.hostnamePattern(String hostnamePattern)
Sets the hostname pattern of this
VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.maxRequestLength(long maxRequestLength)
Sets the maximum allowed length of the content decoded at the session layer.
|
VirtualHostBuilder |
VirtualHostBuilder.rejectedRouteHandler(RejectedRouteHandler handler)
Sets the
RejectedRouteHandler which will be invoked when an attempt to bind
an HttpService at a certain Route is rejected. |
VirtualHostBuilder |
VirtualHostBuilder.requestContentPreviewerFactory(ContentPreviewerFactory factory)
Sets the
ContentPreviewerFactory for a request of this VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.requestTimeout(Duration requestTimeout)
Sets the timeout of a request.
|
VirtualHostBuilder |
VirtualHostBuilder.requestTimeoutMillis(long requestTimeoutMillis)
Sets the timeout of a request in milliseconds.
|
VirtualHostBuilder |
VirtualHostBuilder.responseContentPreviewerFactory(ContentPreviewerFactory factory)
Sets the
ContentPreviewerFactory for a response of this VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.service(HttpServiceWithRoutes serviceWithRoutes,
Function<? super HttpService,? extends HttpService>... decorators)
Decorates and binds the specified
HttpServiceWithRoutes at multiple Routes
of the default VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.service(HttpServiceWithRoutes serviceWithRoutes,
Iterable<Function<? super HttpService,? extends HttpService>> decorators)
Decorates and binds the specified
HttpServiceWithRoutes at multiple Routes
of the default VirtualHost. |
VirtualHostBuilder |
VirtualHostBuilder.service(Route route,
HttpService service)
Binds the specified
HttpService at the specified Route. |
VirtualHostBuilder |
VirtualHostBuilder.service(String pathPattern,
HttpService service)
Binds the specified
HttpService at the specified path pattern. e.g. |
VirtualHostBuilder |
VirtualHostBuilder.serviceAt(String pathPattern,
HttpService service)
Deprecated.
Use
service(String, HttpService) instead. |
VirtualHostBuilder |
VirtualHostBuilder.serviceUnder(String pathPrefix,
HttpService service)
Binds the specified
HttpService under the specified directory. |
VirtualHostBuilder |
VirtualHostBuilder.tls(File keyCertChainFile,
File keyFile)
Configures SSL or TLS of this
VirtualHost with the specified keyCertChainFile
and cleartext keyFile. |
VirtualHostBuilder |
VirtualHostBuilder.tls(File keyCertChainFile,
File keyFile,
Consumer<io.netty.handler.ssl.SslContextBuilder> tlsCustomizer)
Configures SSL or TLS of this
VirtualHost with the specified keyCertChainFile,
cleartext keyFile and tlsCustomizer. |
VirtualHostBuilder |
VirtualHostBuilder.tls(File keyCertChainFile,
File keyFile,
String keyPassword)
Configures SSL or TLS of this
VirtualHost with the specified keyCertChainFile,
keyFile and keyPassword. |
VirtualHostBuilder |
VirtualHostBuilder.tls(File keyCertChainFile,
File keyFile,
String keyPassword,
Consumer<io.netty.handler.ssl.SslContextBuilder> tlsCustomizer)
Configures SSL or TLS of this
VirtualHost with the specified keyCertChainFile,
keyFile, keyPassword and tlsCustomizer. |
VirtualHostBuilder |
VirtualHostBuilder.tls(KeyManagerFactory keyManagerFactory,
Consumer<io.netty.handler.ssl.SslContextBuilder> tlsCustomizer)
|
VirtualHostBuilder |
VirtualHostBuilder.tls(io.netty.handler.ssl.SslContext sslContext)
Configures SSL or TLS of this
VirtualHost with the specified SslContext. |
VirtualHostBuilder |
VirtualHostBuilder.tlsSelfSigned()
Configures SSL or TLS of this
VirtualHost with an auto-generated self-signed certificate. |
VirtualHostBuilder |
VirtualHostBuilder.tlsSelfSigned(boolean tlsSelfSigned)
Configures SSL or TLS of this
VirtualHost with an auto-generated self-signed certificate. |
VirtualHostBuilder |
VirtualHostBuilder.verboseResponses(boolean verboseResponses)
Sets whether the verbose response mode is enabled.
|
VirtualHostBuilder |
ServerBuilder.virtualHost(String hostnamePattern)
Adds the name-based virtual host.
|
VirtualHostBuilder |
ServerBuilder.virtualHost(String defaultHostname,
String hostnamePattern)
Adds the name-based virtual host.
|
VirtualHostBuilder |
ServerBuilder.withDefaultVirtualHost()
Deprecated.
|
VirtualHostBuilder |
VirtualHostBuilder.withRoute(Consumer<VirtualHostServiceBindingBuilder> customizer)
|
VirtualHostBuilder |
ServerBuilder.withVirtualHost(String hostnamePattern)
Deprecated.
|
VirtualHostBuilder |
ServerBuilder.withVirtualHost(String defaultHostname,
String hostnamePattern)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ServerBuilder |
ServerBuilder.withDefaultVirtualHost(Consumer<VirtualHostBuilder> customizer)
Configures the default
VirtualHost with the customizer. |
ServerBuilder |
ServerBuilder.withVirtualHost(Consumer<VirtualHostBuilder> customizer)
Configures a
VirtualHost with the customizer. |
Copyright © 2020 LeanCloud. All rights reserved.