Versions Compared

Key

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

...

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


String profileName = HostManager.getCurrentProfile();

...

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()

...

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

Sets the profile of current HTTP request.

...

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

Sets the Host of current HTTP request.

...