Interface OutputContext

  • All Known Implementing Classes:
    OutputContextImpl

    public interface OutputContext
    OutputContext...
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.OutputStream getOutputStream()
      Return the output stream to be used for the export or null
      boolean hasStream()
      Return true if the given export context can provide an output stream
      void setContentLanguage​(java.lang.String contentLanguage)
      Sets the content language.
      void setContentLength​(long contentLength)
      Sets the length of the data.
      void setContentType​(java.lang.String contentType)
      Set the content type for the resource content
      void setETag​(java.lang.String etag)
      Sets the ETag of the resource.
      void setModificationTime​(long modificationTime)
      Sets the modification time of the resource
      void setProperty​(java.lang.String propertyName, java.lang.String propertyValue)
      Allows to set additional properties that are not covered by an extra setter method.
    • Method Detail

      • hasStream

        boolean hasStream()
        Return true if the given export context can provide an output stream
      • getOutputStream

        java.io.OutputStream getOutputStream()
        Return the output stream to be used for the export or null
        Returns:
      • setContentLanguage

        void setContentLanguage​(java.lang.String contentLanguage)
        Sets the content language.
        Parameters:
        contentLanguage -
      • setContentLength

        void setContentLength​(long contentLength)
        Sets the length of the data.
        Parameters:
        contentLength - the content length
      • setContentType

        void setContentType​(java.lang.String contentType)
        Set the content type for the resource content
        Parameters:
        contentType -
      • setModificationTime

        void setModificationTime​(long modificationTime)
        Sets the modification time of the resource
        Parameters:
        modificationTime - the modification time
      • setETag

        void setETag​(java.lang.String etag)
        Sets the ETag of the resource. A successful export command may set this member.
        Parameters:
        etag - the ETag
      • setProperty

        void setProperty​(java.lang.String propertyName,
                         java.lang.String propertyValue)
        Allows to set additional properties that are not covered by an extra setter method.
        Parameters:
        propertyName -
        propertyValue -