Class CustomTransformResponse

    • Constructor Detail

      • CustomTransformResponse

        public CustomTransformResponse()
        Instantiates a new CustomTransformResponse.
      • CustomTransformResponse

        public CustomTransformResponse​(CustomTransformer transformer)
        Instantiates a new CustomTransformResponse.
        Parameters:
        transformer - the custom transformer
    • Method Detail

      • commit

        public void commit​(Activity activity)
        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
      • 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
      • getContentType

        public java.lang.String getContentType​(Activity activity)
        Description copied from interface: Response
        Gets the content type.
        Specified by:
        getContentType in interface Response
        Parameters:
        activity - the current activity
        Returns:
        the content type
      • toString

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