Class RatpackDataServer

  • All Implemented Interfaces:
    DataServer

    public class RatpackDataServer
    extends AbstractDataServer<ratpack.handling.Context>
    A Ratpack-based web server that allows clients to access the DataApi.
    • Field Detail

      • handlerPostInit

        protected final ratpack.func.Action<ratpack.handling.Chain> handlerPostInit
      • handlerGetData

        protected final ratpack.func.Action<ratpack.handling.Chain> handlerGetData
      • handlerPostInput

        protected final ratpack.func.Action<ratpack.handling.Chain> handlerPostInput
      • handlerTexttermAssets

        protected final ratpack.func.Action<ratpack.handling.Chain> handlerTexttermAssets
      • handlerStaticAssets

        protected final ratpack.func.Action<ratpack.handling.Chain> handlerStaticAssets
      • portConfigurator

        protected final ratpack.func.Action<ratpack.server.ServerConfigBuilder> portConfigurator
      • baseDirConfigurator

        protected final ratpack.func.Action<ratpack.server.ServerConfigBuilder> baseDirConfigurator
    • Method Detail

      • getHandlers

        public java.util.List<ratpack.func.Action<ratpack.handling.Chain>> getHandlers()
      • getBindings

        public java.util.List<ratpack.func.Action<ratpack.guice.BindingsSpec>> getBindings()
      • getConfigurators

        public java.util.List<ratpack.func.Action<ratpack.server.ServerConfigBuilder>> getConfigurators()
      • getPort

        public int getPort()
      • init

        public void init()
      • getResourceContent

        protected java.util.Optional<java.lang.String> getResourceContent​(java.lang.String resourceName)
      • getUrlContent

        protected java.util.Optional<java.lang.String> getUrlContent​(java.net.URL url)
      • getId

        protected static java.lang.String getId​(ratpack.handling.Context ctx)