public class HtmlApplication extends ClientCommunicationAdapter implements ClientWorker.ClientWorkerInterface, WebApplicationInterface, NetPhantomConstants, WorkerCallbackInterface
Modifier and Type | Field and Description |
---|---|
static int |
PROCESS_FORMSUBMIT
Call submit button.
|
static int |
PROCESS_FORMUPDATE
Update form data (controls).
|
static int |
PROCESS_NONE
No state or state not activated.
|
static int |
PROCESS_WAITSTABLE
Wait for stable host/panel situation before return of a html
resource.
|
ACTION_CLOSEWINDOW, ACTION_CONTROL, ACTION_HOSTKEY, ACTION_MENU, ACTION_NONE, ACTION_NOTEBOOKPAGE, ACTION_POPUPMENU, CC_BACKGROUND, CC_BOTH, CC_FOREGROUND, CC_NONE, CLIPBOARD_GET, CLIPBOARD_SET, DATEF_DMY, DATEF_MDY, DATEF_SYSTEM, DATEF_YMD, DDE_ADVISE, DDE_EXECUTE, DDE_INITIATE, DDE_POKE, DDE_REQUEST, DDE_TERMINATE, DDE_UNADVISE, DDE_UPDATE, DDEVAR_DISABLE, DDEVAR_ENABLE, DDEVAR_REQUEST, DDEVAR_SET, DDEVAR_VALIDATE, EFT_AMOUNT, EFT_DATE, EFT_DATEAMOUNT, EFT_NORMAL, EFT_PASSWORD, EVENT_CHAR, EVENT_CHECK, EVENT_CLICK, EVENT_COMMAND, EVENT_DBLCLICK, EVENT_DDECONNECTION, EVENT_DDEDATA, EVENT_DDEERROR, EVENT_DDEEXECUTE, EVENT_DDEINVALIDATE, EVENT_DDEPOKE, EVENT_DDEREQUEST, EVENT_DEFOCUS, EVENT_FOCUS, EVENT_PAGEDOWN, EVENT_PAGEUP, EVENT_SELECT, EVENT_UNKNOWN, EVENT_USERCHANGE, EXTENDEDINFO_IDS_TO_CLIENT, FOCUSTYPE_CLIENTTARGET, FOCUSTYPE_CONTROL, FOCUSTYPE_NONE, ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_WARNING, J_AUTO, J_BOTTOM, J_BOTTOMLEFT, J_BOTTOMRIGHT, J_CENTER, J_LEFT, J_RIGHT, J_TOP, J_TOPLEFT, J_TOPRIGHT, MAX_PANELS_PER_SESSION, MAX_SESSIONS, 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, MS_MOVE, MS_NONE, MS_SIZE, NETPHANTOM_COPYRIGHT, NETPHANTOM_COPYRIGHT2, NETPHANTOM_VERSION, OBJEVENT_CHECK, OBJEVENT_CLICK, OBJEVENT_DBLCLICK, OBJEVENT_DEFOCUS, OBJEVENT_FOCUS, OBJEVENT_SELECT, OBJEVENT_USERCHANGE, PANELCREATE_APPPANEL, PANELCREATE_DANGLINGPANEL, PANELCREATE_DLGFRAME, PANELCREATE_EXTENDEDINFO, PANELCREATE_ICON, PANELCREATE_INDIVIDUALSIZE, PANELCREATE_POPUP, REPLYTYPE_CLIENTEXECUTE, REPLYTYPE_CLIPBOARD, REPLYTYPE_DDE, REPLYTYPE_FFONTLIST, REPLYTYPE_MESSAGEBOX, REPLYTYPE_REPORT, REPLYTYPE_SAVEPROPS, REPLYTYPE_TERMMARK, RPRT_CANCELPRINTJOB, RPRT_CLOSEPRINTJOB, RPRT_CONTPRINTJOB, RPRT_OPENPRINTJOB, RPRT_PRINTJOBCANCLD, RPRT_PRINTJOBCLOSED, RPRT_PRINTJOBCONT, RPRT_PRINTJOBOPENED, RPRT_PRINTJOBSTARTED, RPRT_STARTPRINTJOB, SELMODE_NORMAL, SELMODE_NOTALLOWED, SELMODE_REQUIRED, SELTYPE_MULTIPLE, SELTYPE_SINGLE, SEPARATOR, SEPARATORCHAR, TRANS_APPLICATIONCHANGE, TRANS_CALLOBJECT, TRANS_CANCELEXIT, TRANS_CLEARLOCK, TRANS_CLIENTEXECUTE, TRANS_CLIENTJARS, TRANS_CLIENTTEXTTABLE, TRANS_CLIENTUPDATED, TRANS_CLIENTUPDATEDNOLOCK, TRANS_CLIPBOARD, TRANS_CLIPBOARDCOMPONENT, TRANS_CLOSETERMINALWINDOW, TRANS_CONNECTIONREFUSED, TRANS_COUNTRYINFO, TRANS_CREATEPANEL, TRANS_CREATESESSION, TRANS_DDE, TRANS_DDEEVENT, TRANS_DDEEVENTREPLY, TRANS_DDEVAREVENT, TRANS_DISPLAYHELP, TRANS_DISPLAYTERMINAL, TRANS_DISPLAYTOOLTIPS, TRANS_ENDCONVERSATION, TRANS_EXIT, TRANS_FONTSUBSTITUTION, TRANS_HOSTCOLORTABLE, TRANS_HOSTPRINT, TRANS_HWND, TRANS_INACTIVESESSION, TRANS_INITIATE, TRANS_KEEPALIVE, TRANS_LOCALE, TRANS_LOGEVENT, TRANS_MESSAGEBOX, TRANS_MESSAGEBOXWITHREPLY, TRANS_MODALREPLY, TRANS_MULTTERM, TRANS_PING, TRANS_PRINTCOMPONENT, TRANS_PRINTPANEL, TRANS_PRINTREPORT, TRANS_PRTWINKEY, TRANS_RECONNECT, TRANS_REDIRECTION, TRANS_REMOVEPANELATLEVEL, TRANS_REMOVETERMINAL, TRANS_RENEGOTIATESSL, TRANS_REQUESTHELP, TRANS_RESOURCEURL, TRANS_SELECTSESSION, TRANS_SESSIONACTIVE, TRANS_SESSIONSELECTED, TRANS_SETCOLORS, TRANS_SETFOCUS, TRANS_SETLOCK, TRANS_SETPANELNESTLEVEL, TRANS_SETUPPARAMS, TRANS_SHOWDOCUMENT, TRANS_SOCKET, TRANS_SOUNDALARM, TRANS_STARTUPINFO, TRANS_STOPSESSION, TRANS_TERMINALDATA, TRANS_TERMINALUPDATE, TRANS_TERMINALWINDOW, TRANS_TERMWINTEXT, TRANS_UPDATEAPPLICATION, TRANS_UPDATEPANEL, TRANS_USEREXITPRTKEY, TRANSACTION_VERSION, TS_CLOSE, TS_DATA, TS_ERROR, TS_OPEN, VSIGN_MINUS, VSIGN_NONE, VSIGN_PLUSMINUS, YEARF_6DIG, YEARF_8DIG, YEARF_EXP8
Constructor and Description |
---|
HtmlApplication() |
Modifier and Type | Method and Description |
---|---|
String |
convertHtmlFileName(String htmlFile)
Convert HTML file name for frames.
|
void |
createNewSession(HttpSession httpSession)
Returns an error document with the URI to request.
|
void |
createNewSession(HttpSession httpSession,
String pgmParams,
GlobalVariable globVars)
Returns an error document with the URI to request.
|
String |
getHtmlName(String hashCode)
Get HTML file name.
|
HtmlResource |
getHtmlResource(HttpSession httpSession,
String htmlFile)
Get HTML Resource.
|
VirtualMessageBox |
getMessageBox()
Access method for current messagebox.
|
String |
getPanelHtmlName()
Access method for HTML current panel name.
|
String |
getResourceName()
Access method for resource name.
|
boolean |
isClientTerminalDisplayed(ClientSession clientSession)
Checks if the client is displaying the terminal window.
|
void |
mainThreadCreateNewSession(HttpSession httpSession,
ClientSession cs)
Returns an error document with the URI to request.
|
HtmlResource |
mainThreadProcessAction(HttpSession httpSession,
String uriParams,
String linkData)
This method should return an HtmlResourceData instance with the document
that should be sent to the client.
|
void |
onClientChange(ClientSession clientSession)
Notifies of a host change.
|
void |
onClientDispose(ClientSession clientSession)
Notifies of a client session disposal.
|
void |
onClientInactivity(ClientSession clientSession)
Client inactive.
|
void |
onDisplayTerminal(ClientSession clientSession)
Display terminal.
|
boolean |
onExitApplication(ClientSession clientSession)
Application exit.
|
void |
onHostChange(ClientSession clientSession)
Notifies of a host change.
|
void |
onHostSessionFailure(ClientSession clientSession,
String description)
Host failure.
|
void |
onMessageBox(VirtualMessageBox vmb)
Message box event, set messagebox as current panel and notify waiting object.
|
void |
onRemoveTerminal(ClientSession clientSession)
Terminal screen removed, Should not happen because we do dispose when onDisplayTerminal is called.
|
void |
onSoundAlarm(ClientSession clientSession)
Sound alarm on the client.
|
HtmlResource |
processAction(HttpSession httpSession,
String uriParams,
String linkData)
This method should return an HtmlResourceData instance with the document
that should be sent to the client.
|
Object |
processCallback(Object parameter)
Callback method from worker.
|
void |
processWorkerEvent(ClientSessionInterface clientSession)
Main callback method to handle Http client formdata update.
|
void |
setFrameData(String framePanelConnection,
String startupFile)
Set frame and main file names.
|
void |
setFrameData(String framePanelConnection,
String startupFile,
String emptyFile)
Set frame and main file names.
|
public static final int PROCESS_NONE
public static final int PROCESS_FORMUPDATE
public static final int PROCESS_FORMSUBMIT
public static final int PROCESS_WAITSTABLE
public HtmlResource processAction(HttpSession httpSession, String uriParams, String linkData) throws IOException
The current directory of the CGI for the client agent is defined in the
HttpSession
class instance.
IOException
- for IO errors.public void createNewSession(HttpSession httpSession) throws IOException
This method posts a HTMLAPPLICATION event to the main thread that will callback the mainThreadCreateNewSession method. The return value is processed as a modal return code and could be of type Throwable.
IOException
- If the new client session cannot be created.public void createNewSession(HttpSession httpSession, String pgmParams, GlobalVariable globVars) throws IOException
This method posts a HTMLAPPLICATION event to the main thread that will callback the mainThreadCreateNewSession method. The return value is processed as a modal return code and could be of type Throwable.
IOException
- If the new client session cannot be created.public Object processCallback(Object parameter)
processCallback
in interface WorkerCallbackInterface
public HtmlResource mainThreadProcessAction(HttpSession httpSession, String uriParams, String linkData) throws IOException
The current directory of the CGI for the client agent is defined in the
HttpSession
class instance.
IOException
- for IO errors.public void mainThreadCreateNewSession(HttpSession httpSession, ClientSession cs) throws IOException
IOException
public String convertHtmlFileName(String htmlFile)
public HtmlResource getHtmlResource(HttpSession httpSession, String htmlFile) throws IOException
IOException
public void processWorkerEvent(ClientSessionInterface clientSession)
processWorkerEvent
in interface ClientWorker.ClientWorkerInterface
public void onHostChange(ClientSession clientSession)
onHostChange
in interface ClientCommunicationListener
onHostChange
in class ClientCommunicationAdapter
public void onClientChange(ClientSession clientSession)
onClientChange
in interface ClientCommunicationListener
onClientChange
in class ClientCommunicationAdapter
public void onHostSessionFailure(ClientSession clientSession, String description)
onHostSessionFailure
in interface ClientCommunicationListener
onHostSessionFailure
in class ClientCommunicationAdapter
public void onDisplayTerminal(ClientSession clientSession)
onDisplayTerminal
in interface ClientCommunicationListener
onDisplayTerminal
in class ClientCommunicationAdapter
public boolean onExitApplication(ClientSession clientSession)
onExitApplication
in interface ClientCommunicationListener
onExitApplication
in class ClientCommunicationAdapter
public void onClientDispose(ClientSession clientSession)
onClientDispose
in interface ClientCommunicationListener
onClientDispose
in class ClientCommunicationAdapter
public void onClientInactivity(ClientSession clientSession)
onClientInactivity
in interface ClientCommunicationListener
onClientInactivity
in class ClientCommunicationAdapter
public void onRemoveTerminal(ClientSession clientSession)
onRemoveTerminal
in interface ClientCommunicationListener
onRemoveTerminal
in class ClientCommunicationAdapter
public boolean isClientTerminalDisplayed(ClientSession clientSession)
isClientTerminalDisplayed
in interface ClientCommunicationListener
isClientTerminalDisplayed
in class ClientCommunicationAdapter
public void onSoundAlarm(ClientSession clientSession)
onSoundAlarm
in interface ClientCommunicationListener
onSoundAlarm
in class ClientCommunicationAdapter
public void onMessageBox(VirtualMessageBox vmb)
public VirtualMessageBox getMessageBox()
getMessageBox
in interface WebApplicationInterface
public String getPanelHtmlName()
public void setFrameData(String framePanelConnection, String startupFile)
setFrameData
in interface WebApplicationInterface
public void setFrameData(String framePanelConnection, String startupFile, String emptyFile)
setFrameData
in interface WebApplicationInterface
public String getResourceName()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.