Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Description

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

Code Sample

Code Block
languagejava
import org.joget.commons.util.HostManager;


String profileName = HostManager.getCurrentProfile();

Methods

getContextPath
public static String getContextPath()

Gets the context path of the HTTP request

getCurrentHost
public static String getCurrentHost()

Gets the current Host of HTTP request

getCurrentProfile
public static 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(String profile)

Sets the profile of current HTTP request.

This method is security protected in Cloud installation.

setCurrentHost
public static void setCurrentHost(String hostname)

Sets the Host of current HTTP request.

This method is security protected in Cloud installation.