|
|||||||||||
| 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
|
+--com.opencms.core.OpenCmsHttpServlet
This the main servlet of the OpenCms system.
From here, all other operations are invoked. Any incoming request is handled in multiple steps:
| Field Summary |
| Fields inherited from interface com.opencms.boot.I_CmsLogChannels |
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING |
| Constructor Summary | |
OpenCmsHttpServlet()
|
|
| Method Summary | |
void |
destroy()
Destroys all running threads before closing the VM. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Method invoked on each HTML GET request. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Method invoked on each HTML POST request. |
String |
getErrormsg(String part)
Get the value for the property entry |
void |
init(javax.servlet.ServletConfig config)
Initialization of the OpenCms servlet (overloaded Servlet API method). |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OpenCmsHttpServlet()
| Method Detail |
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
The connection information for the database is read
from the opencms.properties configuration file and all
resource brokers are initialized via the initalizer,
which usually will be an instance of a OpenCms class.
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig - configuration of OpenCms from web.xml
javax.servlet.ServletException - when sevlet initalization failspublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
(Overloaded Servlet API method, requesting a document). Reads the URI received from the client and invokes the appropiate action.
doGet in class javax.servlet.http.HttpServletreq - The clints request.res - The servlets response.
javax.servlet.ServletException - if request fails
IOException - if the user authentication fails
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
(Overloaded Servlet API method, posting a document) The OpenCmsMultipartRequest is invoked to upload a new document into OpenCms.
doPost in class javax.servlet.http.HttpServletreq - The clints request.res - The servlets response.
javax.servlet.ServletException - Thrown if request fails.
IOException - Thrown if user autherization fails.public String getErrormsg(String part)
part - the name of the property
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||