Interface ImportContext

    • Method Detail

      • getImportRoot

        Item getImportRoot()
        Returns the import root of the resource to import, i.e. the parent node of the new content to be created.
        Returns:
        the import root of the resource to import.
      • getSystemId

        String getSystemId()
        Returns the system id of the resource to be imported. This id depends on the system the resource is coming from. it can be a filename, a display name of a webdav resource, an URI, etc.
        Returns:
        the system id of the resource to import
      • getInputStream

        InputStream getInputStream()
        Returns the input stream of the data to import or null if there are none.
        Returns:
        the input stream.
        See Also:
        IOContext.hasStream()
      • getModificationTime

        long getModificationTime()
        Returns the modification time of the resource or the current time if the modification time has not been set.
        Returns:
        the modification time.
      • getContentLanguage

        String getContentLanguage()
        Returns the content language or null
        Returns:
        contentLanguage
      • getContentLength

        long getContentLength()
        Returns the length of the data or -1 if the content length could not be determined.
        Returns:
        the content length
      • getMimeType

        String getMimeType()
        Returns the main media type. It should be retrieved from a content type (as present in a http request) or from the systemId. If either value is undefined null should be returned.
        Returns:
        the mimetype of the resource to be imported
      • getEncoding

        String getEncoding()
        Returns the encoding extracted from a content type as present in a request header or null
        Returns:
        the encoding to be used for importing