ลักษณะ |
ตัวอย่างโค้ด |
import org.joget.commons.util.HostManager; String profileName = HostManager.getCurrentProfile(); |
กระบวนการ |
public static java.lang.String getContextPath()
Gets the context path of the HTTP request |
รับเส้นทางบริบทของการร้องขอ HTTP |
public static java.lang.String getCurrentHost()
Gets the current Host of HTTP request
รับโฮสต์ปัจจุบันของคำขอ HTTP |
public static java.lang.String getCurrentProfile()
Gets the current cloud profile of HTTP request
รับค่าโปรไฟล์คลาวด์ปัจจุบันของการร้องขอ HTTP |
public static boolean isVirtualHostEnabled()
Flag to indicate it is a Cloud installation
ตั้งค่าสถานะเพื่อระบุว่าเป็นการติดตั้งแบบคลาวด์ |
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 |
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 |