Class MethodOverrideHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.MethodOverrideHandler
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>

public class MethodOverrideHandler extends Object implements io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>, MutinyDelegate

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Victor Quezado
See Also:
  • MethodOverrideHandler
  • Field Details

  • Constructor Details

    • MethodOverrideHandler

      public MethodOverrideHandler(io.vertx.ext.web.handler.MethodOverrideHandler delegate)
      Create a new instance of MethodOverrideHandler delegating to the given (non-null) instance of MethodOverrideHandler.
    • MethodOverrideHandler

      public MethodOverrideHandler(Object delegate)
  • Method Details

    • accept

      public void accept(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      accept in interface Consumer<RoutingContext>
      Specified by:
      accept in interface PlatformHandler
    • handle

      public void handle(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
      Specified by:
      handle in interface PlatformHandler
    • getDelegate

      public io.vertx.ext.web.handler.MethodOverrideHandler getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Specified by:
      getDelegate in interface PlatformHandler
      Returns:
      the delegate instance
    • create

      public static MethodOverrideHandler create()
      Create a X-HTTP-METHOD-OVERRIDE handler with safe downgrade of methods
      Returns:
      the X-HTTP-METHOD-OVERRIDE handler
    • create

      public static MethodOverrideHandler create(boolean useSafeDowngrade)
      Create a X-HTTP-METHOD-OVERRIDE handler
      Parameters:
      useSafeDowngrade - if set to true, the method overriding will not happen if the overridden method is more idempotent or safer than the overriding method.
      Returns:
      the X-HTTP-METHOD-OVERRIDE handler
    • newInstance

      public static MethodOverrideHandler newInstance(io.vertx.ext.web.handler.MethodOverrideHandler delegate)
      Creates a new instance of the MethodOverrideHandler.
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object