Package com.enonic.xp.web.vhost

## Class VirtualHostHelper

- java.lang.Object
- - com.enonic.xp.web.vhost.VirtualHostHelper

-     @PublicApi
      public final class VirtualHostHelper
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `VirtualHostHelper()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static VirtualHost` | `getVirtualHost​(javax.servlet.http.HttpServletRequest req)` |
    `static boolean` | `hasVirtualHost​(javax.servlet.http.HttpServletRequest req)` | Deprecated.
    `static void` | `setVirtualHost​(javax.servlet.http.HttpServletRequest req, VirtualHost vhost)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VirtualHostHelper

          public VirtualHostHelper()

  - ### Method Detail

    - #### hasVirtualHost

          @Deprecated
          public static boolean hasVirtualHost​(javax.servlet.http.HttpServletRequest req)

      Deprecated.

    - #### getVirtualHost

          public static VirtualHost getVirtualHost​(javax.servlet.http.HttpServletRequest req)

    - #### setVirtualHost

          public static void setVirtualHost​(javax.servlet.http.HttpServletRequest req,
                                            VirtualHost vhost)