java.lang.Object | |
↳ | com.microstrategy.web.platform.AbstractConfigurableContainerServices |
![]() |
![]() |
This abstract class provides method implementations for newURIParameterBuilder()
, newHiddenInputParameterBuilder()
and
newNamespaceEncoder()
. It provides these implementations based on a configuration file accessed as
the resource called ContainerServices (e.g., ContainerServices.properties). If
present, it reads the file and uses its contents to determine which classes are instantiated.
It currently searches for entries named:
DefaultURIBuilderImpl
, DefaultHiddenInputBuilderImpl
and EmptyNamespaceEncoderImpl
, respectively.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | AbstractConfigurableContainerServices.AbstractContainerStringCollection | Abstract class for string collection classes. | |||||||||
class | AbstractConfigurableContainerServices.CookieWrapper | A implementation of GenericCookies. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | APPLICATION_PARAMETERS_XML_PATH | ||||||||||
String | WEB_XML_PATH |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected static boolean | _prependSlashToResource |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractConfigurableContainerServices() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | decrypt(String encryptedData) | ||||||||||
String | encrypt(String clearData) | ||||||||||
ApplicationParameters |
getApplicationParameters()
Returns the an ApplicationParameters instance that includes all the parameters defined in
the microstrategy.xml or web.xml file
| ||||||||||
String |
getControllerParameter(String paramName, String controllerName)
Returns initialization parameter value for the given controller.
| ||||||||||
GenericCookie |
getCookie(String name)
This method retrieves a platform-independent Cookie with a specific name.
| ||||||||||
GenericCookie |
getCookie(String name, ContainerServicesNamespace namespace)
This method retrieves a platform-independent Cookie with a specific name.
| ||||||||||
String |
getInitParameter(String paramName)
Returns initialization parameter value for the controller associated with this
ContainerServices.
| ||||||||||
Enumeration |
getInitParameterNames()
Returns enumeration of initialization parameter names
| ||||||||||
void |
initGlobalObjects()
Initializes global instances, like FileLoader and Plugins, using this
ContainerServices instance.
| ||||||||||
boolean | isEncryptedByRedirect(String name) | ||||||||||
boolean | isEncryptedParameter(String name) | ||||||||||
boolean |
isQueryParam(String pName)
Returns a boolean indicating whether the input parameter is found in the query
| ||||||||||
GenericCookie |
newCookie(String cookieName, String cookieValue, ContainerServicesNamespace namespace)
This method creates a new platform-independent Cookie.
| ||||||||||
GenericCookie |
newCookie(String cookieName, String cookieValue)
This method creates a new platform-independent Cookie.
| ||||||||||
ParameterBuilder |
newHiddenInputParameterBuilder()
Create a new instance of a ParameterBuilder that is suited for building hidden inputs.
| ||||||||||
NamespaceEncoder |
newNamespaceEncoder()
Create a new instance of a NamespaceEncoder that can provide global namespace support.
| ||||||||||
ParameterBuilder |
newURIParameterBuilder()
Create a new instance of a ParameterBuilder that is suited for building URIs.
| ||||||||||
static boolean |
useNamespaceInCookie()
Returns if there is a namespace used for cookies.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String | getControllerName() | ||||||||||
static ContainerServicesNamespace |
getCookieNamespace()
Returns the namespace object for Cookies.
| ||||||||||
int |
getCookieNamespaceCapacity()
Returns the namespace capacity for cookies.
| ||||||||||
abstract HashList | getCookies(ContainerServicesNamespace namespace) | ||||||||||
String | getNamespacePrefix() | ||||||||||
String |
getNamespaceValue(ContainerServicesNamespace namespace)
Get the namespace value.
| ||||||||||
static String |
getRealName(String nativeName)
Get the real name from native name.
| ||||||||||
ContainerServicesNamespace |
getSessionNamespace()
Returns the namespace object for sessions.
| ||||||||||
int |
getSessionNamespaceCapacity()
return the capacity of namespace of session.
| ||||||||||
static void | initFromPropertiesFile() | ||||||||||
static boolean |
isNamespacedName(String nativeName)
Check if the native name is namespaced name.
| ||||||||||
static boolean |
useNamespace(ContainerServicesNamespace namespace)
Indicates wheter to use namespace
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns the an ApplicationParameters instance that includes all the parameters defined in the microstrategy.xml or web.xml file
Returns initialization parameter value for the given controller. This value is typically read from the microstrategy.xml or web.xml file
paramName | parameter name |
---|---|
controllerName | Name that identifies the controller (e.g. mstrWeb, mstrWebAdmin). null for global paramters. |
This method retrieves a platform-independent Cookie with a specific name.
name | A String which identifies the name of the cookie. |
---|
GenericCookie
for the name supplied. If no cookie exists
with this name, a null
pointer is returned.
This method retrieves a platform-independent Cookie with a specific name.
name | A String which identifies the name of the cookie. |
---|---|
namespace | A ContainerServicesNamespace object represention the namespace requirement. |
GenericCookie
for the name supplied. If no cookie exists
with this name, a null
pointer is returned. Returns initialization parameter value for the controller associated with this
ContainerServices. If no controller has been associated, it returns a
global value. This value is typically read from the microstrategy.xml or web.xml file.
This value is read from the getApplicationParameters()
paramName | parameter name |
---|
Returns enumeration of initialization parameter names
Initializes global instances, like FileLoader and Plugins, using this ContainerServices instance.
Returns a boolean indicating whether the input parameter is found in the query
pName | name of the parameter to be searched in query |
---|
This method creates a new platform-independent Cookie. It is not yet associated with the current Response object.
cookieName | A String which identifies the name of the cookie. |
---|---|
cookieValue | A String representing the value of the cookie. |
namespace | A ContainerServicesNamespace object representing the namespace requirement.
If null, no namespace is used. |
GenericCookie
containing the name/value pair suppliedThis method creates a new platform-independent Cookie. It is not yet associated with the current Response object.
cookieName | A String which identifies the name of the cookie. |
---|---|
cookieValue | A String representing the value of the cookie. |
GenericCookie
containing the name/value pair supplied
Create a new instance of a ParameterBuilder that is suited for building hidden inputs.
Create a new instance of a NamespaceEncoder that can provide global namespace support.
Create a new instance of a ParameterBuilder that is suited for building URIs.
Returns if there is a namespace used for cookies. It is defined in ContainerServices.properties file.
Returns the namespace object for Cookies. The settings are defined in ContainerServices.properties file.
Returns the namespace capacity for cookies. It is defined in ContainerServices.properties file.
Get the real name from native name.
nativeName | The native name. In namespace mode, it contains a special MicroStrategy prefix. |
---|
Returns the namespace object for sessions. The settings are defined in ContainerServices.properties file.
return the capacity of namespace of session.
Check if the native name is namespaced name.
nativeName | The native name. In namespace mode, it contains a special MicroStrategy prefix. |
---|
Indicates wheter to use namespace
namespace | A ContainerServicesNamespace object indecates the namespace requirement. |
---|