public final class ServiceConfig extends Object
HttpService configuration.| Modifier and Type | Method and Description |
|---|---|
AccessLogWriter |
accessLogWriter()
Returns the access log writer.
|
Optional<String> |
loggerName()
Deprecated.
Use a logging framework integration such as
RequestContextExportingAppender in
armeria-logback. |
long |
maxRequestLength()
Returns the maximum allowed length of the content decoded at the session layer.
|
ContentPreviewerFactory |
requestContentPreviewerFactory()
Returns the
ContentPreviewerFactory used for creating a new ContentPreviewer
which produces the request content preview of this HttpService. |
long |
requestTimeoutMillis()
Returns the timeout of a request.
|
ContentPreviewerFactory |
responseContentPreviewerFactory()
Returns the
ContentPreviewerFactory used for creating a new ContentPreviewer
which produces the response content preview of this HttpService. |
Route |
route()
|
Server |
server()
|
HttpService |
service()
Returns the
HttpService. |
boolean |
shutdownAccessLogWriterOnStop()
Tells whether the
AccessLogWriter is shut down when the Server stops. |
String |
toString() |
boolean |
verboseResponses()
Returns whether the verbose response mode is enabled.
|
VirtualHost |
virtualHost()
Returns the
VirtualHost the service() belongs to. |
public VirtualHost virtualHost()
VirtualHost the service() belongs to.public Server server()
public Route route()
public HttpService service()
HttpService.@Deprecated public Optional<String> loggerName()
RequestContextExportingAppender in
armeria-logback.HttpService.public long requestTimeoutMillis()
VirtualHost.requestTimeoutMillis()public long maxRequestLength()
VirtualHost.maxRequestLength()public boolean verboseResponses()
VirtualHost.verboseResponses()public ContentPreviewerFactory requestContentPreviewerFactory()
ContentPreviewerFactory used for creating a new ContentPreviewer
which produces the request content preview of this HttpService.public ContentPreviewerFactory responseContentPreviewerFactory()
ContentPreviewerFactory used for creating a new ContentPreviewer
which produces the response content preview of this HttpService.public AccessLogWriter accessLogWriter()
VirtualHost.accessLogWriter()public boolean shutdownAccessLogWriterOnStop()
AccessLogWriter is shut down when the Server stops.Copyright © 2020 LeanCloud. All rights reserved.