Class AbstractServerHttpHandler

    • Field Detail

      • httpServer

        protected final HttpServer httpServer
    • Constructor Detail

      • AbstractServerHttpHandler

        public AbstractServerHttpHandler​(HttpServer httpServer)
    • Method Detail

      • parseRequestPayload

        protected String parseRequestPayload​(io.undertow.server.HttpServerExchange e)
      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
      • isRequireAuthentication

        public boolean isRequireAuthentication()
        Returns true if the handler require authentication to be executed, any valid user. False means the handler can be executed without authentication.
      • mustExecuteOnWorkerThread

        protected boolean mustExecuteOnWorkerThread()
        Returns true if the handler is reading the payload in the request. In this case, the execution is delegated to the worker thread.
      • encodeError

        protected String encodeError​(String message)
      • getQueryParameter

        protected String getQueryParameter​(io.undertow.server.HttpServerExchange exchange,
                                           String name)
      • getQueryParameter

        protected String getQueryParameter​(io.undertow.server.HttpServerExchange exchange,
                                           String name,
                                           String defaultValue)