Come join us on November 27-29, 2018 at the Gartner Application Strategies & Solutions Summit 2018 in Las Vegas, USA.

Skip to end of metadata
Go to start of metadata

Description

  • org.joget.commons.util.HostManager
  • Under wflow-commons module
  • Utility methods used by the system to manage cloud profile

Code Sample

Methods

getContextPath
public static java.lang.String getContextPath()

Gets the context path of the HTTP request

getCurrentHost
public static java.lang.String getCurrentHost()

Gets the current Host of HTTP request

getCurrentProfile
public static java.lang.String getCurrentProfile()

Gets the current cloud profile of HTTP request

isVirtualHostEnabled
public static boolean isVirtualHostEnabled()

Flag to indicate it is a Cloud installation

setCurrentProfile
public static void setCurrentProfile(java.lang.String profile)

Sets the profile of current HTTP request.

This method is security protected in Cloud installation.

setCurrentHost
public static void setCurrentHost(java.lang.String hostname)

Sets the Host of current HTTP request.

This method is security protected in Cloud installation.

  • No labels