Class AbstractConfigurableContainerServices

    • Field Detail

      • _prependSlashToResource

        protected static boolean _prependSlashToResource
      • WEB_XML_PATH

        public static final java.lang.String WEB_XML_PATH
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • APPLICATION_PARAMETERS_XML_PATH

        public static final java.lang.String APPLICATION_PARAMETERS_XML_PATH
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractConfigurableContainerServices

        public AbstractConfigurableContainerServices()
    • Method Detail

      • initFromPropertiesFile

        protected static void initFromPropertiesFile()
        Since:
        MicroStrategy Web 9.0.0
      • getInitParameterNames

        public java.util.Enumeration getInitParameterNames()
        Description copied from interface: ContainerServicesContext
        Returns enumeration of initialization parameter names
        Specified by:
        getInitParameterNames in interface ContainerServicesContext
        Returns:
        enumeration of initialization parameter names
        Since:
        MicroStrategy Web 9.0.0
      • getInitParameter

        public java.lang.String getInitParameter​(java.lang.String paramName)
        Description copied from interface: ContainerServicesContext
        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 ContainerServicesContext.getApplicationParameters()
        Specified by:
        getInitParameter in interface ContainerServicesContext
        Parameters:
        paramName - parameter name
        Returns:
        parameter value
        Since:
        MicroStrategy Web 9.0.0
      • getControllerParameter

        public java.lang.String getControllerParameter​(java.lang.String paramName,
                                                       java.lang.String controllerName)
        Description copied from interface: ContainerServicesContext
        Returns initialization parameter value for the given controller. This value is typically read from the microstrategy.xml or web.xml file
        Specified by:
        getControllerParameter in interface ContainerServicesContext
        Parameters:
        paramName - parameter name
        controllerName - Name that identifies the controller (e.g. mstrWeb, mstrWebAdmin). null for global paramters.
        Returns:
        parameter value
        Since:
        MicroStrategy Web 9.0.0
      • getControllerName

        protected abstract java.lang.String getControllerName()
        Since:
        MicroStrategy Web 9.0.0
      • isNamespacedName

        protected static boolean isNamespacedName​(java.lang.String nativeName)
        Check if the native name is namespaced name.
        Parameters:
        nativeName - The native name. In namespace mode, it contains a special MicroStrategy prefix.
        Returns:
        Ture, if it contains MicorStrategy Namespace prefix. Otherwise return false.
        Since:
        MicroStrategy Web 8.0.2
      • getRealName

        protected static java.lang.String getRealName​(java.lang.String nativeName)
        Get the real name from native name.
        Parameters:
        nativeName - The native name. In namespace mode, it contains a special MicroStrategy prefix.
        Returns:
        The name without MicroStrategy prefix.
        Since:
        MicroStrategy Web 8.0.2
      • newURIParameterBuilder

        public ParameterBuilder newURIParameterBuilder()
        Create a new instance of a ParameterBuilder that is suited for building URIs.
        Specified by:
        newURIParameterBuilder in interface ContainerServices
        Returns:
        An instance of a ParameterBuilder that generates URIs.
      • newHiddenInputParameterBuilder

        public ParameterBuilder newHiddenInputParameterBuilder()
        Create a new instance of a ParameterBuilder that is suited for building hidden inputs.
        Specified by:
        newHiddenInputParameterBuilder in interface ContainerServices
        Returns:
        An instance of a ParameterBuilder that generates a string of hidden inputs.
      • newNamespaceEncoder

        public NamespaceEncoder newNamespaceEncoder()
        Create a new instance of a NamespaceEncoder that can provide global namespace support.
        Specified by:
        newNamespaceEncoder in interface ContainerServices
        Returns:
        An instance of a NamespaceEncoder that should be used for global namespacing.
      • useNamespace

        protected static boolean useNamespace​(ContainerServicesNamespace namespace)
        Indicates wheter to use namespace
        Parameters:
        namespace - A ContainerServicesNamespace object indecates the namespace requirement.
        Returns:
        ture if namespace is not null, and namespace.useNamespace() returns ture.
        Since:
        MicroStrategy Web 8.0.2
      • getCookieNamespace

        protected static ContainerServicesNamespace getCookieNamespace()
        Returns the namespace object for Cookies. The settings are defined in ContainerServices.properties file.
        Since:
        MicroStrategy Web 8.0.2
      • useNamespaceInCookie

        public static boolean useNamespaceInCookie()
        Returns if there is a namespace used for cookies. It is defined in ContainerServices.properties file.
      • getCookieNamespaceCapacity

        protected int getCookieNamespaceCapacity()
        Returns the namespace capacity for cookies. It is defined in ContainerServices.properties file.
        Since:
        MicroStrategy Web 8.0.2
      • getSessionNamespaceCapacity

        protected int getSessionNamespaceCapacity()
        return the capacity of namespace of session.
        Since:
        MicroStrategy Web 8.0.2
      • getSessionNamespace

        protected ContainerServicesNamespace getSessionNamespace()
        Returns the namespace object for sessions. The settings are defined in ContainerServices.properties file.
        Since:
        MicroStrategy Web 8.0.2
      • getNamespaceValue

        protected java.lang.String getNamespaceValue​(ContainerServicesNamespace namespace)
        Get the namespace value.
        Since:
        MicroStrategy Web 8.0.2
      • isEncryptedParameter

        public boolean isEncryptedParameter​(java.lang.String name)
        Since:
        MicroStrategy Web 9.0.0
      • isEncryptedByRedirect

        public boolean isEncryptedByRedirect​(java.lang.String name)
      • encrypt

        public java.lang.String encrypt​(java.lang.String clearData)
        Since:
        MicroStrategy Web 9.0.0
      • decrypt

        public java.lang.String decrypt​(java.lang.String encryptedData)
        Since:
        MicroStrategy Web 9.0.0
      • newCookie

        public GenericCookie newCookie​(java.lang.String cookieName,
                                       java.lang.String cookieValue)
        Description copied from interface: ContainerServices
        This method creates a new platform-independent Cookie. It is not yet associated with the current Response object.
        Specified by:
        newCookie in interface ContainerServices
        Parameters:
        cookieName - A String which identifies the name of the cookie.
        cookieValue - A String representing the value of the cookie.
        Returns:
        A GenericCookie containing the name/value pair supplied
        Since:
        MicroStrategy Web 8.0.2
      • newCookie

        public GenericCookie newCookie​(java.lang.String cookieName,
                                       java.lang.String cookieValue,
                                       ContainerServicesNamespace namespace)
        Description copied from interface: ContainerServices
        This method creates a new platform-independent Cookie. It is not yet associated with the current Response object.
        Specified by:
        newCookie in interface ContainerServices
        Parameters:
        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.
        Returns:
        A GenericCookie containing the name/value pair supplied
        Since:
        MicroStrategy Web 8.0.2
      • getCookie

        public GenericCookie getCookie​(java.lang.String name)
        Description copied from interface: ContainerServices
        This method retrieves a platform-independent Cookie with a specific name.
        Specified by:
        getCookie in interface ContainerServices
        Parameters:
        name - A String which identifies the name of the cookie.
        Returns:
        A GenericCookie for the name supplied. If no cookie exists with this name, a null pointer is returned.
        Since:
        MicroStrategy Web 8.0.2
      • getNamespacePrefix

        protected java.lang.String getNamespacePrefix()
        Since:
        MicroStrategy Web 8.0.2
      • isQueryParam

        public boolean isQueryParam​(java.lang.String pName)
        Description copied from interface: ContainerServices
        Returns a boolean indicating whether the input parameter is found in the query
        Specified by:
        isQueryParam in interface ContainerServices
        Parameters:
        pName - name of the parameter to be searched in query
        Returns:
        true if query contains the parameter name (case-insensitive search) passed as input with a non-empty value