Package org.openbravo.client.kernel
Class KernelServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.openbravo.base.HttpBaseServlet
-
- org.openbravo.base.secureApp.HttpSecureAppServlet
-
- org.openbravo.client.kernel.BaseKernelServlet
-
- org.openbravo.client.kernel.KernelServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,ConnectionProvider
public class KernelServlet extends BaseKernelServlet
The main servlet responsible for handling all the requests for components from the system.- Author:
- mtaal
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openbravo.client.kernel.BaseKernelServlet
BaseKernelServlet.KernelHttpServletResponse
-
-
Field Summary
Fields Modifier and Type Field Description static String
KERNEL_SERVLET
-
Fields inherited from class org.openbravo.client.kernel.BaseKernelServlet
RESPONSE_HEADER_CACHE_CONTROL, RESPONSE_HEADER_CONTENTTYPE, RESPONSE_HEADER_ETAG, RESPONSE_HEADER_LASTMODIFIED, RESPONSE_NO_CACHE
-
Fields inherited from class org.openbravo.base.secureApp.HttpSecureAppServlet
boolHist, classInfo
-
Fields inherited from class org.openbravo.base.HttpBaseServlet
globalParameters, log4j, myPool, strDefaultServlet, strDireccion, strReplaceWith, strReplaceWithFull, xmlEngine
-
-
Constructor Summary
Constructors Constructor Description KernelServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Redirects all HTTP GET requests to be handled by the doPost method of the extending class.void
doOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static ConfigParameters
getGlobalParameters()
static String
getServletPathPart()
void
init(javax.servlet.ServletConfig config)
Loads basic configuration settings that this class and all that extend it require to function properly.protected void
processActionRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
processComponentRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
A dispatcher method that calls the initialization upon every request to the servlet before it hands over the final dispatchment to the HttpServlet base class.protected void
setCORSHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Methods inherited from class org.openbravo.client.kernel.BaseKernelServlet
callServiceInSuper, invalidateSession
-
Methods inherited from class org.openbravo.base.secureApp.HttpSecureAppServlet
advise, advisePopUp, advisePopUp, advisePopUpRefresh, bdError, bdErrorAjax, bdErrorConnection, bdErrorGeneralPopUp, bdErrorHidden, getServletInfo, hasGeneralAccess, licenseError, logout, pageError, pageErrorCallOut, pageErrorPopUp, printPageClosePopUp, printPageClosePopUp, printPageClosePopUp, printPageClosePopUpAndRefreshParent, printPagePopUpDownload, printPagePopUpDownloadAndRefresh, readNumberFormat, readProperties, renderJR, renderJR, renderJR, renderJR, setClassInfo, setHistoryCommand, whitePage, whitePage
-
Methods inherited from class org.openbravo.base.HttpBaseServlet
doGetCall, doPostCall, getBaseDesignPath, getCallableStatement, getCallableStatement, getCallableStatement, getConnection, getPoolStatus, getPreparedStatement, getPreparedStatement, getPreparedStatement, getRDBMS, getStatement, getStatement, getStatement, getStatus, getTransactionConnection, initialize, releaseCallableStatement, releaseCommitConnection, releasePreparedStatement, releaseRollbackConnection, releaseStatement, releaseTransactionalPreparedStatement, releaseTransactionalStatement, serviceInitialized
-
Methods inherited from class javax.servlet.http.HttpServlet
doHead, doTrace, getLastModified, service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openbravo.database.ConnectionProvider
destroy
-
-
-
-
Field Detail
-
KERNEL_SERVLET
public static final String KERNEL_SERVLET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGlobalParameters
public static ConfigParameters getGlobalParameters()
- Returns:
- the parameters as they are defined in the servlet context.
-
getServletPathPart
public static String getServletPathPart()
-
init
public void init(javax.servlet.ServletConfig config)
Description copied from class:HttpBaseServlet
Loads basic configuration settings that this class and all that extend it require to function properly. Also instantiates XmlEngine object. This method is called upon load of the class, which is configured to be loaded upon start of the application server. See also web.xml (load-on-startup).- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classBaseKernelServlet
-
service
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
Description copied from class:HttpBaseServlet
A dispatcher method that calls the initialization upon every request to the servlet before it hands over the final dispatchment to the HttpServlet base class.- Overrides:
service
in classBaseKernelServlet
- Parameters:
request
- HttpServletRequest object where details of the HTTP request are.response
- HttpServletResponse object where the response will be written and returned to the user.- Throws:
javax.servlet.ServletException
IOException
-
doOptions
public void doOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
doOptions
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
setCORSHeaders
protected void setCORSHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
Description copied from class:HttpBaseServlet
Redirects all HTTP GET requests to be handled by the doPost method of the extending class.- Overrides:
doGet
in classHttpBaseServlet
- Parameters:
request
- HttpServletRequest object where details of the HTTP request are.response
- HttpServletResponse object where the response will be written and returned to the user.- Throws:
IOException
javax.servlet.ServletException
-
processComponentRequest
protected void processComponentRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-
processActionRequest
protected void processActionRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
doDelete
public void doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Overrides:
doDelete
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-
doPut
public void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Overrides:
doPut
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-
-