Package org.apache.jackrabbit.server.io
Interface ImportContext
-
- All Superinterfaces:
IOContext
- All Known Implementing Classes:
ImportContextImpl
public interface ImportContext extends IOContext
ImportContext
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContentLanguage()
Returns the content language ornull
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 ornull
Item
getImportRoot()
Returns the import root of the resource to import, i.e.InputStream
getInputStream()
Returns the input stream of the data to import ornull
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 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 ornull
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 ornull
- 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 undefinednull
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 ornull
- Returns:
- the encoding to be used for importing
-
-