Package org.infinispan.rest
Class RestServer
java.lang.Object
org.infinispan.server.core.AbstractProtocolServer<RestServerConfiguration>
org.infinispan.rest.RestServer
- All Implemented Interfaces:
org.infinispan.server.core.ProtocolServer<RestServerConfiguration>
public class RestServer
extends org.infinispan.server.core.AbstractProtocolServer<RestServerConfiguration>
REST Protocol Server.
- Author:
- Sebastian Ćaskawiec
-
Field Summary
Fields inherited from class org.infinispan.server.core.AbstractProtocolServer
adminEndpoint, cacheManager, configuration, server, transport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.group.ChannelMatcherList<io.netty.handler.codec.http.cors.CorsConfig>io.netty.channel.ChannelInboundHandlerio.netty.channel.ChannelOutboundHandlerio.netty.channel.ChannelInitializer<io.netty.channel.Channel>Returns Netty Channel Initializer for REST.intprotected voidvoidstop()Methods inherited from class org.infinispan.server.core.AbstractProtocolServer
defaultCacheName, getBlockingManager, getCacheManager, getConfiguration, getEnclosingProtocolServer, getExecutor, getHost, getName, getPort, getQualifiedName, getServerStateManager, getTransport, isCacheIgnored, isTransportEnabled, registerMetrics, registerServerMBeans, setEnclosingProtocolServer, setServerManagement, start, startCaches, startTransport, unregisterMetrics, unregisterServerMBeans
-
Constructor Details
-
RestServer
public RestServer()
-
-
Method Details
-
getEncoder
public io.netty.channel.ChannelOutboundHandler getEncoder() -
getDecoder
public io.netty.channel.ChannelInboundHandler getDecoder() -
getInitializer
public io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer() -
getChannelMatcher
public io.netty.channel.group.ChannelMatcher getChannelMatcher() -
getRestChannelInitializer
Returns Netty Channel Initializer for REST.- Returns:
- Netty Channel Initializer for REST.
-
stop
public void stop()- Specified by:
stopin interfaceorg.infinispan.server.core.ProtocolServer<RestServerConfiguration>- Overrides:
stopin classorg.infinispan.server.core.AbstractProtocolServer<RestServerConfiguration>
-
startInternal
protected void startInternal()- Overrides:
startInternalin classorg.infinispan.server.core.AbstractProtocolServer<RestServerConfiguration>
-
maxContentLength
public int maxContentLength() -
getCorsConfigs
-