Class AbstractResource.WriteCallback

    • Constructor Detail

      • WriteCallback

        public WriteCallback()
    • Method Detail

      • writeData

        public abstract void writeData​(IResource.Attributes attributes)
                                throws java.io.IOException
        Write the resource data to response.
        Parameters:
        attributes - request attributes
        Throws:
        java.io.IOException
      • writeStream

        protected final void writeStream​(IResource.Attributes attributes,
                                         java.io.InputStream stream)
                                  throws java.io.IOException
        Convenience method to write an InputStream to response.
        Parameters:
        attributes - request attributes
        stream - input stream
        Throws:
        java.io.IOException