| java.lang.Object org.enhydra.snapperAdmin.presentation.BasePO
All known Subclasses: org.enhydra.snapperAdmin.presentation.UpdateSitePresentation, org.enhydra.snapperAdmin.presentation.ListDocumentGroups, org.enhydra.snapperAdmin.presentation.BlankPresentation, org.enhydra.snapperAdmin.presentation.OptimizeSite, org.enhydra.snapperAdmin.presentation.StatusPresentation, org.enhydra.snapperAdmin.presentation.IndexedSitesPresentation, org.enhydra.snapperAdmin.presentation.IndexPresentation, org.enhydra.snapperAdmin.presentation.ListFileTypes, org.enhydra.snapperAdmin.presentation.SiteListPresentation, org.enhydra.snapperAdmin.presentation.NotIndexedPresentation, org.enhydra.snapperAdmin.presentation.NotImplPresentation, org.enhydra.snapperAdmin.presentation.DeleteIndexed, org.enhydra.snapperAdmin.presentation.DM_DownloadPO, org.enhydra.snapperAdmin.presentation.IndexSitePresentation, org.enhydra.snapperAdmin.presentation.UpdateSite, org.enhydra.snapperAdmin.presentation.TopPresentation, org.enhydra.snapperAdmin.presentation.PathListPresentation,
BasePO | abstract public class BasePO implements HttpPresentation(Code) | | Base abstract presentation class used for dynamic representation of particular java DOM generated
objects. This class is super class for all presentation objects used in Versicherungsmathemathik
application.
|
Field Summary | |
public static String | ENCODING Page Encoding definition. | protected HttpPresentationComms | comms Storage for HttpPresentationComms object passed to presentation object. | Exception | errorObj Exception which was thrown during the generationg of presentation object and which error
message should be displayed in current form or passed to other form. | protected String | errorText Error passed from other page which should be shown on this page. | protected String | infoText Info passed from other page which should be shown on this page. | protected int | pageId | public static String | paramDelimiter Argument is used as parameter delimiter in bundled parameters. |
Method Summary | |
protected void | addHiddenInputField(String name, String value, HTMLElement root) Create hidden field. | protected void | addHiddenInputFields(String paramNamePrefix, HTMLElement root) Dynamicaly creates an array of input html fields and append they to the
passed root html element. | protected void | addHiddenInputFields(String paramNamePrefix, HTMLElement root, String[] exludePrefix) Dynamicaly creates an array of input html fields and append they to the passed root html
element. | public void | clearError() | protected HTMLInputElement | createInputField(Hashtable attributes, Document document) Create custom field. | protected String | formParameterList(String[] arg) | protected Config | getAppConfiguration() Returns information about application configuration defined in config file via Config object. | protected boolean | getBoolParameter(String name) Read value of parameter from http request. | abstract protected XMLObject | getDOM() This abstract method should be overriden by presentation class, and it is responsible for
generation of http response to user in form of XMLObject instance. | public Exception | getError() | protected String | getFromURL(String searchPath) Find return page from search path. | protected String | getLevelUp(String searchPath) Method will make new search path,one level up. | protected String | getParamValue(String parameters, String paramName) | protected String | getReturnURL(String searchPath) Find return page from search path. | protected String | getStartSearchURL(String searchPath) Find start search page from search path. | public boolean | isIn(String searchVal, String[] definedGroup) | protected void | listAllParameters() Method is used to list all HTTP request parameters passed to presentation object, and their's
corresponding values, to log file. | public static void | printFreeMemory(String prefix) | protected String[] | reformParameterList(String str) | public void | removeIdAttrFromTree(Node rootNode) Removes id attributes from given html tag (represented as Node implementation) and all it's
sub tags. | public void | run(HttpPresentationComms comms) Implementation of run() method from HttpPresentation interface. | public void | setError(Exception err) Sets error withouth possibility of overriding already existed error. | public void | setError(Exception err, boolean override) Sets error with possibility of overriding already existed error. | public static void | show(String s) |
ENCODING | public static String ENCODING(Code) | | Page Encoding definition.
|
comms | protected HttpPresentationComms comms(Code) | | Storage for HttpPresentationComms object passed to presentation object.
|
errorObj | Exception errorObj(Code) | | Exception which was thrown during the generationg of presentation object and which error
message should be displayed in current form or passed to other form.
|
errorText | protected String errorText(Code) | | Error passed from other page which should be shown on this page.
|
infoText | protected String infoText(Code) | | Info passed from other page which should be shown on this page.
|
pageId | protected int pageId(Code) | | Page identification (unique on session level)
|
paramDelimiter | public static String paramDelimiter(Code) | | Argument is used as parameter delimiter in bundled parameters.
|
addHiddenInputField | protected void addHiddenInputField(String name, String value, HTMLElement root)(Code) | | Create hidden field.
Parameters: name - Parameters: value - Parameters: document - field throws: HttpPresentationException - |
addHiddenInputFields | protected void addHiddenInputFields(String paramNamePrefix, HTMLElement root) throws HttpPresentationException(Code) | | Dynamicaly creates an array of input html fields and append they to the
passed root html element. Input fields are created for correspond attribute
values which are passed via http request parameteres, and are specified by
theirs prefix.
Parameters: paramNamePrefix - prefix name for group of http request parameters (orfull name of one parameter) which values (or value) should be used forcreation input fielsd elements. |
addHiddenInputFields | protected void addHiddenInputFields(String paramNamePrefix, HTMLElement root, String[] exludePrefix) throws HttpPresentationException(Code) | | Dynamicaly creates an array of input html fields and append they to the passed root html
element. Input fields are created for correspond attribute values which are passed via http
request parameteres, and are specified by defined prefix group string with defined excluded
prefix names.
Parameters: paramNamePrefix - prefix name for group of http request parameters (or full name of one parameter)which values (or value) should be used for creation input fielsd elements. Parameters: exludePrefix - array with prefix names which have to be excluded from group of http requestparameters defined by paramNamePrefix attribute. |
clearError | public void clearError()(Code) | | Clears the current error
|
createInputField | protected HTMLInputElement createInputField(Hashtable attributes, Document document)(Code) | | Create custom field.
Parameters: attributes - Parameters: document - field throws: HttpPresentationException - |
formParameterList | protected String formParameterList(String[] arg)(Code) | | Method used to form list of parameters delimited with delimiter
Parameters: arg - array of parameters and their values list of parameters delimited with delimiter |
getAppConfiguration | protected Config getAppConfiguration()(Code) | | Returns information about application configuration defined in config file via Config object.
Config object which represents configuration file of VersMath application. |
getBoolParameter | protected boolean getBoolParameter(String name)(Code) | | Read value of parameter from http request.
Parameters: name - parameter name parameter value |
getDOM | abstract protected XMLObject getDOM() throws Exception(Code) | | This abstract method should be overriden by presentation class, and it is responsible for
generation of http response to user in form of XMLObject instance.
dynamically populated XMLObject generated as response to user http request. throws: BaseException - |
getFromURL | protected String getFromURL(String searchPath)(Code) | | Find return page from search path.
Parameters: searchPath - return page ( one before last page in search path ) |
getLevelUp | protected String getLevelUp(String searchPath)(Code) | | Method will make new search path,one level up.
Parameters: searchPath - searchPath new search path |
getParamValue | protected String getParamValue(String parameters, String paramName)(Code) | | Gets value of parameter, when parametrs are delimited with paramDelimiter
Parameters: parameters - Parameters: paramName - value of parameter |
getReturnURL | protected String getReturnURL(String searchPath)(Code) | | Find return page from search path.
Parameters: searchPath - return page ( last page in search path ) |
getStartSearchURL | protected String getStartSearchURL(String searchPath)(Code) | | Find start search page from search path.
Parameters: searchPath - start search page ( first page in search path ) |
listAllParameters | protected void listAllParameters()(Code) | | Method is used to list all HTTP request parameters passed to presentation object, and their's
corresponding values, to log file.
|
printFreeMemory | public static void printFreeMemory(String prefix)(Code) | | |
reformParameterList | protected String[] reformParameterList(String str)(Code) | | Method used to form array of parameters from string with parameters delimited with delimiter
Parameters: str - parameters delimited with delimiter array of parameters |
removeIdAttrFromTree | public void removeIdAttrFromTree(Node rootNode)(Code) | | Removes id attributes from given html tag (represented as Node implementation) and all it's
sub tags.
Parameters: rootNode - tag in html which has to be examined. exception: HttpPresentationException - |
run | public void run(HttpPresentationComms comms) throws HttpPresentationException(Code) | | Implementation of run() method from HttpPresentation interface.
Parameters: comms - object passed to presentation objects that contains HTTP andPresentation Manager access and control objects exception: HttpPresentationException - |
setError | public void setError(Exception err)(Code) | | Sets error withouth possibility of overriding already existed error.
Parameters: err - BaseException error object |
setError | public void setError(Exception err, boolean override)(Code) | | Sets error with possibility of overriding already existed error.
Parameters: err - BaseException error object Parameters: override - flag to indicate overriding (true) or rejecting of new error (false) |
|
|