Class TransformResponse

    • Constructor Detail

      • TransformResponse

        public TransformResponse​(TransformRule transformRule)
        Instantiates a new TransformResponse.
        Parameters:
        transformRule - the transform rule
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
        Description copied from interface: Response
        Gets the content type.
        Specified by:
        getContentType in interface Response
        Returns:
        the content type
      • getFormatType

        public FormatType getFormatType()
        Gets the format type.
        Returns:
        the format type
      • getTransformRule

        public TransformRule getTransformRule()
        Gets the transform rule.
        Returns:
        the transform rule
      • commit

        public void commit​(Activity activity)
                    throws ResponseException
        Description copied from interface: Response
        The result of the activity is processed into a specific response form and then sent to the client.
        Specified by:
        commit in interface Response
        Parameters:
        activity - the current Activity
        Throws:
        ResponseException - the response exception
      • transform

        protected abstract void transform​(Activity activity)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object