Class RestServerConfigurationBuilder
java.lang.Object
org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder<RestServerConfiguration,RestServerConfigurationBuilder>
org.infinispan.rest.configuration.RestServerConfigurationBuilder
- All Implemented Interfaces:
Builder<RestServerConfiguration>
,Self<RestServerConfigurationBuilder>
,ProtocolServerConfigurationChildBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
public class RestServerConfigurationBuilder
extends ProtocolServerConfigurationBuilder<RestServerConfiguration,RestServerConfigurationBuilder>
implements Builder<RestServerConfiguration>
RestServerConfigurationBuilder.
- Since:
- 5.3
- Author:
- Tristan Tarrant
-
Field Summary
Fields inherited from class org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder
attributes, ipFilter, ssl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a configuration objectbuild
(boolean validate) compressionLevel
(int compressLevel) contextPath
(String contextPath) cors()
create()
Create the configuration beandefaultCacheName
(String defaultCacheName) Specifies the cache to use as a default cache for the protocolextendedHeaders
(ExtendedHeaders extendedHeaders) idleTimeout
(int idleTimeout) Specifies the maximum time that connections from client will be kept open without activitymaxContentLength
(int maxContentLength) Builder<?>
read
(RestServerConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.recvBufSize
(int recvBufSize) Sets the size of the receive bufferself()
sendBufSize
(int sendBufSize) Sets the size of the send bufferstaticResources
(Path dir) tcpKeepAlive
(boolean tcpKeepAlive) Affects TCP KEEPALIVE on the TCP stack.tcpNoDelay
(boolean tcpNoDelay) Affects TCP NODELAY on the TCP stack.void
validate()
Validate the data in this builder before building the configuration beanMethods inherited from class org.infinispan.server.core.configuration.ProtocolServerConfigurationBuilder
adminOperationsHandler, host, host, implicitConnector, implicitConnector, ioThreads, ipFilter, name, name, port, port, socketBinding, socketBinding, ssl, startTransport, startTransport
-
Constructor Details
-
RestServerConfigurationBuilder
public RestServerConfigurationBuilder()
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<RestServerConfiguration>
-
extendedHeaders
-
contextPath
-
maxContentLength
-
compressionLevel
-
encryption
-
addAll
public RestServerConfigurationBuilder addAll(List<io.netty.handler.codec.http.cors.CorsConfig> corsConfig) -
staticResources
-
authentication
-
cors
-
validate
public void validate()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<RestServerConfiguration>
- Overrides:
validate
in classProtocolServerConfigurationBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<RestServerConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<RestServerConfiguration>
- Overrides:
read
in classProtocolServerConfigurationBuilder<RestServerConfiguration,
RestServerConfigurationBuilder> - Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
build
Description copied from interface:ProtocolServerConfigurationChildBuilder
Builds a configuration object- Specified by:
build
in interfaceProtocolServerConfigurationChildBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
-
build
-
self
- Specified by:
self
in interfaceSelf<RestServerConfigurationBuilder>
-
defaultCacheName
Description copied from interface:ProtocolServerConfigurationChildBuilder
Specifies the cache to use as a default cache for the protocol- Specified by:
defaultCacheName
in interfaceProtocolServerConfigurationChildBuilder<RestServerConfiguration,
RestServerConfigurationBuilder> - Overrides:
defaultCacheName
in classProtocolServerConfigurationBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
-
idleTimeout
Description copied from interface:ProtocolServerConfigurationChildBuilder
Specifies the maximum time that connections from client will be kept open without activity- Specified by:
idleTimeout
in interfaceProtocolServerConfigurationChildBuilder<RestServerConfiguration,
RestServerConfigurationBuilder> - Overrides:
idleTimeout
in classProtocolServerConfigurationBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
-
tcpNoDelay
Description copied from interface:ProtocolServerConfigurationChildBuilder
Affects TCP NODELAY on the TCP stack. Defaults to enabled- Specified by:
tcpNoDelay
in interfaceProtocolServerConfigurationChildBuilder<RestServerConfiguration,
RestServerConfigurationBuilder> - Overrides:
tcpNoDelay
in classProtocolServerConfigurationBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
-
tcpKeepAlive
Description copied from interface:ProtocolServerConfigurationChildBuilder
Affects TCP KEEPALIVE on the TCP stack. Defaults to disabled- Specified by:
tcpKeepAlive
in interfaceProtocolServerConfigurationChildBuilder<RestServerConfiguration,
RestServerConfigurationBuilder> - Overrides:
tcpKeepAlive
in classProtocolServerConfigurationBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
-
recvBufSize
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the size of the receive buffer- Specified by:
recvBufSize
in interfaceProtocolServerConfigurationChildBuilder<RestServerConfiguration,
RestServerConfigurationBuilder> - Overrides:
recvBufSize
in classProtocolServerConfigurationBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
-
sendBufSize
Description copied from interface:ProtocolServerConfigurationChildBuilder
Sets the size of the send buffer- Specified by:
sendBufSize
in interfaceProtocolServerConfigurationChildBuilder<RestServerConfiguration,
RestServerConfigurationBuilder> - Overrides:
sendBufSize
in classProtocolServerConfigurationBuilder<RestServerConfiguration,
RestServerConfigurationBuilder>
-