org.apache.jackrabbit.server.io
Interface ImportContext

All Superinterfaces:
IOContext
All Known Implementing Classes:
ImportContextImpl

public interface ImportContext
extends IOContext

ImportContext...


Method Summary
 String getContentLanguage()
          Returns the content language or null
 long getContentLength()
          Returns the length of the data or -1 if the content length could not be determined.
 String getEncoding()
          Returns the encoding extracted from a content type as present in a request header or null
 Item getImportRoot()
          Returns the import root of the resource to import, i.e. the parent node of the new content to be created.
 InputStream getInputStream()
          Returns the input stream of the data to import or null if there are none.
 String getMimeType()
          Returns the main media type.
 long getModificationTime()
          Returns the modification time of the resource or the current time if the modification time has not been set.
 Object getProperty(Object propertyName)
           
 String getSystemId()
          Returns the system id of the resource to be imported.
 
Methods inherited from interface org.apache.jackrabbit.server.io.IOContext
getIOListener, hasStream, informCompleted, isCompleted
 

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 comming 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 indefined 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

getProperty

Object getProperty(Object propertyName)
Parameters:
propertyName -
Returns:


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.