public class KnotxServerOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_UPLOAD_LIMIT
Default File Upload Limit = -1 (unlimited)
|
| Constructor and Description |
|---|
KnotxServerOptions()
Default constructor
|
KnotxServerOptions(io.vertx.core.json.JsonObject json)
Create an settings from JSON
|
KnotxServerOptions(KnotxServerOptions other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
AccessLogOptions |
getAccessLog() |
Set<String> |
getAllowedResponseHeaders() |
long |
getBackpressureBufferCapacity() |
io.reactivex.BackpressureOverflowStrategy |
getBackpressureStrategy() |
KnotxCSRFOptions |
getCsrfConfig() |
KnotxFlowSettings |
getCustomFlow() |
CustomHttpHeader |
getCustomResponseHeader() |
KnotxFlowSettings |
getDefaultFlow() |
io.vertx.core.eventbus.DeliveryOptions |
getDeliveryOptions() |
int |
getDropRequestResponseCode() |
String |
getFileUploadDirectory() |
Long |
getFileUploadLimit() |
io.vertx.core.http.HttpServerOptions |
getServerOptions() |
boolean |
isDisplayExceptionDetails() |
boolean |
isDropRequests() |
KnotxServerOptions |
setAccessLog(AccessLogOptions accessLog)
Set the access log options
|
KnotxServerOptions |
setAllowedResponseHeaders(Set<String> allowedResponseHeaders)
Set the set of response headers that can be returned by the Knot.x server
|
KnotxServerOptions |
setBackpressureBufferCapacity(long backpressureBufferCapacity)
Sets the backpressure buffer capacity.
|
KnotxServerOptions |
setBackpressureStrategy(io.reactivex.BackpressureOverflowStrategy backpressureStrategy)
Sets the strategy how to deal with backpressure buffer overflow.
|
KnotxServerOptions |
setCsrfConfig(KnotxCSRFOptions csrfConfig)
Set the CSRF configuration of the Knot.x server
|
KnotxServerOptions |
setCustomFlow(KnotxFlowSettings customFlow)
Set the Custom Flow configuration
|
KnotxServerOptions |
setCustomResponseHeader(CustomHttpHeader customResponseHeader)
Set the custom response header returned by the Knot.x
|
KnotxServerOptions |
setDefaultFlow(KnotxFlowSettings defaultFlow)
Set the Default flow configuration
|
KnotxServerOptions |
setDeliveryOptions(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
Set the Event Bus Delivery options used to communicate with Knot's
|
KnotxServerOptions |
setDisplayExceptionDetails(boolean displayExceptionDetails)
Set whether to display or not the exception on error pages
|
KnotxServerOptions |
setDropRequestResponseCode(int dropRequestResponseCode)
Sets the HTTP response code returned wheb request is dropped.
|
KnotxServerOptions |
setDropRequests(boolean dropRequests)
Enabled/disables request dropping (backpressure) on heavy load.
|
KnotxServerOptions |
setFileUploadDirectory(String fileUploadDirectory)
Set the location on Knot.x environment when uploaded files will be stored.
|
KnotxServerOptions |
setFileUploadLimit(Long fileUploadLimit)
Set the file upload limit in bytes
|
KnotxServerOptions |
setServerOptions(io.vertx.core.http.HttpServerOptions serverOptions)
Set the HTTP Server options
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public static final long DEFAULT_UPLOAD_LIMIT
public KnotxServerOptions()
public KnotxServerOptions(KnotxServerOptions other)
other - the instance to copypublic KnotxServerOptions(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public Long getFileUploadLimit()
public KnotxServerOptions setFileUploadLimit(Long fileUploadLimit)
fileUploadLimit - size limit in bytespublic String getFileUploadDirectory()
public KnotxServerOptions setFileUploadDirectory(String fileUploadDirectory)
fileUploadDirectory - file upload directorypublic boolean isDisplayExceptionDetails()
public KnotxServerOptions setDisplayExceptionDetails(boolean displayExceptionDetails)
displayExceptionDetails - displays exceptions on error pages if truepublic io.vertx.core.http.HttpServerOptions getServerOptions()
HttpServerOptionspublic KnotxServerOptions setServerOptions(io.vertx.core.http.HttpServerOptions serverOptions)
serverOptions - HttpServerOptions objectpublic io.vertx.core.eventbus.DeliveryOptions getDeliveryOptions()
DeliveryOptionspublic KnotxServerOptions setDeliveryOptions(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
deliveryOptions - DeliveryOptions objectpublic KnotxCSRFOptions getCsrfConfig()
KnotxCSRFOptionspublic KnotxServerOptions setCsrfConfig(KnotxCSRFOptions csrfConfig)
csrfConfig - KnotxCSRFOptions objectpublic KnotxFlowSettings getDefaultFlow()
KnotxFlowSettings for a default flowpublic KnotxServerOptions setDefaultFlow(KnotxFlowSettings defaultFlow)
defaultFlow - a configuration of default flowpublic KnotxFlowSettings getCustomFlow()
KnotxFlowSettings of the custom flowpublic KnotxServerOptions setCustomFlow(KnotxFlowSettings customFlow)
customFlow - a configuration og the custom flowpublic Set<String> getAllowedResponseHeaders()
public KnotxServerOptions setAllowedResponseHeaders(Set<String> allowedResponseHeaders)
allowedResponseHeaders - a set of response headerspublic CustomHttpHeader getCustomResponseHeader()
public KnotxServerOptions setCustomResponseHeader(CustomHttpHeader customResponseHeader)
customResponseHeader - a KnotxServerOptions objectpublic AccessLogOptions getAccessLog()
public KnotxServerOptions setAccessLog(AccessLogOptions accessLog)
accessLog - a AccessLogOptions objectpublic boolean isDropRequests()
public KnotxServerOptions setDropRequests(boolean dropRequests)
dropRequests - true - request drop enabled, false if disabledpublic int getDropRequestResponseCode()
public KnotxServerOptions setDropRequestResponseCode(int dropRequestResponseCode)
dropRequestResponseCode - status code integerpublic long getBackpressureBufferCapacity()
public KnotxServerOptions setBackpressureBufferCapacity(long backpressureBufferCapacity)
backpressureBufferCapacity - long - capacity of the bufferpublic io.reactivex.BackpressureOverflowStrategy getBackpressureStrategy()
public KnotxServerOptions setBackpressureStrategy(io.reactivex.BackpressureOverflowStrategy backpressureStrategy)
backpressureStrategy - a BackpressureOverflowStrategy valueCopyright © 2016–2020. All rights reserved.