Class RestServer

All Implemented Interfaces:
AutoCloseable, ProtocolServer<RestServerConfiguration>

public class RestServer extends AbstractProtocolServer<RestServerConfiguration>
REST Protocol Server.
Author:
Sebastian Łaskawiec
  • Constructor Details Link icon

    • RestServer Link icon

      public RestServer()
  • Method Details Link icon

    • getEncoder Link icon

      public io.netty.channel.ChannelOutboundHandler getEncoder()
      Description copied from interface: ProtocolServer
      Gets 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 Link icon

      public io.netty.channel.ChannelInboundHandler getDecoder()
      Description copied from interface: ProtocolServer
      Gets the decoder for this protocol server. The decoder is responsible for reading client requests. This method cannot return null.
    • getInitializer Link icon

      public io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer()
      Description copied from interface: ProtocolServer
      Returns a pipeline factory
    • getChannelMatcher Link icon

      public io.netty.channel.group.ChannelMatcher getChannelMatcher()
      Description copied from interface: ProtocolServer
      Returns a ChannelMatcher which matches channels which belong to this protocol server
    • getRestChannelInitializer Link icon

      public RestChannelInitializer getRestChannelInitializer()
      Returns Netty Channel Initializer for REST.
      Returns:
      Netty Channel Initializer for REST.
    • getInvocationHelper Link icon

      public InvocationHelper getInvocationHelper()
    • stop Link icon

      public void stop()
      Description copied from interface: ProtocolServer
      Stops the server.
      Specified by:
      stop in interface ProtocolServer<RestServerConfiguration>
      Overrides:
      stop in class AbstractProtocolServer<RestServerConfiguration>
    • startInternal Link icon

      protected void startInternal()
      Overrides:
      startInternal in class AbstractProtocolServer<RestServerConfiguration>
    • maxContentLength Link icon

      public int maxContentLength()
    • getCorsConfigs Link icon

      public List<io.netty.handler.codec.http.cors.CorsConfig> getCorsConfigs()
    • installDetector Link icon

      public void installDetector(io.netty.channel.Channel ch)
      Description copied from interface: ProtocolServer
      Installs a protocol detector on the channel
      Parameters:
      ch -