Interface HttpEncoder<C,​R>

  • All Known Implementing Classes:
    TextCodec

    public interface HttpEncoder<C,​R>
    Write a Java object as HTTP response body.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void encode​(io.undertow.server.HttpServerExchange exchange, C ctx, R value)  
      static byte[] receiveFullBytes​(io.undertow.server.HttpServerExchange exchange, java.nio.charset.Charset charset)  
      static java.lang.String receiveFullString​(io.undertow.server.HttpServerExchange exchange, java.nio.charset.Charset charset)  
    • Method Detail

      • encode

        void encode​(io.undertow.server.HttpServerExchange exchange,
                    C ctx,
                    R value)
      • receiveFullString

        static java.lang.String receiveFullString​(io.undertow.server.HttpServerExchange exchange,
                                                  java.nio.charset.Charset charset)
                                           throws HttpStatusException
        Throws:
        HttpStatusException
      • receiveFullBytes

        static byte[] receiveFullBytes​(io.undertow.server.HttpServerExchange exchange,
                                       java.nio.charset.Charset charset)
                                throws HttpStatusException
        Throws:
        HttpStatusException