|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.compiere.cm.HttpServletCM
public class HttpServletCM
HttpServletCM we extended the normal HttpServlet to store some global environment and cache here
| Field Summary | |
|---|---|
protected static String |
buildDate
special application templates ssometimes depend on a special version, this is to give them an idea. |
protected static org.compiere.cm.cache.Chat |
chatCache
ChatCache is storing the chat's often used by the system, to reduce DB lookups |
protected static boolean |
configLoaded
status if config is loaded... true if loaded false is default after startup |
protected static org.compiere.cm.cache.Container |
containerCache
ContainerCache is storing the containers's often used by the system, to reduce DB lookups |
protected static org.compiere.cm.cache.ContainerElement |
containerElementCache
ContainerElementCache is storing the container's elements often used by the system, to reduce DB lookups |
protected static org.compiere.cm.cache.ContainerTree |
containerTreeCache
ContainerTreeCache is storing the container's tree often used by the system, to reduce DB lookups |
protected Properties |
ctx
Context of this Servlet |
protected static org.compiere.cm.cache.Domain |
domainCache
DomainCache is storing the domains of the system, to reduce DB lookups |
protected static String |
ErrorMessage
belongs to fatalError, should get a corresponding error message to display in the web frontend. null if no error |
protected String |
externalMediaURL
String containing the external media URL |
protected static boolean |
fatalError
fatalError stores a shared variable which will be set to yes whenever a global Server Error from which we can not recover occurs. |
protected String |
internalMediaURL
String containing the internal media path (should not be used for real page deployment) the normal broadcaster will replace this URL with the correct media server for this client |
protected CLogger |
log
Logger |
protected static org.compiere.cm.cache.MediaServer |
mediaServerCache
MediaServerCache is storing the project's media server in combination with Request Info |
protected static org.compiere.cm.cache.Template |
templateCache
TemplateCache stores the oftens used templates |
protected static org.compiere.cm.cache.WebProject |
webProjectCache
WebProject is storing the projects often used by the system, to reduce DB lookups |
protected static org.compiere.cm.cache.XML |
xmlCache
XMLCache stores the oftens used templates |
| Constructor Summary | |
|---|---|
HttpServletCM()
|
|
| Method Summary | |
|---|---|
String |
getBuildDate()
Returns the current build version/date of the servlet engine, this is used by special application templates which depend on certain functionality to check for their availability. |
org.compiere.cm.cache.Chat |
getChatCache()
Returns the ChatCache Object |
org.compiere.cm.cache.Container |
getContainerCache()
Returns the ContainerCache Object |
org.compiere.cm.cache.ContainerElement |
getContainerElementCache()
Returns the ContainerElementCache Object |
org.compiere.cm.cache.ContainerTree |
getContainerTreeCache()
Returns the ContainerTreeCache Object |
Properties |
getCtx()
Returns the Context of the current session. |
org.compiere.cm.cache.Domain |
getDomainCache()
Returns the DomainCache Object |
String |
getExternalMediaURL()
Returns the current External Media URL be carefull this Function needs to be called after the URL is set! |
String |
getExternalMediaURL(int CM_WebProject_ID)
Returns the current External Media URL for the Project |
String |
getInternalMediaURL()
Returns the internalMediaURL for replacement |
CLogger |
getLogger()
get Servlet Logger |
org.compiere.cm.cache.MediaServer |
getMediaServerCache()
Returns the MediaServerCache Object |
String |
getSessionMediaURL(HttpServletRequest request,
int CM_WebProject_ID)
Returns the sessionMediaURL, this is the ideal Media URL for this Request |
org.compiere.cm.cache.Template |
getTemplateCache()
Returns the Template Object |
org.compiere.cm.cache.WebProject |
getWebProjectCache()
Returns the WebProjectCache Object |
org.compiere.cm.cache.XML |
getXMLCache()
Returns the Template Object |
void |
init(ServletConfig config)
Init |
void |
resetInternalMediaURL(HttpServletRequest request)
Sets internal Media URL |
void |
setAD_Client_ID(int newVal)
setAD_Client_ID to update AD_Client as soon System has recognized the Client |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static boolean configLoaded
protected static boolean fatalError
protected static String ErrorMessage
protected static String buildDate
protected static org.compiere.cm.cache.Domain domainCache
protected static org.compiere.cm.cache.WebProject webProjectCache
protected static org.compiere.cm.cache.Chat chatCache
protected static org.compiere.cm.cache.Container containerCache
protected static org.compiere.cm.cache.ContainerElement containerElementCache
protected static org.compiere.cm.cache.ContainerTree containerTreeCache
protected static org.compiere.cm.cache.MediaServer mediaServerCache
protected static org.compiere.cm.cache.Template templateCache
protected static org.compiere.cm.cache.XML xmlCache
protected Properties ctx
protected String internalMediaURL
protected String externalMediaURL
protected CLogger log
| Constructor Detail |
|---|
public HttpServletCM()
| Method Detail |
|---|
public void init(ServletConfig config)
throws ServletException
init in interface Servletinit in class GenericServletconfig -
ServletExceptionpublic String getBuildDate()
public org.compiere.cm.cache.Container getContainerCache()
public org.compiere.cm.cache.Chat getChatCache()
public org.compiere.cm.cache.ContainerElement getContainerElementCache()
public org.compiere.cm.cache.ContainerTree getContainerTreeCache()
public org.compiere.cm.cache.Domain getDomainCache()
public org.compiere.cm.cache.MediaServer getMediaServerCache()
public org.compiere.cm.cache.WebProject getWebProjectCache()
public org.compiere.cm.cache.Template getTemplateCache()
public org.compiere.cm.cache.XML getXMLCache()
public String getInternalMediaURL()
public String getSessionMediaURL(HttpServletRequest request,
int CM_WebProject_ID)
request - the Request for thisCM_WebProject_ID - Returns the WebProject ID
public void resetInternalMediaURL(HttpServletRequest request)
request - public Properties getCtx()
public String getExternalMediaURL(int CM_WebProject_ID)
CM_WebProject_ID - WebProject
public String getExternalMediaURL()
public void setAD_Client_ID(int newVal)
newVal - public CLogger getLogger()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||