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
      • 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
      • getTransformType

        public TransformType getTransformType()
        Gets the transform type.
        Returns:
        the transform type
      • getTransformRule

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

        protected java.io.InputStream getTemplateAsStream​(java.net.URL url)
                                                   throws java.io.IOException
        Gets the template as stream.
        Parameters:
        url - the url of the template
        Returns:
        the input stream of the template
        Throws:
        java.io.IOException - if an I/O error has occurred
      • toString

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