Class TestController


  • public class TestController
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TestController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletionStage<com.github.fmjsjx.libnetty.http.server.HttpResult> getErrors​(com.github.fmjsjx.libnetty.http.server.HttpRequestContext ctx, int code, java.lang.String clientIp, java.util.Optional<java.lang.String> userAgent)  
      java.util.concurrent.CompletableFuture<?> getJsons​(io.netty.handler.codec.http.QueryStringDecoder query, io.netty.channel.EventLoop eventLoop)  
      java.util.concurrent.CompletionStage<java.lang.Void> getNoContent​(io.netty.handler.codec.http.QueryStringDecoder query, java.util.concurrent.Executor executor)  
      java.util.concurrent.CompletionStage<java.lang.CharSequence> getOK​(io.netty.handler.codec.http.QueryStringDecoder query)  
      java.util.concurrent.CompletionStage<com.github.fmjsjx.libnetty.http.server.HttpResult> getTest​(com.github.fmjsjx.libnetty.http.server.HttpRequestContext ctx)  
      java.util.concurrent.CompletionStage<com.github.fmjsjx.libnetty.http.server.HttpResult> postEcho​(com.github.fmjsjx.libnetty.http.server.HttpRequestContext ctx, com.fasterxml.jackson.databind.JsonNode value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestController

        public TestController()
    • Method Detail

      • getTest

        public java.util.concurrent.CompletionStage<com.github.fmjsjx.libnetty.http.server.HttpResult> getTest​(com.github.fmjsjx.libnetty.http.server.HttpRequestContext ctx)
      • getErrors

        public java.util.concurrent.CompletionStage<com.github.fmjsjx.libnetty.http.server.HttpResult> getErrors​(com.github.fmjsjx.libnetty.http.server.HttpRequestContext ctx,
                                                                                                                 int code,
                                                                                                                 java.lang.String clientIp,
                                                                                                                 java.util.Optional<java.lang.String> userAgent)
      • getJsons

        public java.util.concurrent.CompletableFuture<?> getJsons​(io.netty.handler.codec.http.QueryStringDecoder query,
                                                                  io.netty.channel.EventLoop eventLoop)
      • postEcho

        public java.util.concurrent.CompletionStage<com.github.fmjsjx.libnetty.http.server.HttpResult> postEcho​(com.github.fmjsjx.libnetty.http.server.HttpRequestContext ctx,
                                                                                                                com.fasterxml.jackson.databind.JsonNode value)
      • getNoContent

        public java.util.concurrent.CompletionStage<java.lang.Void> getNoContent​(io.netty.handler.codec.http.QueryStringDecoder query,
                                                                                 java.util.concurrent.Executor executor)
      • getOK

        public java.util.concurrent.CompletionStage<java.lang.CharSequence> getOK​(io.netty.handler.codec.http.QueryStringDecoder query)