Package com.linecorp.armeria.server
Class ServiceConfig
java.lang.Object
com.linecorp.armeria.server.ServiceConfig
public final class ServiceConfig extends Object
An
HttpService
configuration.-
Method Summary
Modifier and Type Method Description AccessLogWriter
accessLogWriter()
Returns the access log writer.String
defaultLogName()
Returns the default value of theRequestOnlyLog.name()
property which is used when no name was set viaRequestLogBuilder.name(String)
.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 theHttpService
.boolean
shutdownAccessLogWriterOnStop()
Tells whether theAccessLogWriter
is shut down when theServer
stops.String
toString()
boolean
verboseResponses()
Returns whether the verbose response mode is enabled.VirtualHost
virtualHost()
Returns theVirtualHost
theservice()
belongs to.
-
Method Details
-
virtualHost
Returns theVirtualHost
theservice()
belongs to. -
server
-
route
-
service
Returns theHttpService
. -
defaultLogName
Returns the default value of theRequestOnlyLog.name()
property which is used when no name was set viaRequestLogBuilder.name(String)
. Ifnull
, HTTP method name will be used instead. -
requestTimeoutMillis
public long requestTimeoutMillis()Returns the timeout of a request.- See Also:
VirtualHost.requestTimeoutMillis()
-
maxRequestLength
public long maxRequestLength()Returns the maximum allowed length of the content decoded at the session layer. e.g. the content length of an HTTP request.- See Also:
VirtualHost.maxRequestLength()
-
verboseResponses
public boolean verboseResponses()Returns whether the verbose response mode is enabled. When enabled, the service response will contain the exception type and its full stack trace, which may be useful for debugging while potentially insecure. When disabled, the service response will not expose such server-side details to the client.- See Also:
VirtualHost.verboseResponses()
-
accessLogWriter
Returns the access log writer.- See Also:
VirtualHost.accessLogWriter()
-
shutdownAccessLogWriterOnStop
public boolean shutdownAccessLogWriterOnStop()Tells whether theAccessLogWriter
is shut down when theServer
stops. -
toString
-