|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
planetj.dataengine.DataEngineServlet
Handle general services such as sorting, subrowing, summing, navigating Creation date: (12/1/2001 2:57:18 PM)
Field Summary |
Fields inherited from interface planetj.dataengine.IServletParameters |
ALL, AUTO_RUN, BASE_URL, CACHE_TRACK_ON, CACHE_TRACK_WRITE_TO_FILE, CLEAN_UP_TIME, DATA_ACCESS_TRACKING, DATABASE, DRIVER, ENVIRONMENT_MODE, JDBC_OPTIMIZATIONS, LIBRARY_LIST, MAX_CONNECTIONS, METADATA_LIBRARY, METADATA_USER_LIBRARY, MIN_CONNECTIONS, ORPHAN_TIMEOUT, PASSWORD, PORT, REPLACEMENT_LIBRARIES, SYSTEM_ALIAS, SYSTEM_ALIAS_PARAM, SYSTEM_URL, USER_ID, USER_PASSWORD |
Fields inherited from interface planetj.dataengine.application.IApplicationJSPs |
APPLICATION_ADD_JSP, APPLICATION_DETAILS_JSP, APPLICATION_EDIT_JSP, APPLICATION_ERROR_JSP, APPLICATION_HEADER_JSP, APPLICATION_INVALID_LICENSE_JSP, APPLICATION_JSP, APPLICATION_MESSAGE_JSP, APPLICATION_OPERATIONS_TOC, APPLICATION_RESULTS_JSP, APPLICATION_SIGN_ON_JSP, APPLICATION_TEMPLATE_JSP, APPLICATION_TOC_JSP, APPLICATION_VIEW_JSP |
Fields inherited from interface planetj.dataengine.application.IWOWJSPs |
WOW_MAIN_EXCEPTION_JSP, WOW_MANAGE_OPERATIONS_JSP, WOW_STEPS_JSP, WOW_TOC, WOW_VIEW_APPLICATIONS_JSP, WOW_VIEW_CONNECTIONS_JSP |
Constructor Summary | |
DataEngineServlet()
DataEngineServlet constructor comment. |
Method Summary | |
void |
addCookie(HttpServletResponse pResponse,
Cookie pCookie)
Adds the specified Cookie to the HttpServletResponse. |
protected void |
checkLaunchedFromBuilder(HttpServletRequest req)
Checks to see if the application was launched from the builder |
protected boolean |
checkLicense(HttpServletRequest request,
HttpServletResponse response)
Checks to see if the WOW license is valid. |
HttpServletRequest |
correctRequest(HttpServletRequest request)
If the given request is a mulitpart request, then it is converted into a multipart request object. |
void |
destroy()
|
protected static void |
displayDataEngineException(DataEngineException pDE,
HttpServletRequest pReq,
HttpServletResponse pRes)
|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Generically reroute to performRequest method. |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Generically reroute to performRequest method. |
static java.lang.String |
dumpParameters(HttpServletRequest request)
Returns a String containing a listing of all the request's parameters. |
void |
forward(java.lang.String uri,
HttpServletRequest request,
HttpServletResponse response)
Forward to the specified URI. |
protected void |
forwardInternal(java.lang.String uri,
HttpServletRequest request,
HttpServletResponse response)
Forward to the specified URI. |
static void |
forwardToPage(java.lang.String uri,
HttpServletRequest request,
HttpServletResponse response)
Forward to the specified URI. |
protected java.lang.String |
getAvailableServletNames()
Return a String which contains the available servlet's within this context. |
Cookie |
getCookie(HttpServletRequest pRequest,
java.lang.String pName,
java.lang.String pPath)
Gets the Cookie with the specified name and path from the HttpServletRequest. |
Cookie[] |
getCookies(HttpServletRequest pRequest)
Gets all the Cookies in the HttpServletRequest. |
protected static DataEngineException |
getDataEngineException(java.lang.Throwable t)
|
static java.lang.String |
getErrorMessage(HttpServletRequest request)
|
static DataEngineInitializationException |
getInitializationException()
Gets the initialization exception |
java.lang.String |
getInitializationParameter(java.lang.String key)
Gets an initialization parameter for the given key |
abstract java.lang.String |
getInitialPage(HttpServletRequest req)
Force subclasses to return an initial jsp/servlet. |
java.lang.String |
getLastJSPPath(HttpServletRequest req,
HttpServletResponse res)
Deprecated. no longer used |
static ILicense |
getLicense(ExecutingContext context,
HttpServletRequest req,
HttpServletResponse res)
Deprecated. replaced with DataEngine.getLicense() |
java.lang.String |
getLoggingPath()
Path to initialize the log file. |
static java.lang.Object |
getRequestAttribute(java.lang.String key,
HttpServletRequest request)
Gets the attribute in the request for the given key. |
static java.lang.String |
getRequestParameter(java.lang.String key,
HttpServletRequest request)
Gets the specified parameter from the HTTPRequest. |
static java.lang.String[] |
getRequestParameterValues(java.lang.String key,
HttpServletRequest request)
Gets the specified parameter from the HTTPRequest. |
java.lang.String |
getRowCollectionJsp()
Deprecated. didn't know if being used, should this even be here? |
IRowEventListener |
getRowEventListener(HttpServletRequest req)
Each Servlet may have its own RowEventListener defined, so they would override this method and return the appropriate Listener Creation date: (7/11/2002 10:30:18 AM) |
java.lang.String |
getServiceRequestOverride(java.lang.String pServiceReq,
HttpServletRequest httpReq,
HttpServletResponse httpRes)
Return a new String used to lookup the magic service request. |
static java.lang.String |
getServletPath(java.lang.String servletName)
Get the path used to call the Servlet with the given name. |
static java.lang.String |
getServletPath(java.lang.String servletName,
boolean includeContextPath,
HttpServletRequest request)
Get the path used to call the Servlet with the given name. |
static java.lang.Object |
getSessionAttribute(java.lang.String key,
HttpServletRequest request)
Gets the specified object in the HTTPSession. |
static java.lang.Object |
getSessionSharedAttribute(java.lang.String key,
HttpServletRequest request)
Gets the specified object in the HttpSession. |
static java.lang.String |
getUserMessage(HttpServletRequest request)
|
boolean |
handleError(short wowErrorCode,
java.lang.Exception e,
ExecutingContext ec)
This method is called when a navigation error occurs. |
boolean |
handleMagicRequest(IMagicRequest magicReq,
HttpServletRequest httpReq,
HttpServletResponse httpRes)
Handles a dataengine magic requests. |
boolean |
handleSavedHTML(HttpServletRequest req,
HttpServletResponse res)
Handles the situation where there is saved HTML in the session which should be sent out to the browser. |
boolean |
handleServiceClassRequest(java.lang.String classToRun,
HttpServletRequest request,
HttpServletResponse response)
Handle generic dataengine service requests. |
boolean |
handleServiceRequest(HttpServletRequest httpReq,
HttpServletResponse httpRes)
Handle generic dataengine service requests. |
void |
init()
Initialize the log |
protected void |
initConnectionPool(ServletConfig config)
Initialize the servlet's db connection pool used for metaData. |
protected void |
initDataEngineProperties(ServletConfig config)
|
protected void |
initInitParameters(ServletConfig config)
Initialize the initialization parameters |
protected void |
initLicense()
Initialze the license file. |
protected void |
initMetadataLibraries(ServletConfig config)
Initialize the metadata library |
protected void |
initSerlvetPaths(ServletConfig config)
Initialize the servlet's alias information for runtime servlet to servlet calls. |
protected boolean |
isAuthorized(HttpServletRequest request)
!!A WK after a user signs out, all the pages they previously viewed are no longer valid, need implementation and an unauthorized page |
boolean |
isCookiesAllowed(HttpServletRequest request)
|
boolean |
isLicenseValid(java.lang.String pServletRoot,
HttpServletRequest req,
HttpServletResponse res)
Deprecated. replaced with DataEngine.isLicenseValid() |
static boolean |
isRunningInVA()
If we are running in VA or not |
static boolean |
isServletPath(java.lang.String servletName)
Tests if the String identifies a DataEngine Servlet |
protected boolean |
isSessionTimeOut(HttpServletRequest request)
|
protected void |
navigationError(HttpServletRequest request,
HttpServletResponse response)
|
protected void |
pageExpired(HttpServletRequest request,
HttpServletResponse response)
This method is called when a page has expired. |
boolean |
preHandleServiceRequest(HttpServletRequest request,
HttpServletResponse response)
|
void |
printParameterTrace(HttpServletRequest req)
Technical support method which prints the HttpServletRequest parms out Creation date: (11/7/2001 3:58:05 PM) |
abstract void |
processRequest(HttpServletRequest request,
HttpServletResponse response)
Handles servlet actions. |
static java.lang.Object |
removeRequestAttribute(java.lang.String key,
HttpServletRequest request)
Removes the specified object in the HTTPRequest. |
void |
removeRequestData(HttpServletRequest req,
java.lang.String parmKey)
Deprecated. replaced with removeRequestAttribute(String, HttpServletRequest) |
static java.lang.Object |
removeSessionAttribute(java.lang.String key,
HttpServletRequest request)
Removes the specified object in the HttpSession. |
static java.lang.Object |
removeSessionSharedAttribute(java.lang.String key,
HttpServletRequest request)
Removes the specified object in the HttpSession. |
void |
removeSharedSessionAttribute(HttpServletRequest pRequest,
java.lang.String pKey)
Deprecated. replaced with removeSessionSharedAttribute(String, HttpServletRequest) |
void |
service(HttpServletRequest request,
HttpServletResponse response)
This method handles generic DataEngine service requests. |
protected void |
sessionTimedOut(HttpServletRequest request,
HttpServletResponse response)
This method is called when the user's session timeouts. |
static void |
setErrorMessage(java.lang.String message,
boolean nextPage,
HttpServletRequest request)
Sets the error message to display to the user. |
static void |
setErrorMessage(java.lang.String message,
HttpServletRequest request)
Sets the error message to display to the user. |
static void |
setLayoutProperties(LayoutDisplayPropertyGroup layoutProperties,
HttpServletRequest request)
Deprecated. |
static void |
setMethod(java.lang.String method,
HttpServletRequest req)
Sets the HTTP method to use when sending the form back to the server (e.g. |
static void |
setRequestGroupAttribute(java.lang.String pKey,
java.lang.Object pValue,
HttpServletRequest pReq)
|
static void |
setRequestPageAttribute(java.lang.String pKey,
java.lang.Object pValue,
HttpServletRequest pReq)
Sets an attribute on the request that is associated with this page. |
static void |
setRequestPersistentAttribute(java.lang.String pKey,
java.lang.Object pValue,
HttpServletRequest pReq)
Sets an attribute on the request that will be persisted. |
static void |
setRequestTransientAttribute(java.lang.String key,
java.lang.Object value,
HttpServletRequest request)
Sets an attriubte on the request that will not be automatically transferred to another request. |
static void |
setServletPath(java.lang.String servletDefaultName,
java.lang.String servletMap)
Sets a String to use to call a Servlet from another Servlet. |
static void |
setServletURI(HttpServletRequest req,
HttpServletResponse res)
Deprecated. - temporarily to find where called |
static void |
setSessionAttribute(java.lang.String key,
java.lang.Object value,
HttpServletRequest request)
Sets the specified object in the HttpSession. |
static void |
setSessionSharedAttribute(java.lang.String key,
java.lang.Object value,
HttpServletRequest request)
Sets the specified object in the HttpSession. |
static void |
setUseFullURI(boolean useFull,
HttpServletRequest req)
Sets if the full URI should be used in the HTML when URIs are rendered. |
static void |
setUserMessage(java.lang.String message,
HttpServletRequest request)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataEngineServlet()
Method Detail |
public static java.lang.String dumpParameters(HttpServletRequest request)
public static java.lang.String getErrorMessage(HttpServletRequest request)
public static DataEngineInitializationException getInitializationException()
public java.lang.String getInitializationParameter(java.lang.String key)
public static ILicense getLicense(ExecutingContext context, HttpServletRequest req, HttpServletResponse res)
public static java.lang.Object getRequestAttribute(java.lang.String key, HttpServletRequest request)
key
- request
- HttpServletRequestpublic static java.lang.String getRequestParameter(java.lang.String key, HttpServletRequest request)
public static java.lang.String[] getRequestParameterValues(java.lang.String key, HttpServletRequest request)
public static java.lang.String getServletPath(java.lang.String servletName)
servletName
- the name of the servlet to get the path needed to call the servlet
public static java.lang.String getServletPath(java.lang.String servletName, boolean includeContextPath, HttpServletRequest request)
servletName
- the name of the servlet to get the path needed to call the servletincludeContextPath
- true if the context path should be included in the path to
call the servlet (context path should be include when the
servlet will be called from HTML); false otherwise (when the
the servlet will be called from another servlet)request
- the HttpServletRequest object that containing the client's requestpublic static java.lang.Object getSessionAttribute(java.lang.String key, HttpServletRequest request)
public static java.lang.Object getSessionSharedAttribute(java.lang.String key, HttpServletRequest request)
public static java.lang.String getUserMessage(HttpServletRequest request)
public static final boolean isRunningInVA()
public static boolean isServletPath(java.lang.String servletName)
public static java.lang.Object removeRequestAttribute(java.lang.String key, HttpServletRequest request)
public static java.lang.Object removeSessionAttribute(java.lang.String key, HttpServletRequest request)
public static java.lang.Object removeSessionSharedAttribute(java.lang.String key, HttpServletRequest request)
public static void setErrorMessage(java.lang.String message, HttpServletRequest request)
public static void setErrorMessage(java.lang.String message, boolean nextPage, HttpServletRequest request)
nextPage
- Should we display the error message on the next page, or stay on this page?public static void setLayoutProperties(LayoutDisplayPropertyGroup layoutProperties, HttpServletRequest request)
public static void setMethod(java.lang.String method, HttpServletRequest req)
public static void setRequestGroupAttribute(java.lang.String pKey, java.lang.Object pValue, HttpServletRequest pReq)
public static void setRequestPageAttribute(java.lang.String pKey, java.lang.Object pValue, HttpServletRequest pReq)
public static void setRequestPersistentAttribute(java.lang.String pKey, java.lang.Object pValue, HttpServletRequest pReq)
public static void setRequestTransientAttribute(java.lang.String key, java.lang.Object value, HttpServletRequest request)
key
- value
- request
- HttpServletRequestpublic static void setServletPath(java.lang.String servletDefaultName, java.lang.String servletMap)
public static void setServletURI(HttpServletRequest req, HttpServletResponse res) throws ServletException
ServletException
public static void setSessionAttribute(java.lang.String key, java.lang.Object value, HttpServletRequest request)
public static void setSessionSharedAttribute(java.lang.String key, java.lang.Object value, HttpServletRequest request)
public static void setUseFullURI(boolean useFull, HttpServletRequest req)
Sets if the full URI should be used in the HTML when URIs are rendered. Normally all URIs are assumed to be located in the current webapp, and therefore full URI information is not included.
Example reference when false (default): "dataengine/js/util.js"
Example reference when true: "http://localhost:7080/wow60/dataengine/js/util.js"
Invoking this method only affects the current request. Subsequent requests will revert to the default value
public static void setUserMessage(java.lang.String message, HttpServletRequest request)
public void addCookie(HttpServletResponse pResponse, Cookie pCookie)
pResponse
- pCookie
- Cookie to set in the HttpServletResponseprotected void checkLaunchedFromBuilder(HttpServletRequest req)
protected boolean checkLicense(HttpServletRequest request, HttpServletResponse response)
public HttpServletRequest correctRequest(HttpServletRequest request)
protected static void displayDataEngineException(DataEngineException pDE, HttpServletRequest pReq, HttpServletResponse pRes)
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- requestresponse
- response
ServletException
java.io.IOException
public void forward(java.lang.String uri, HttpServletRequest request, HttpServletResponse response) throws DataEngineException
DataEngineException
public static void forwardToPage(java.lang.String uri, HttpServletRequest request, HttpServletResponse response) throws DataEngineException
DataEngineException
protected final void forwardInternal(java.lang.String uri, HttpServletRequest request, HttpServletResponse response) throws DataEngineException
DataEngineException
protected java.lang.String getAvailableServletNames()
public Cookie getCookie(HttpServletRequest pRequest, java.lang.String pName, java.lang.String pPath)
pRequest
- requestpName
- name of the cookie to getpPath
- path of the cookie to get
public Cookie[] getCookies(HttpServletRequest pRequest)
pRequest
- request
protected static DataEngineException getDataEngineException(java.lang.Throwable t)
public abstract java.lang.String getInitialPage(HttpServletRequest req) throws CMException
CMException
public java.lang.String getLastJSPPath(HttpServletRequest req, HttpServletResponse res) throws ServletException, CMException
ServletException
CMException
public java.lang.String getLoggingPath() throws ServletException
ServletException
public java.lang.String getRowCollectionJsp()
public IRowEventListener getRowEventListener(HttpServletRequest req)
public java.lang.String getServiceRequestOverride(java.lang.String pServiceReq, HttpServletRequest httpReq, HttpServletResponse httpRes) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public boolean handleError(short wowErrorCode, java.lang.Exception e, ExecutingContext ec)
public boolean handleMagicRequest(IMagicRequest magicReq, HttpServletRequest httpReq, HttpServletResponse httpRes) throws CMException, ServletException, java.io.IOException
CMException
ServletException
java.io.IOException
public boolean handleSavedHTML(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public boolean handleServiceClassRequest(java.lang.String classToRun, HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public boolean handleServiceRequest(HttpServletRequest httpReq, HttpServletResponse httpRes) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void init() throws ServletException
ServletException
protected void initConnectionPool(ServletConfig config)
protected void initDataEngineProperties(ServletConfig config) throws ServletException
config
-
ServletException
protected void initInitParameters(ServletConfig config) throws ServletException
ServletException
protected void initLicense() throws ServletException
ServletException
protected void initMetadataLibraries(ServletConfig config) throws ServletException
ServletException
protected void initSerlvetPaths(ServletConfig config)
protected boolean isAuthorized(HttpServletRequest request)
public boolean isCookiesAllowed(HttpServletRequest request)
public boolean isLicenseValid(java.lang.String pServletRoot, HttpServletRequest req, HttpServletResponse res)
protected boolean isSessionTimeOut(HttpServletRequest request)
protected void navigationError(HttpServletRequest request, HttpServletResponse response) throws CMException
CMException
protected void pageExpired(HttpServletRequest request, HttpServletResponse response) throws CMException
CMException
public boolean preHandleServiceRequest(HttpServletRequest request, HttpServletResponse response)
public void printParameterTrace(HttpServletRequest req)
req
- javax.servlet.http.HttpServletRequestpublic abstract void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- requestresponse
- response
ServletException
java.io.IOException
public void removeRequestData(HttpServletRequest req, java.lang.String parmKey)
public void removeSharedSessionAttribute(HttpServletRequest pRequest, java.lang.String pKey) throws DataEngineException
pRequest
- request containing session to put attribute intopKey
- key used to store the object in the session
DataEngineException
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
protected void sessionTimedOut(HttpServletRequest request, HttpServletResponse response) throws CMException
request
- response
-
CMException
public void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |