public class AdminConfigWebServer extends VirtualComponentAdapter implements SelectionInterface
Modifier and Type | Field and Description |
---|---|
static String |
NOACCESS
The text for no access.
|
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES
Constructor and Description |
---|
AdminConfigWebServer()
Starts editing the dialog box.
|
AdminConfigWebServer(VirtualPanel vp)
Starts editing the dialog box.
|
Modifier and Type | Method and Description |
---|---|
boolean |
applySelection(String path,
VirtualControl control)
Applies the selection chosen (using the browse buttons) for directory/filename.
|
static boolean |
doRedirectHTTPS()
Checks the flag indicating HTTP should be redirected to HTTPS for normal requests.
|
static AdminConfigProtection |
getAccessControl(String id)
Gets an access control (protection) definition from an ID.
|
static Enumeration<String> |
getAccessControlIDs()
Gets an the list of available access control IDs (protections) as
a String enumeration.
|
static AdminConfigResource |
getCGIResource(String name)
Gets a CGI resource from a name.
|
static List<String> |
getClientCertAccessControlNames()
Gets a list of all the access control names (vector of strings in lower case)
used to load the client certificates by SSL.
|
static AdminConfigResource |
getFileOrCGIResource(String name)
Gets a file or CGI resource from a name (file before CGI).
|
static AdminConfigResource |
getFileResource(String name)
Gets a file resource from a name.
|
static byte[] |
getGlobalAnalyticsHTMLCode_bytes()
Gets the cached global analytics HTML code for each HTML resource (parsed or non-parsed).
|
static long |
getGlobalAnalyticsHTMLCode_lastModified(long lastModified)
Gets the last modified time for a resource that contains the global analytics HTML code.
|
static AdminConfigResource |
getResource(String name)
Gets the resource from a name.
|
static Enumeration<AdminConfigResource> |
getResources()
Gets all the resources.
|
static List<String> |
getRevokedCertAccessControlNames()
Gets a list of all the access control names (vector of strings in lower case)
used to load the revoked certificates by SSL.
|
boolean |
isSelectionValid(String path,
VirtualControl control,
VirtualPanel vpChooser)
Checks if a selection for a directory/filename is valid (for the browse buttons).
|
static void |
loadResources(IniFile serverIni)
Loads the resources from the 'resources.ini' file (with settings in 'resource_settings.ini' file).
|
void |
onAction(VirtualPanel vp,
String controlID)
Push buttons and menu items generates this event when selected.
|
void |
onCheckedChange(VirtualPanel vp,
VirtualControl control,
String controlID,
int state)
Check boxes and radio buttons generates this event when state is changed on the client side.
|
void |
onContentChanged(VirtualPanel vp,
VirtualControl control,
String controlID,
String text,
int line)
Combination boxes and spin buttons generates this message.
|
boolean |
onPanelClosing(VirtualPanel vp)
Called when the close button of a panel is pressed,
but before any other processing has been done.
|
void |
onPanelCreate(VirtualPanel vp)
Starts editing the dialog box.
|
void |
onSelectionChanged(VirtualPanel vp,
VirtualCListBox list,
String controlID,
int line,
int column)
List boxes generates this message.
|
void |
performWebServerRestart(VirtualPanel vp)
Restarts the web server.
|
String |
retreiveSelection(VirtualControl control)
Gets the selection of a directory/filename for the browse buttons.
|
onAction, onAction, onContentChanged, onControlEvent, onFocusGained, onFocusLost, onMenuAction, onPropertyChange
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPageActivated, onPanelClose, onPanelDestroy
public static final String NOACCESS
public AdminConfigWebServer()
public AdminConfigWebServer(VirtualPanel vp)
public static void loadResources(IniFile serverIni) throws IOException
serverIni
- the "server.ini" file instance.IOException
- when an error occurs.public static byte[] getGlobalAnalyticsHTMLCode_bytes()
public static long getGlobalAnalyticsHTMLCode_lastModified(long lastModified)
lastModified
- The last modified timestamp of the original resource.public static boolean doRedirectHTTPS()
public static List<String> getClientCertAccessControlNames()
public static List<String> getRevokedCertAccessControlNames()
public static Enumeration<AdminConfigResource> getResources()
public static AdminConfigResource getResource(String name)
public static AdminConfigResource getFileResource(String name)
public static AdminConfigResource getFileOrCGIResource(String name)
public static AdminConfigResource getCGIResource(String name)
public void onPanelCreate(VirtualPanel vp)
onPanelCreate
in interface VirtualPanelListener
onPanelCreate
in class VirtualPanelAdapter
vp
- The panel issuing the event.public void onContentChanged(VirtualPanel vp, VirtualControl control, String controlID, String text, int line)
line
parameter is set to -1 if no line is selected.onContentChanged
in interface VirtualComponentListener
onContentChanged
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.text
- The control text contents.line
- The selected line, or -1 for none.public void onSelectionChanged(VirtualPanel vp, VirtualCListBox list, String controlID, int line, int column)
line
and column
parameter are individually set to -1 if no line or column is selected respectively.onSelectionChanged
in interface VirtualComponentListener
onSelectionChanged
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.list
- The list box control issuing the event.controlID
- The control ID issuing the event.line
- The selected line, or -1 for none.column
- The selected column, or -1 for none.public boolean onPanelClosing(VirtualPanel vp)
onPanelClose
is called.onPanelClosing
in interface VirtualPanelListener
onPanelClosing
in class VirtualPanelAdapter
vp
- The panel issuing the event.VirtualPanelListener.onPanelClose(se.entra.phantom.server.VirtualPanel)
public void performWebServerRestart(VirtualPanel vp)
public void onAction(VirtualPanel vp, String controlID)
onAction
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.controlID
- The control ID issuing the event.public void onCheckedChange(VirtualPanel vp, VirtualControl control, String controlID, int state)
The state is 0=unchecked, 1=checked and 2=third state (only for check boxes, or PhantomCCheckBox.STATE_UNDETERMINED).
onCheckedChange
in interface VirtualComponentListener
onCheckedChange
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.state
- State (0=unchecked, 1=checked and 2=third state [only for check boxes]).public String retreiveSelection(VirtualControl control)
retreiveSelection
in interface SelectionInterface
public boolean isSelectionValid(String path, VirtualControl control, VirtualPanel vpChooser)
isSelectionValid
in interface SelectionInterface
path
- The new path to insert.control
- The VirtualControl to insert it into.vpChooser
- The chooser dialogs virtual panel. This is passed along to enable the class
implementing this interface to create a dialog for a message, with the chooser
dialog as its parent.public boolean applySelection(String path, VirtualControl control)
applySelection
in interface SelectionInterface
path
- The new path to insert.control
- The VirtualControl to insert it into.public static Enumeration<String> getAccessControlIDs()
public static AdminConfigProtection getAccessControl(String id)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.