|
Compiere 3.1 | |||||||||
| 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 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 Container |
containerCache
ContainerCache is storing the containers's often used by the system, to reduce DB lookups |
protected static ContainerElement |
containerElementCache
ContainerElementCache is storing the container's elements often used by the system, to reduce DB lookups |
protected static ContainerTree |
containerTreeCache
ContainerTreeCache is storing the container's tree often used by the system, to reduce DB lookups |
protected Ctx |
ctx
Context of this Servlet |
protected static 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 MediaServer |
mediaServerCache
MediaServerCache is storing the project's media server in combination with Request Info |
protected static Template |
templateCache
TemplateCache stores the oftens used templates |
protected static WebProject |
webProjectCache
WebProject is storing the projects often used by the system, to reduce DB lookups |
protected static WikiToken |
wikiCache
WikiCache stores the wiki tokens for faster resolution |
protected static XML |
xmlCache
XMLCache stores the oftens used templates |
| Constructor Summary | |
|---|---|
HttpServletCM()
|
|
| Method Summary | |
|---|---|
Chat |
getChatCache()
Returns the ChatCache Object |
Container |
getContainerCache()
Returns the ContainerCache Object |
ContainerElement |
getContainerElementCache()
Returns the ContainerElementCache Object |
ContainerTree |
getContainerTreeCache()
Returns the ContainerTreeCache Object |
Ctx |
getCtx()
Returns the Context of the current session. |
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 |
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 |
Template |
getTemplateCache()
Returns the Template Object |
WebProject |
getWebProjectCache()
Returns the WebProjectCache Object |
WikiToken |
getWikiTokenCache()
Returns the WikiToken Object |
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 Domain domainCache
protected static WebProject webProjectCache
protected static Chat chatCache
protected static Container containerCache
protected static ContainerElement containerElementCache
protected static ContainerTree containerTreeCache
protected static MediaServer mediaServerCache
protected static Template templateCache
protected static WikiToken wikiCache
protected static XML xmlCache
protected Ctx 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 Container getContainerCache()
public Chat getChatCache()
public ContainerElement getContainerElementCache()
public ContainerTree getContainerTreeCache()
public Domain getDomainCache()
public MediaServer getMediaServerCache()
public WebProject getWebProjectCache()
public Template getTemplateCache()
public WikiToken getWikiTokenCache()
public 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 Ctx 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()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||