Class ApplicationConfigurationAdapter

    • Constructor Detail

      • ApplicationConfigurationAdapter

        public ApplicationConfigurationAdapter()
    • Method Detail

      • getValidOrigins

        public java.lang.String[] getValidOrigins()
        Description copied from interface: ApplicationConfiguration
        Provides a list of valid origins for CSRF attack detection. When null is returned, all origins are valid and CSRF attack is possible
        Specified by:
        getValidOrigins in interface ApplicationConfiguration
        Returns:
        a list of valid origins, for example ["http://myhost.com", "https://myhost.com"]; these origins are used in CSRF attack detection algorithm
      • getFrameForTemplate

        public java.lang.String getFrameForTemplate​(java.lang.String templateFile,
                                                    HttpAccessor htAccessor)
        Specified by:
        getFrameForTemplate in interface ApplicationConfiguration
        Parameters:
        templateFile - template file name, including extension, but excluding folder names
        htAccessor - http request/response details
        Returns:
        frame template file name (without folders and .html extension)
      • preprocessComponent

        public void preprocessComponent​(java.lang.Object component,
                                        HttpAccessor htAccessor)
        Description copied from interface: ApplicationConfiguration
        This preprocessor is invoked for all components immediately prior get-, post-, put- or delete-method.
        Specified by:
        preprocessComponent in interface ApplicationConfiguration
        Parameters:
        component - component
        htAccessor - http request/response details
      • postprocessComponent

        public void postprocessComponent​(java.lang.Object component,
                                         HttpAccessor htAccessor)
        Description copied from interface: ApplicationConfiguration
        This postprocessor is invoked for all components immediately after get-, post-, put- or delete-method has finished.
        Specified by:
        postprocessComponent in interface ApplicationConfiguration
        Parameters:
        component - component
        htAccessor - http request/response details