Class BodyTransformer

  • All Implemented Interfaces:
    io.vertx.lang.rx.RxDelegate

    public class BodyTransformer
    extends Object
    implements io.vertx.lang.rx.RxDelegate
    A synchronous function that transforms an HTTP body entity.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<BodyTransformer> __TYPE_ARG
    • Constructor Detail

      • BodyTransformer

        public BodyTransformer​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDelegate

        public BodyTransformer getDelegate()
        Specified by:
        getDelegate in interface io.vertx.lang.rx.RxDelegate
      • consumes

        public boolean consumes​(MediaType mediaType)
        Parameters:
        mediaType -
        Returns:
        whether this transformer consumes the mediaType, mediaType can be null when the HTTP head does not present a body, the default implementation returns true
      • produces

        public MediaType produces​(MediaType mediaType)
        Parameters:
        mediaType -
        Returns:
        the media type produced by this transformer, the default implementation returns the same media type