Class AbstractHTTPServer

    • Field Detail

      • httpServerLogger

        public org.slf4j.Logger httpServerLogger
      • httpLogger

        public org.slf4j.Logger httpLogger
      • defaultHttpDataFactory

        public io.netty.handler.codec.http.multipart.DefaultHttpDataFactory defaultHttpDataFactory
      • useTrace

        public java.lang.Boolean useTrace
      • asyncContextCompleteHandler

        public java.util.concurrent.ThreadPoolExecutor asyncContextCompleteHandler
      • processorTable

        protected final java.util.Map<java.lang.String,​Pair<HttpRequestProcessor,​java.util.concurrent.ThreadPoolExecutor>> processorTable
      • eventProcessorTable

        protected final java.util.Map<java.lang.String,​Pair<EventProcessor,​java.util.concurrent.ThreadPoolExecutor>> eventProcessorTable
    • Constructor Detail

      • AbstractHTTPServer

        public AbstractHTTPServer​(int port,
                                  boolean useTLS,
                                  EventMeshHTTPConfiguration eventMeshHttpConfiguration)
    • Method Detail

      • sendError

        public void sendError​(io.netty.channel.ChannelHandlerContext ctx,
                              io.netty.handler.codec.http.HttpResponseStatus status)
      • sendResponse

        public void sendResponse​(io.netty.channel.ChannelHandlerContext ctx,
                                 io.netty.handler.codec.http.DefaultFullHttpResponse response)
      • start

        public void start()
                   throws java.lang.Exception
        Overrides:
        start in class AbstractRemotingServer
        Throws:
        java.lang.Exception
      • init

        public void init​(java.lang.String threadPrefix)
                  throws java.lang.Exception
        Overrides:
        init in class AbstractRemotingServer
        Throws:
        java.lang.Exception
      • registerProcessor

        public void registerProcessor​(java.lang.Integer requestCode,
                                      HttpRequestProcessor processor,
                                      java.util.concurrent.ThreadPoolExecutor executor)
      • registerProcessor

        public void registerProcessor​(java.lang.String requestURI,
                                      EventProcessor processor,
                                      java.util.concurrent.ThreadPoolExecutor executor)