Table of Contents |
---|
Description
Thai |
---|
ลักษณะ |
- org.joget.commons.util.HostManager
- Under wflow-commons module
- Utility methods used by the system to manage cloud profile
Code Sample
Thai |
---|
ตัวอย่างโค้ด |
Code Block | ||
---|---|---|
| ||
import org.joget.commons.util.HostManager; String profileName = HostManager.getCurrentProfile(); |
Methods
Thai |
---|
กระบวนการ |
getContextPath
public static java.lang.String getContextPath()
English |
---|
Gets the context path of the HTTP request |
Thai |
---|
รับเส้นทางบริบทของการร้องขอ HTTP |
getCurrentHost
public static java.lang.String getCurrentHost()
Gets the current Host of HTTP request
Thai |
---|
รับโฮสต์ปัจจุบันของคำขอ HTTP |
getCurrentProfile
public static java.lang.String getCurrentProfile()
Gets the current cloud profile of HTTP request
Thai |
---|
รับค่าโปรไฟล์คลาวด์ปัจจุบันของการร้องขอ HTTP |
isVirtualHostEnabled
public static boolean isVirtualHostEnabled()
Flag to indicate it is a Cloud installation
Thai |
---|
ตั้งค่าสถานะเพื่อระบุว่าเป็นการติดตั้งแบบคลาวด์ |
setCurrentProfile
public static void setCurrentProfile(java.lang.String profile)
...
This method is security protected in Cloud installation.
Thai |
---|
ตั้งค่าโปรไฟล์ของคำขอ HTTP ปัจจุบัน วิธีนี้ได้รับการป้องกันความปลอดภัยในการติดตั้ง Cloud |
setCurrentHost
public static void setCurrentHost(java.lang.String hostname)
...
This method is security protected in Cloud installation.
Thai |
---|
ตั้งค่าโฮสต์ของคำขอ HTTP ปัจจุบัน วิธีนี้ได้รับการป้องกันความปลอดภัยในการติดตั้ง Cloud |