Description

ลักษณะ

Code Sample

ตัวอย่างโค้ด

import org.joget.commons.util.HostManager;

String profileName = HostManager.getCurrentProfile();

Methods

กระบวนการ

getContextPath
public static java.lang.String getContextPath()

Gets the context path of the HTTP request

รับเส้นทางบริบทของการร้องขอ HTTP

getCurrentHost
public static java.lang.String getCurrentHost()

Gets the current Host of HTTP request

รับโฮสต์ปัจจุบันของคำขอ HTTP

getCurrentProfile
public static java.lang.String getCurrentProfile()

Gets the current cloud profile of HTTP request

รับค่าโปรไฟล์คลาวด์ปัจจุบันของการร้องขอ HTTP

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.

ตั้งค่าโปรไฟล์ของคำขอ HTTP ปัจจุบัน

วิธีนี้ได้รับการป้องกันความปลอดภัยในการติดตั้ง Cloud

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

Sets the Host of current HTTP request.

This method is security protected in Cloud installation.

ตั้งค่าโฮสต์ของคำขอ HTTP ปัจจุบัน

วิธีนี้ได้รับการป้องกันความปลอดภัยในการติดตั้ง Cloud