Class PackingHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<io.vertx.core.buffer.Buffer>

    public class PackingHandler
    extends java.lang.Object
    implements io.vertx.core.Handler<io.vertx.core.buffer.Buffer>
    Extract requests from a packing request and forward them to a handler.
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PACK_HEADER  
    • Constructor Summary

      Constructors 
      Constructor Description
      PackingHandler​(io.vertx.core.http.HttpServerRequest request, io.vertx.core.Handler<io.vertx.core.buffer.Buffer> nextHandler)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(io.vertx.core.buffer.Buffer event)  
      static boolean isPacked​(io.vertx.core.http.HttpServerRequest request)  
      • Methods inherited from class java.lang.Object

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

      • PackingHandler

        public PackingHandler​(io.vertx.core.http.HttpServerRequest request,
                              io.vertx.core.Handler<io.vertx.core.buffer.Buffer> nextHandler)
        Parameters:
        request - request
        nextHandler - the handle to forward the unpacked
    • Method Detail

      • isPacked

        public static boolean isPacked​(io.vertx.core.http.HttpServerRequest request)
      • handle

        public void handle​(io.vertx.core.buffer.Buffer event)
        Specified by:
        handle in interface io.vertx.core.Handler<io.vertx.core.buffer.Buffer>