Class HttpResponseUtils


  • public class HttpResponseUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.netty.handler.codec.http.HttpResponse createInternalServerError()  
      static io.netty.handler.codec.http.HttpResponse createNotFound()  
      static io.netty.handler.codec.http.HttpResponse createSuccess()  
      static io.netty.handler.codec.http.HttpResponse setResponseJsonBody​(java.lang.String body, io.netty.channel.ChannelHandlerContext ctx)  
      static io.netty.handler.codec.http.HttpResponse setResponseTextBody​(java.lang.String body, io.netty.channel.ChannelHandlerContext ctx)  
      • Methods inherited from class java.lang.Object

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

      • HttpResponseUtils

        public HttpResponseUtils()
    • Method Detail

      • createSuccess

        public static io.netty.handler.codec.http.HttpResponse createSuccess()
      • createNotFound

        public static io.netty.handler.codec.http.HttpResponse createNotFound()
      • createInternalServerError

        public static io.netty.handler.codec.http.HttpResponse createInternalServerError()
      • setResponseJsonBody

        public static io.netty.handler.codec.http.HttpResponse setResponseJsonBody​(java.lang.String body,
                                                                                   io.netty.channel.ChannelHandlerContext ctx)
      • setResponseTextBody

        public static io.netty.handler.codec.http.HttpResponse setResponseTextBody​(java.lang.String body,
                                                                                   io.netty.channel.ChannelHandlerContext ctx)