Interface EmbeddedAspectran

    • Method Detail

      • isExposable

        boolean isExposable​(java.lang.String transletName)
        Returns whether or not the translet can be exposed to the daemon service.
        Parameters:
        transletName - the name of the translet to check
        Returns:
        true if the translet can be exposed; false otherwise
      • newSessionAdapter

        SessionAdapter newSessionAdapter()
        Create and return a new session adapter from the embedded aspectran.
        Returns:
        the session adapter
      • translate

        Translet translate​(java.lang.String name)
        Executes the translet.
        Parameters:
        name - the translet name
        Returns:
        the Translet object
      • translate

        Translet translate​(java.lang.String name,
                           java.lang.String body)
      • translate

        Translet translate​(java.lang.String name,
                           ParameterMap parameterMap)
        Executes the translet with the given parameters.
        Parameters:
        name - the translet name
        parameterMap - the parameter map
        Returns:
        the Translet object
      • translate

        Translet translate​(java.lang.String name,
                           ParameterMap parameterMap,
                           java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet with the given parameters and attributes.
        Parameters:
        name - the translet name
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the Translet object
      • translate

        Translet translate​(java.lang.String name,
                           java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet with the given parameters.
        Parameters:
        name - the translet name
        attributeMap - the attribute map
        Returns:
        the Translet object
      • translate

        Translet translate​(java.lang.String name,
                           MethodType method)
        Executes the translet without the supplied variables.
        Parameters:
        name - the translet name
        method - the request method
        Returns:
        the Translet object
      • translate

        Translet translate​(java.lang.String name,
                           MethodType method,
                           ParameterMap parameterMap)
        Executes the translet with the given parameters.
        Parameters:
        name - the translet name
        method - the request method
        parameterMap - the parameter map
        Returns:
        the Translet object
      • translate

        Translet translate​(java.lang.String name,
                           MethodType method,
                           java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet with the given attributes.
        Parameters:
        name - the translet name
        method - the request method
        attributeMap - the attribute map
        Returns:
        the Translet object
      • translate

        Translet translate​(java.lang.String name,
                           MethodType method,
                           ParameterMap parameterMap,
                           java.util.Map<java.lang.String,​java.lang.Object> attributeMap,
                           java.lang.String body)
        Executes the translet with the given parameters and attributes.
        Parameters:
        name - the translet name
        method - the request method
        parameterMap - the parameter map
        attributeMap - the attribute map
        body - the request body
        Returns:
        the Translet object
      • render

        java.lang.String render​(java.lang.String templateId)
        Renders the template without the supplied variables.
        Parameters:
        templateId - the template id
        Returns:
        the output string of the template
      • render

        java.lang.String render​(java.lang.String templateId,
                                ParameterMap parameterMap)
        Renders the template with the given parameters.
        Parameters:
        templateId - the template id
        parameterMap - the parameter map
        Returns:
        the output string of the template
      • render

        java.lang.String render​(java.lang.String templateId,
                                java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Renders the template with the given attributes.
        Parameters:
        templateId - the template id
        attributeMap - the attribute map
        Returns:
        the output string of the template
      • render

        java.lang.String render​(java.lang.String templateId,
                                ParameterMap parameterMap,
                                java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Renders the template with the given parameters and attributes.
        Parameters:
        templateId - the template id
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the output string of the template
      • release

        void release()
        Stop the service and release all allocated resources.
      • run

        static EmbeddedAspectran run​(java.lang.String aspectranConfigFile)
        Creates and starts a new DefaultEmbeddedAspectran.
        Parameters:
        aspectranConfigFile - the aspectran configuration file
        Returns:
        the instance of EmbeddedAspectran
      • run

        static EmbeddedAspectran run​(java.io.File aspectranConfigFile)
        Creates and starts a new DefaultEmbeddedAspectran.
        Parameters:
        aspectranConfigFile - the aspectran configuration file
        Returns:
        the instance of EmbeddedAspectran
      • run

        static EmbeddedAspectran run​(java.io.Reader configFileReader)
        Creates and starts a new DefaultEmbeddedAspectran.
        Parameters:
        configFileReader - the aspectran configuration file reader
        Returns:
        the instance of EmbeddedAspectran
      • run

        static EmbeddedAspectran run​(AspectranConfig aspectranConfig)
        Creates and starts a new DefaultEmbeddedAspectran.
        Parameters:
        aspectranConfig - the parameters for aspectran configuration
        Returns:
        the instance of EmbeddedAspectran