Package: io.vertx.groovy.ext.web.handler

## [Groovy] Class VirtualHostHandler

- io.vertx.groovy.ext.web.handler.VirtualHostHandler

- All Implemented Interfaces and Traits:
    io.vertx.core.Handler

      @groovy.transform.CompileStatic
      class VirtualHostHandler
      extends java.lang.Object

  Handler that will filter requests based on the request Host name.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `VirtualHostHandler (java.lang.Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `static VirtualHostHandler` | `create(java.lang.String hostname, io.vertx.core.Handler<RoutingContext> handler)` Create a handler
    `java.lang.Object` | `getDelegate()`
    `void` | `handle(RoutingContext arg0)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### VirtualHostHandler(java.lang.Object delegate)

  - ### Method Detail

    - #### static VirtualHostHandler create(java.lang.String hostname, io.vertx.core.Handler<RoutingContext> handler)

      Create a handler

      Returns:
        the handler
      Parameters:
        hostname
        handler

    - #### java.lang.Object getDelegate()

    - #### void handle(RoutingContext arg0)