java.lang.Object | |
↳ | com.microstrategy.web.app.transforms.MobileChunkedAppContext |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MobileChunkedAppContext(BeanContext bc) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
dispenseFile(String realPath, String resourcePath)
Dispenses the master copy of the a resource file located in the classpath into the
file indicated in the realpath
| ||||||||||
WebAppSessionManager |
getAppSessionManager()
This method returns the Application Session Manager associated with this application context.
| ||||||||||
String |
getBrowserHeaderLocaleId()
This method will extract from request header a value corresponding to browser's locale info.
| ||||||||||
String |
getBrowserHeaderLocaleId(Locale defaultLocale)
This method will extract from request header a value corresponding to browser's locale info.
| ||||||||||
String |
getBrowserLocaleId()
This method returns the Locale Id defined in web preferences as Language.
| ||||||||||
String |
getBrowserServerLocaleId()
This method returns the Locale associated with Date and Number format locale web preference.If default, it'll return
browser's locale Id instead.
| ||||||||||
BrowserSettings |
getBrowserSettings()
This method returns the BrowserSettings object associated with this
application context.
| ||||||||||
String |
getConfigParameter(String param)
Returns the value of a configuration parameter.
| ||||||||||
String |
getConfigServletPath()
Get the full application path to the Servlet as defined in the configuration file
| ||||||||||
ContainerServices |
getContainerServices()
This method gets the Container Services object associated with this application context.
| ||||||||||
ContextMenuManager |
getContextMenuManager(String contextMenuName)
Returns an instance of a
ContextMenuManager object. | ||||||||||
PageComponent |
getCurrentPage()
Returns the name of the current page associated with the context.
| ||||||||||
Document |
getDocumentFromFileResource(String filePath)
This method returns a DOM Document from a file resource.
| ||||||||||
MobileChunkedAppContext.MobileElementIDMap | getElementIDMap() | ||||||||||
EventHandlersCatalog |
getEventHandlersCatalog()
Returns the current instance of
EventHandlersCatalog associated with the
current BeanContext. | ||||||||||
ExternalSecurity |
getExternalSecurity()
This method returns the External Security instance associated with this application context.
| ||||||||||
WebFeatures |
getFeatures()
This method gets the Features object associated with this application context.
| ||||||||||
String |
getFileContentsAsString(String filePath)
Returns the contents of the resource file as string from the file path provided.
| ||||||||||
String |
getFileContentsAsString(String filePath, String encoding)
Returns the contents of the resource file as string from the file path provided using the named character encoding.
| ||||||||||
String |
getFontName()
Returns a string with the name of the fonts, or the list of fonts
that a browser should use when rendering the page.
| ||||||||||
String |
getFontSize()
A string with the base font size to use, the string
might contain the type of size (i.e, pt, px, etc.)
| ||||||||||
int | getMaxResultSize() | ||||||||||
Messages |
getMessages()
Returns the
Messages instance from this BeanContext. | ||||||||||
MessagesManager |
getMessagesManager()
Returns an instance of
MessagesManager associated with the
current BeanContext. | ||||||||||
MobileChunkedAppContext.MobileStyleManager | getMobileStyleManager() | ||||||||||
MobileChunkedAppContext.MobileObjectRefIDMap | getObjectMap() | ||||||||||
PageManager |
getPageManager()
This method gets the PageManager object associated with this application context.
| ||||||||||
MobileChunkedAppContext.MobilePageIndexMap | getPageMap() | ||||||||||
Preferences |
getPreferences()
This method returns the Preferences object associated with this application context.
| ||||||||||
String |
getRealPath(String filePath)
Return the absolute path of th erelative path provided
| ||||||||||
RequestKeys |
getRequestKeys()
This method gets the Request Keys object associated with this application context.
| ||||||||||
String |
getResourceFileAsString(String filePath, String resourceFileName)
Returns the contents of the resource file as string from the file path provided.
| ||||||||||
String |
getResourcesFolder(String folderType)
Return the path to the resources folder indicated on the configuration file, corresponding to the
type sent as parameter.
| ||||||||||
String |
getRootName()
Returns the name of the root component
In the case of the jsp/servlet enviroment,it will be the name of the main servlet component
This corresponds to the value of the parameter
CONFIG_SERVLET_NAME | ||||||||||
String |
getServletPath()
Get the full application path to the Servlet.
| ||||||||||
SessionManager |
getSessionManager()
This method returns the Session Manager associated with this application context.
| ||||||||||
StyleCatalog |
getStyleCatalog()
Returns an instance of
StyleCatalog associated with the
current BeanContext. | ||||||||||
Exception | getTransformException() | ||||||||||
WebSessionManager |
getWebSessionManager()
This method returns the Application Session Manager associated with this application context.
| ||||||||||
boolean |
isDoubleByte()
Returns true if the locale is a double byte language like Chinese, Korean or Japenese.
| ||||||||||
boolean | maxResultSizeExceeded() | ||||||||||
void |
putConfigParameter(String key, String value)
Appends a Configuration Parameter to the Configuration Parameters list.
| ||||||||||
void |
setAppSessionManager(WebAppSessionManager sm)
This method sets the Application Session Manager associated with this application context.
| ||||||||||
void |
setBrowserSettings(BrowserSettings bs)
This method sets the BrowserSettings object to be associated with this application context.
| ||||||||||
void |
setConfigServletPath(String configServletPath)
Define the full application path to the Servlet as defined in the configuration file.
| ||||||||||
void |
setContainerServices(ContainerServices cs)
This method sets the Container Services object associated with this application context.
| ||||||||||
void |
setCurrentPage(PageComponent page)
Set a page as the current page of this context.
| ||||||||||
void |
setDefaultEvent(int eventID)
Sets the eventTD provided as the default event of the application
| ||||||||||
void |
setEventHandlersCatalog(EventHandlersCatalog catalog)
Sets the
EventHandlersCatalog instances associated with the
current BeanContext. | ||||||||||
void |
setExternalSecurity(ExternalSecurity es)
This method sets the External Security associated with this application context.
| ||||||||||
void |
setFeatures(WebFeatures features)
This method sets the Features object associated with this application context.
| ||||||||||
void | setMaxResultSize(int _maxResultSize) | ||||||||||
void | setMaxResultSizeExceeded(boolean _maxResultSizeExceeded) | ||||||||||
void |
setMessages(Messages msgs)
Sets a
Messages instance to this BeanContext. | ||||||||||
void |
setMessagesManager(MessagesManager msgsMgr)
Sets an instance of
MessagesManager on the current BeanContext. | ||||||||||
void |
setPageManager(PageManager pageManager)
This method sets the PageManager object associated with this application context.
| ||||||||||
void |
setPreferences(Preferences prefs)
This method sets a Preferences object for use with this application context.
| ||||||||||
void |
setRequestKeys(RequestKeys hrk)
This method sets the Request Keys object to be associated with this application context.
| ||||||||||
void |
setServletPath(String servletPath)
Define the full application path to the Servlet.
| ||||||||||
void |
setSessionManager(SessionManager sm)
This method sets the Session Manager associated with this application context.
| ||||||||||
void |
setStyleCatalog(StyleCatalog sc)
Sets an instance of
StyleCatalog on the current BeanContext. | ||||||||||
void | setTransformException(Exception e) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Dispenses the master copy of the a resource file located in the classpath into the file indicated in the realpath
realPath | the destination of the resource file to dispense |
---|---|
resourcePath | the resource file to dispense. |
This method returns the Application Session Manager associated with this application context.
If not explicitly set through the setAppSessionManager(WebAppSessionManager)
method, a new one is automatically
created.
Note that this method fully replaces the getSessionManager method.
WebAppSessionManager
, representing the session manager associated with the AppContext object.This method will extract from request header a value corresponding to browser's locale info. This info
will be resolved in order to return current browser's LCID. This is equivalent to
findBestSupportedLocale(Locale, Locale[])
with available display locales from
getAvailableLocales(int)
for TYPE_WEB_SUPPORTED
.
Defaults to LCID of 1033.
String
with the LCIDThis method will extract from request header a value corresponding to browser's locale info. This info
will be resolved in order to return current browser's LCID. This is equivalent to
findBestSupportedLocale(Locale, Locale[])
with available display locales from
getAvailableLocales(int)
for TYPE_WEB_SUPPORTED
.
String
with the LCID
This method returns the Locale Id defined in web preferences as Language. If default, it'll return browser's locale Id instead.
String
with the Locale ID.
This method returns the Locale associated with Date and Number format locale web preference.If default, it'll return browser's locale Id instead.
String
with the Locale ID.
This method returns the BrowserSettings object associated with this application context.
Returns the value of a configuration parameter. Configuration parameters are defined in the web.xml file using the context-param and init-param tags.
param | name of the parameter to retrieve |
---|
Get the full application path to the Servlet as defined in the configuration file
String
with the servlet path
This method gets the Container Services object associated with this application context.
Returns an instance of a ContextMenuManager
object. Referenced ny name
contextMenuName | name of the ContextMenuManager object to retrieve |
---|
ContextMenuManager
object
Returns the name of the current page associated with the context.
It returns null
if there no current page.
PageComponent
which is set on this object.This method returns a DOM Document from a file resource. The method works by attempting the following operations, in order:
filePath | The absolute or relative path to the file resource. |
---|
Document
node that contains the file contents.
Returns the current instance of EventHandlersCatalog
associated with the
current BeanContext.
This method returns the External Security instance associated with this application context.
This method gets the Features object associated with this application context.
WebFeatures
object
Returns the contents of the resource file as string from the file path provided. it does not dispense the file
filePath | location of the resource file (relative path) |
---|
Returns the contents of the resource file as string from the file path provided using the named character encoding. it does not dispense the file
filePath | location of the resource file (relative path) |
---|---|
encoding | The name of a supported character encoding. |
Returns a string with the name of the fonts, or the list of fonts that a browser should use when rendering the page. This is usually retrieved from user Preferences
A string with the base font size to use, the string might contain the type of size (i.e, pt, px, etc.)
Returns the Messages
instance from this BeanContext.
Returns an instance of MessagesManager
associated with the
current BeanContext.
This method gets the PageManager object associated with this application context.
This method returns the Preferences object associated with this application context.
Return the absolute path of th erelative path provided
filePath | relative path to get the relative path from |
---|
This method gets the Request Keys object associated with this application context.
Returns the contents of the resource file as string from the file path provided. If the resource cannot be found in the location, it will be dispensed
filePath | location of the resource file (relative path) |
---|---|
resourceFileName | resource file |
Return the path to the resources folder indicated on the configuration file, corresponding to the
type sent as parameter.
This is actually a convenience method for the getConfigParameter. This method returns all configuration
parameters that starts with RESOURCE_FOLDER_PREFIX
and folderType is whatever goes after that.
This method also makes sure that the name of the folder has always a backslash "/" at the end.
folderType | integer constant that specifies the type of resource folder to return |
---|
Returns the name of the root component
In the case of the jsp/servlet enviroment,it will be the name of the main servlet component
This corresponds to the value of the parameter CONFIG_SERVLET_NAME
Get the full application path to the Servlet. This value is read form the configuration file and if is not set it will be automatically generated from the request.
String
with the servlet path
This method returns the Session Manager associated with this application context.
Returns an instance of StyleCatalog
associated with the
current BeanContext.
This method returns the Application Session Manager associated with this application context.
If not explicitly set through the #setAppSessionManager method, a new one is automatically
created.
Returns true if the locale is a double byte language like Chinese, Korean or Japenese.
Appends a Configuration Parameter to the Configuration Parameters list. Configuration parameters are defined in the web.xml file using the context-param and init-param tags.
key | name of the configuration parameter |
---|---|
value | value of the configuration parameter |
This method sets the Application Session Manager associated with this application context.
This method sets the BrowserSettings object to be associated with this application context.
bs | An instance of an BrowserSettings object.
|
---|
Define the full application path to the Servlet as defined in the configuration file.
configServletPath | a String with the servlet path
|
---|
This method sets the Container Services object associated with this application context.
cs | A ContainerServices object.
|
---|
Set a page as the current page of this context.
page | PageComponent instance. |
---|
Sets the eventTD provided as the default event of the application
eventID | eventID of the application's default event |
---|
Sets the EventHandlersCatalog
instances associated with the
current BeanContext. This catalog is then used by event-handlers to
populate their events list and arguments. It includes for each event-handler,
what are the events, and for each event, what are the argument and the name
of the arguments used. This EventHandlersCatalog
is typically
configured through the "/WEB-INF/xml/config/events.xml" file.
catalog | an instance of EventHandlersCatalog to set. |
---|
This method sets the External Security associated with this application context.
es | An ExternalSecurity instance.
|
---|
This method sets the Features object associated with this application context.
features | A WebFeatures object.
|
---|
Sets a Messages
instance to this BeanContext.
msgs | the Messages instance to set. |
---|
Sets an instance of MessagesManager
on the current BeanContext.
msgsMgr | an instance of MessagesManager to set. |
---|
This method sets the PageManager object associated with this application context.
pageManager | A PageManager object.
|
---|
This method sets a Preferences object for use with this application context.
prefs | A Preferences object.
|
---|
This method sets the Request Keys object to be associated with this application context.
hrk | An instance of an RequestKeys object.
|
---|
Define the full application path to the Servlet. This value is read form the configuration file and if is not set it will be automatically generated from the request.
servletPath | a String with the servlet path
|
---|
This method sets the Session Manager associated with this application context.
sm | A SessionManager instance.
|
---|
Sets an instance of StyleCatalog
on the current BeanContext.
sc | an instance of StyleCatalog to set. |
---|