|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--planetj.dataengine.DataEngineServlet
Handle general services such as sorting, subrowing, summing, navigating Creation date: (12/1/2001 2:57:18 PM)
Field Summary | |
static String |
className
Class name. |
Fields inherited from interface planetj.dataengine.IServletParameters |
ALL, AUTO_RUN, BASE_URL, CACHE_TRACK_ON, CACHE_TRACK_WRITE_TO_FILE, CLEAN_UP_TIME, DATABASE, DRIVER, ENVIRONMENT_MODE, JDBC_OPTIMIZATIONS, MAX_CONNECTIONS, METADATA_LIBRARY, MIN_CONNECTIONS, ORPHAN_TIMEOUT, PASSWORD, PORT, SYSTEM_ALIAS, SYSTEM_ALIAS_PARAM, SYSTEM_URL, USER_ID, USER_PASSWORD |
Fields inherited from interface planetj.dataengine.IJSPPages |
CUSTOM_LOG_ON_JSP, DEFAULT_ADD_BODY_JSP, DEFAULT_EDIT_BODY_JSP, DEFAULT_PARAMS_JSP, DEFAULT_PRINT_PAGE_JSP, DEFAULT_RESULTS_JSP, DEFAULT_ROW_DETAILS, DEFAULT_SQL_OPERATION_RESULTS_JSP, DEFAULT_VIEW_BODY_JSP, DETAILS_JSP, DISPLAY_EXCEPTION_JSP, INITIAL_JSP, SIGN_ON_BODY_JSP, SIGN_ON_JSP, SIGNON_PARAMS_JSP |
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(javax.servlet.http.HttpServletResponse pResponse,
javax.servlet.http.Cookie pCookie)
Adds the specified Cookie to the HttpServletResponse. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generically reroute to performRequest method. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generically reroute to performRequest method. |
static String |
dumpParameters(javax.servlet.http.HttpServletRequest request)
Returns a String containing a listing of all the request's parameters. |
void |
forward(String uri,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Forward to the specified URI. |
javax.servlet.http.Cookie |
getCookie(javax.servlet.http.HttpServletRequest pRequest,
String pName,
String pPath)
Gets the Cookie with the specified name and path from the HttpServletRequest. |
javax.servlet.http.Cookie[] |
getCookies(javax.servlet.http.HttpServletRequest pRequest)
Gets all the Cookies in the HttpServletRequest. |
static String |
getErrorMessage(javax.servlet.http.HttpServletRequest request)
|
static DataEngineInitializationException |
getInitializationException()
Gets the initialization exception |
abstract String |
getInitialPage(javax.servlet.http.HttpServletRequest req)
Force subclasses to return an initial jsp/servlet. |
String |
getLastJSPPath(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Deprecated. no longer used |
static ILicense |
getLicense(ExecutingContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Deprecated. replaced with DataEngine.getLicense() |
String |
getLoggingPath()
Path to initialize the log file. |
static Object |
getRequestAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Gets the attribute in the request for the given key. |
static String |
getRequestParameter(String key,
javax.servlet.http.HttpServletRequest request)
Gets the specified parameter from the HTTPRequest. |
static String[] |
getRequestParameterValues(String key,
javax.servlet.http.HttpServletRequest request)
Gets the specified parameter from the HTTPRequest. |
String |
getRowCollectionJsp()
Deprecated. didn't know if being used, should this even be here? |
IRowEventListener |
getRowEventListener(javax.servlet.http.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) |
String |
getServiceRequestOverride(String pServiceReq,
javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpRes)
Return a new String used to lookup the magic service request. |
static String |
getServletPath(String servletName)
Get the path used to call the Servlet with the given name. |
static String |
getServletPath(String servletName,
boolean includeContextPath,
javax.servlet.http.HttpServletRequest request)
Get the path used to call the Servlet with the given name. |
static Object |
getSessionAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Gets the specified object in the HTTPSession. |
static Object |
getSessionSharedAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Gets the specified object in the HttpSession. |
static String |
getUserMessage(javax.servlet.http.HttpServletRequest request)
|
boolean |
handleServiceRequest(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpRes)
Handle generic dataengine service requests. |
void |
init()
Initialize the log |
boolean |
isLicenseValid(String pServletRoot,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Deprecated. replaced with DataEngine.isLicenseValid() |
static boolean |
isRunningInVA()
If we are running in VA or not |
static boolean |
isServletPath(String servletName)
Tests if the String identifies a DataEngine Servlet |
boolean |
preHandleServiceRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
printParameterTrace(javax.servlet.http.HttpServletRequest req)
Technical support method which prints the HttpServletRequest parms out Creation date: (11/7/2001 3:58:05 PM) |
abstract void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles servlet actions. |
void |
removeRequestAttribute(javax.servlet.http.HttpServletRequest req,
String parmKey)
Deprecated. replaced with removeRequestAttribute(String, HttpServletRequest) |
static Object |
removeRequestAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Removes the specified object in the HTTPRequest. |
void |
removeRequestData(javax.servlet.http.HttpServletRequest req,
String parmKey)
Deprecated. replaced with removeRequestAttribute(String, HttpServletRequest) |
void |
removeSessionAttribute(javax.servlet.http.HttpServletRequest pRequest,
String pKey)
Deprecated. replaced with removeSessionAttribute(String, HttpServletRequest) |
static Object |
removeSessionAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Removes the specified object in the HttpSession. |
static Object |
removeSessionSharedAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Removes the specified object in the HttpSession. |
void |
removeSharedSessionAttribute(javax.servlet.http.HttpServletRequest pRequest,
String pKey)
Deprecated. replaced with removeSessionSharedAttribute(String, HttpServletRequest) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method handles generic DataEngine service requests. |
static void |
setErrorMessage(String message,
javax.servlet.http.HttpServletRequest request)
|
static void |
setLayoutProperties(LayoutDisplayPropertyGroup layoutProperties,
javax.servlet.http.HttpServletRequest request)
Deprecated. |
static void |
setRequestGroupAttribute(String pKey,
Object pValue,
javax.servlet.http.HttpServletRequest pReq)
|
static void |
setRequestPageAttribute(String pKey,
Object pValue,
javax.servlet.http.HttpServletRequest pReq)
Sets an attribute on the request that is associated with this page. |
static void |
setRequestPersistentAttribute(String pKey,
Object pValue,
javax.servlet.http.HttpServletRequest pReq)
Sets an attribute on the request that will be persisted. |
static void |
setRequestTransientAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets an attriubte on the request that will not be automatically transferred to another request. |
static void |
setServletPath(String servletDefaultName,
String servletMap)
Sets a String to use to call a Servlet from another Servlet. |
static void |
setServletURI(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Deprecated. - temporarily to find where called |
static void |
setSessionAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets the specified object in the HttpSession. |
static void |
setSessionSharedAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets the specified object in the HttpSession. |
static void |
setUserMessage(String message,
javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String className
Constructor Detail |
public DataEngineServlet()
Method Detail |
public static String dumpParameters(javax.servlet.http.HttpServletRequest request)
public static String getErrorMessage(javax.servlet.http.HttpServletRequest request)
public static DataEngineInitializationException getInitializationException()
public static ILicense getLicense(ExecutingContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
public static Object getRequestAttribute(String key, javax.servlet.http.HttpServletRequest request)
key
- request
- HttpServletRequestpublic static String getRequestParameter(String key, javax.servlet.http.HttpServletRequest request)
public static String[] getRequestParameterValues(String key, javax.servlet.http.HttpServletRequest request)
public static String getServletPath(String servletName)
servletName
- the name of the servlet to get the path needed to call the servlet
public static String getServletPath(String servletName, boolean includeContextPath, javax.servlet.http.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 Object getSessionAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static Object getSessionSharedAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static String getUserMessage(javax.servlet.http.HttpServletRequest request)
public static final boolean isRunningInVA()
public static boolean isServletPath(String servletName)
public static Object removeRequestAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static Object removeSessionAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static Object removeSessionSharedAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static void setErrorMessage(String message, javax.servlet.http.HttpServletRequest request)
public static void setLayoutProperties(LayoutDisplayPropertyGroup layoutProperties, javax.servlet.http.HttpServletRequest request)
public static void setRequestGroupAttribute(String pKey, Object pValue, javax.servlet.http.HttpServletRequest pReq)
public static void setRequestPageAttribute(String pKey, Object pValue, javax.servlet.http.HttpServletRequest pReq)
public static void setRequestPersistentAttribute(String pKey, Object pValue, javax.servlet.http.HttpServletRequest pReq)
public static void setRequestTransientAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
key
- value
- request
- HttpServletRequestpublic static void setServletPath(String servletDefaultName, String servletMap)
public static void setServletURI(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException
javax.servlet.ServletException
public static void setSessionAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setSessionSharedAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setUserMessage(String message, javax.servlet.http.HttpServletRequest request)
public void addCookie(javax.servlet.http.HttpServletResponse pResponse, javax.servlet.http.Cookie pCookie)
pResponse
- pCookie
- Cookie to set in the HttpServletResponsepublic void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
request
- requestresponse
- response
javax.servlet.ServletException
IOException
public void forward(String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws DataEngineException
DataEngineException
public javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest pRequest, String pName, String pPath)
pRequest
- requestpName
- name of the cookie to getpPath
- path of the cookie to get
public javax.servlet.http.Cookie[] getCookies(javax.servlet.http.HttpServletRequest pRequest)
pRequest
- request
public abstract String getInitialPage(javax.servlet.http.HttpServletRequest req) throws CMException
CMException
public String getLastJSPPath(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, CMException
javax.servlet.ServletException
CMException
public String getLoggingPath() throws javax.servlet.ServletException
javax.servlet.ServletException
public String getRowCollectionJsp()
public IRowEventListener getRowEventListener(javax.servlet.http.HttpServletRequest req)
public String getServiceRequestOverride(String pServiceReq, javax.servlet.http.HttpServletRequest httpReq, javax.servlet.http.HttpServletResponse httpRes) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public boolean handleServiceRequest(javax.servlet.http.HttpServletRequest httpReq, javax.servlet.http.HttpServletResponse httpRes) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public boolean isLicenseValid(String pServletRoot, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
public boolean preHandleServiceRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public void printParameterTrace(javax.servlet.http.HttpServletRequest req)
req
- javax.servlet.http.HttpServletRequestpublic abstract void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
request
- requestresponse
- response
javax.servlet.ServletException
IOException
public void removeRequestAttribute(javax.servlet.http.HttpServletRequest req, String parmKey)
public void removeRequestData(javax.servlet.http.HttpServletRequest req, String parmKey)
public void removeSessionAttribute(javax.servlet.http.HttpServletRequest pRequest, String pKey) throws DataEngineException
pRequest
- request containing session to put attribute intopKey
- key used to store the object in the session
DataEngineException
public void removeSharedSessionAttribute(javax.servlet.http.HttpServletRequest pRequest, 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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |