public final class ServiceConfig extends Object
HttpService configuration.| Modifier and Type | Method and Description |
|---|---|
AccessLogWriter |
accessLogWriter()
Returns the access log writer.
|
long |
maxRequestLength()
Returns the maximum allowed length of the content decoded at the session layer.
|
long |
requestTimeoutMillis()
Returns the timeout of a request.
|
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.public long requestTimeoutMillis()
VirtualHost.requestTimeoutMillis()public long maxRequestLength()
VirtualHost.maxRequestLength()public boolean verboseResponses()
VirtualHost.verboseResponses()public AccessLogWriter accessLogWriter()
VirtualHost.accessLogWriter()public boolean shutdownAccessLogWriterOnStop()
AccessLogWriter is shut down when the Server stops.Copyright © 2020 LeanCloud. All rights reserved.