java.lang.Object | ||
↳ | com.microstrategy.web.controller.AppControllerImpl | |
↳ | com.microstrategy.web.controller.GenericWebAppController |
![]() |
This class provides a generic implementation of AppController that suits many MicroStrategy web applications. This class contains much of the code from the MSTRWebController class.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | SESSION_SESSION_MANAGER | The key to use for the Session Manager. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected ControllerHelper.BlockLibraryInfo | _blockLibraryInfo | ||||||||||
protected String | _configServletPath | ||||||||||
protected int | _defaultEvent | ||||||||||
protected AppContext | _globalAppContext | ||||||||||
protected String | _iframeJSP | ||||||||||
protected String | _iserverPollingFreq | ||||||||||
protected long | _messagesLastModified | This field is deprecated. MessagesBundle will take care themselves to reload if necessary. | |||||||||
protected MessagesManager | _messagesManager |
This field is deprecated.
Get the pageManager from getMessagesManager() or directly from the ConfigurationFilesCache .
|
|||||||||
protected long | _pageConfigLastModified | This field is deprecated. the pageConfig will take care itself to reload if necessary. | |||||||||
protected PageManager | _pageManager |
This field is deprecated.
Get the pageManager from getPageManager() or directly from the ConfigurationFilesCache .
|
|||||||||
protected boolean | _reloadConfigFiles | ||||||||||
protected String | _servletName |
This field is deprecated.
This variable should be marked private and will be removed in future versions of the product.
You can call getBaseURL(ContainerServices) instead.
|
|||||||||
protected String | _servletPath |
This field is deprecated.
This variable should be marked private and will be removed in future versions of the product.
You can call getServletPath() instead.
|
|||||||||
protected StyleCatalog | _styleCatalog |
This field is deprecated.
Get the style catalog from getStyleCatalog() or directly from the ConfigurationFilesCache .
|
|||||||||
protected long | _styleCatalogLastModified | This field is deprecated. the styleCatalog will take care itself to reload if necessary. | |||||||||
protected String | _xhrJSP |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GenericWebAppController() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AppContext |
createNewAppContext(ContainerServices cs, boolean externalApp)
Creates a new AppContextInstance.
| ||||||||||
AppContext |
createNewAppContext(ContainerServices cs)
This method is deprecated.
Use
createNewAppContext(ContainerServices, boolean) instead.
| ||||||||||
void | errorAfterRedirect(RequestState reqState, Exception e) | ||||||||||
String | extractParameterFromURL(String url, String parameterName) | ||||||||||
String | getBaseURL(ContainerServices cs) | ||||||||||
String | getPage(RequestState reqState) | ||||||||||
void | initializeApp(ContainerServices cs) | ||||||||||
ExternalSecurity | newExternalSecurity() | ||||||||||
RequestState | newRequestState() | ||||||||||
boolean | processRequest(RequestState reqState) | ||||||||||
void |
terminateApp()
Subclasses that override this method should invoke
this via super.terminateApp to ensure threads and
other application related resources are
cleaned up properly.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | addStandardCacheHeaders(ContainerServices cs) | ||||||||||
ProductLicenseInfo[] | getApplicableLicenses() | ||||||||||
String | getDefaultURLLink(ServletWebComponent servletWebComponent) | ||||||||||
long |
getLastModifiedTime(AppContext appContext, String param)
This method is deprecated.
No longer used by the MicroStrategy Web controllers.
| ||||||||||
void | setupSessionManager(AppContext appContext, ServletWebComponent servletWebComponent) | ||||||||||
boolean | validateRandomNum(ContainerServices cs, AppContext appContext) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
The key to use for the Session Manager.
This field is deprecated.
MessagesBundle will take care themselves to reload if necessary.
This field is deprecated.
Get the pageManager from getMessagesManager()
or directly from the ConfigurationFilesCache
.
This used to be the instance of the MessagesManager used by this Controller.
The Controller would initialized this instance in the initializeApp method, keep a reference
and then assign it to the AppContext on every request.
Now all configuration files are cached by the ConfigurationFilesCache
,
so if you need to access the page config, you can get a reference (based on the file path) from this Cache.
The AppContextImpl will automatically try to get the MessagesManager from the Cache if a PageManager
is not explicitly set.
This field is deprecated.
the pageConfig will take care itself to reload if necessary.
This field is deprecated.
Get the pageManager from getPageManager()
or directly from the ConfigurationFilesCache
.
This used to be the instance of the PageManager used by this Controller.
The Controller would initialized this instance in the initializeApp method, keep a reference
and then assign it to the AppContext on every request.
Now all configuration files are cached by the ConfigurationFilesCache
,
so if you need to access the page config, you can get a reference (based on the file path) from this Cache.
The AppContextImpl will automatically try to get the PageManager from the Cache if a PageManager
is not explicitly set.
This field is deprecated.
This variable should be marked private and will be removed in future versions of the product.
You can call getBaseURL(ContainerServices)
instead.
This field is deprecated.
This variable should be marked private and will be removed in future versions of the product.
You can call getServletPath()
instead.
This field is deprecated.
Get the style catalog from getStyleCatalog()
or directly from the ConfigurationFilesCache
.
This used to be the instance of the StyleCatalog used by this Controller.
The Controller would initialized this instance in the initializeApp method, keep a reference
and then assign it to the AppContext on every request.
Now all configuration files are cached by the ConfigurationFilesCache
,
so if you need to access the style catalog, you can get a reference (based on the file path) from this Cache.
The AppContextImpl will automatically try to get the StyleCatalog from the Cache if a StyleCatalog
is not explicitly set.
This field is deprecated.
the styleCatalog will take care itself to reload if necessary.
Creates a new AppContextInstance.
cs | The ContainerServices instance of the caller. |
---|---|
externalApp | If this is being called from an external application (one other than MicroStrategy Web),
then the following properties are set on the new instance:
|
This method is deprecated.
Use createNewAppContext(ContainerServices, boolean)
instead.
Creates a new AppContext instance.
cs | The ContainerServices instance of the caller. |
---|
AppContext
instance.Subclasses that override this method should invoke this via super.terminateApp to ensure threads and other application related resources are cleaned up properly.
This method is deprecated.
No longer used by the MicroStrategy Web controllers.
Gets teh last modified time of a resource.
appContext | The AppContext to use for resolving resource parameters. |
---|---|
param | The name of the resource to check. |
WebAppException |
---|
WebException |
---|