Package DE_EPAGES::WebInterface::API::Config
This module contains all functions needed to perform the communication with the web interface.
@EXPORT_OK |
Functions
- GetAllowedCookies
- GetMessageCenter
- GetMessageCenters
- GetRequestRouterMonitors
- IsClientAllowed
- IsCookieAllowed
- WebInterfaceConfig
- WebInterfaceConfigSectionIsHost
GetAllowedCookies
Read the WebInterface.conf and find COOKIES at GLOBAL section.
Syntax |
@CookieNames = GetAllowedCookies(); |
Return |
|
GetMessageCenter
Read the WebInterface.conf and find my MessageCenter Ip and port.
Syntax |
($MCIPAddress, $MCPort) = GetMessageCenter($IPAddress); |
Input |
|
Return |
|
GetMessageCenters
Read the WebInterface.conf and find all MessageCenter Ip and port.
Syntax |
$aMCs = GetMessageCenters(); |
Return |
|
GetRequestRouterMonitors
Read the WebInterface.conf and find all RequestRouter IP addresses and monitor ports.
Syntax |
$aMonitors = GetMessageCenters(); |
Return |
|
IsClientAllowed
Read the WebInterface.conf and look if client of ip is allowed to connect.
Syntax |
$IsAllowed = IsClientAllowed($IPAddress); |
Input |
|
Return |
|
IsCookieAllowed
Read the WebInterface.conf and find COOKIES at GLOBAL section, look if cookie name exists in comma separated list.
Syntax |
$IsAllowed = IsCookieAllowed($CookieName); $IsAllowed = IsCookieAllowed('SessionID'); |
Input |
|
Return |
|
WebInterfaceConfig
get ini object of the WebInterface.conf
Syntax |
$IniConfig = WebInterfaceConfig(); |
Return |
|
WebInterfaceConfigSectionIsHost
checks if WebInterface.conf section is a hostname/ip address
Syntax |
$IsHost = WebInterfaceConfigSectionIsHost($Section); |
Input |
|
Return |
|