public abstract class DecisionTableEditorServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
DecisionTableEditorServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addHandleToCache(java.lang.String key,
DecisionTableHandle handle,
javax.servlet.http.HttpServletRequest request)
Stores a
DecisionTableHandle instance to the web application cache using the specified key. |
protected ilog.rules.dt.IlrDTController |
createDTController(DecisionTableEditorEnvironment environment)
Creates the
IlrDTController that is used to edit the decision table. |
protected java.io.InputStream |
createEmptyDta()
Returns a new empty decision table (.dta).
|
protected abstract DecisionTableEditorEnvironment |
createEnvironment(javax.servlet.http.HttpServletRequest request)
Creates a new environment for a decision table editor, according to the specified HTTP request.
|
void |
destroy()
Destroys this servlet and release all resources.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handles a GET request.
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handles a POST request.
|
protected abstract DecisionTableHandle |
getHandleFromCache(java.lang.String key,
javax.servlet.http.HttpServletRequest request)
Retrieves a
DecisionTableHandle instance with the specified key, from the web application cache. |
void |
init()
Initializes this servlet.
|
protected abstract DecisionTableHandle |
removeHandleFromCache(java.lang.String key,
javax.servlet.http.HttpServletRequest request)
Removes a
DecisionTableHandle object with the cache according to the specified key. |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjava.io.IOException - if an input or output error is detected when the servlet handles the POST requestjavax.servlet.ServletException - if the request for the POST could not be handledreq - an HttpServletRequest object that contains the request the client has made of the servletresp - an HttpServletResponse object that contains the response the servlet sends to the clientprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjava.io.IOException - if an input or output error is detected when the servlet handles the GET requestjavax.servlet.ServletException - if the request for the GET could not be handledreq - an HttpServletRequest object that contains the request the client has made of the servletresp - an HttpServletResponse object that contains the response the servlet sends to the clientpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException - if an init-time error occursprotected abstract DecisionTableEditorEnvironment createEnvironment(javax.servlet.http.HttpServletRequest request)
request - An HttpServletRequest object that contains the request the client has made of the servletDecisionTableEditorEnvironment instance describing a decision tableprotected abstract void addHandleToCache(java.lang.String key,
DecisionTableHandle handle,
javax.servlet.http.HttpServletRequest request)
DecisionTableHandle instance to the web application cache using the specified key.key - The key to use to identify the DecisionTableHandle instancehandle - The DecisionTableHandle object to storerequest - An HttpServletRequest object that contains the request the client has made of the servletprotected abstract DecisionTableHandle getHandleFromCache(java.lang.String key, javax.servlet.http.HttpServletRequest request)
DecisionTableHandle instance with the specified key, from the web application cache.key - The key to use to identify the DecisionTableHandle object to retrieverequest - An HttpServletRequest object that contains the request the client has made of the servletDecisionTableHandle instanceprotected abstract DecisionTableHandle removeHandleFromCache(java.lang.String key, javax.servlet.http.HttpServletRequest request)
DecisionTableHandle object with the cache according to the specified key.key - The key to use to identify the DecisionTableHandle object to removerequest - An HttpServletRequest object that contains the request the client has made of the servletDecisionTableHandle object that has been removedprotected java.io.InputStream createEmptyDta()
Use this method to when you need to create an empty decision table, ready to be edited.
protected ilog.rules.dt.IlrDTController createDTController(DecisionTableEditorEnvironment environment)
IlrDTController that is used to edit the decision table.
Override this method only if you need some in-depth customisation of the editor.
environment - the decision table editor environmentIlrDTController instance.© Copyright IBM Corp. 1987, 2017