Package org.infinispan.rest
Class RestServer
java.lang.Object
org.infinispan.server.core.AbstractProtocolServer<RestServerConfiguration>
org.infinispan.rest.RestServer
- All Implemented Interfaces:
ProtocolServer<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.ChannelMatcherReturns aChannelMatcherwhich matches channels which belong to this protocol serverList<io.netty.handler.codec.http.cors.CorsConfig>io.netty.channel.ChannelInboundHandlerGets the decoder for this protocol server.io.netty.channel.ChannelOutboundHandlerGets the encoder for this protocol server.io.netty.channel.ChannelInitializer<io.netty.channel.Channel>Returns a pipeline factoryReturns Netty Channel Initializer for REST.intvoidsetEnclosingProtocolServer(ProtocolServer<?> enclosingProtocolServer) Sets the enclosingProtocolServer.protected voidvoidstop()Stops the server.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, setServerManagement, start, startCaches, startTransport, unregisterMetrics, unregisterServerMBeans
-
Constructor Details
-
RestServer
public RestServer()
-
-
Method Details
-
getEncoder
public io.netty.channel.ChannelOutboundHandler getEncoder()Description copied from interface:ProtocolServerGets the encoder for this protocol server. The encoder is responsible for writing back common header responses back to client. This method can return null if the server has no encoder. You can find an example of the server that has no encoder in the Memcached server. -
getDecoder
public io.netty.channel.ChannelInboundHandler getDecoder()Description copied from interface:ProtocolServerGets the decoder for this protocol server. The decoder is responsible for reading client requests. This method cannot return null. -
getInitializer
public io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer()Description copied from interface:ProtocolServerReturns a pipeline factory -
getChannelMatcher
public io.netty.channel.group.ChannelMatcher getChannelMatcher()Description copied from interface:ProtocolServerReturns aChannelMatcherwhich matches channels which belong to this protocol server -
getRestChannelInitializer
Returns Netty Channel Initializer for REST.- Returns:
- Netty Channel Initializer for REST.
-
getInvocationHelper
-
stop
public void stop()Description copied from interface:ProtocolServerStops the server.- Specified by:
stopin interfaceProtocolServer<RestServerConfiguration>- Overrides:
stopin classAbstractProtocolServer<RestServerConfiguration>
-
startInternal
protected void startInternal()- Overrides:
startInternalin classAbstractProtocolServer<RestServerConfiguration>
-
maxContentLength
public int maxContentLength() -
getCorsConfigs
-
setEnclosingProtocolServer
Description copied from interface:ProtocolServerSets the enclosingProtocolServer. Used by the single port server- Specified by:
setEnclosingProtocolServerin interfaceProtocolServer<RestServerConfiguration>- Overrides:
setEnclosingProtocolServerin classAbstractProtocolServer<RestServerConfiguration>
-