public class ImportContextImpl extends Object implements org.apache.jackrabbit.server.io.ImportContext
ImportContextImpl
...Constructor and Description |
---|
ImportContextImpl(javax.jcr.Item importRoot,
String systemId,
org.apache.jackrabbit.webdav.io.InputContext ctx,
InputStream stream,
org.apache.jackrabbit.server.io.IOListener ioListener,
Detector detector)
Creates a new item import context.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentLanguage() |
long |
getContentLength() |
Detector |
getDetector() |
String |
getEncoding() |
javax.jcr.Item |
getImportRoot() |
InputStream |
getInputStream()
Returns a new
InputStream to the temporary file created
during instanciation or null , if this context does not
provide a stream. |
org.apache.jackrabbit.server.io.IOListener |
getIOListener() |
String |
getMimeType() |
long |
getModificationTime() |
Object |
getProperty(Object propertyName) |
String |
getSystemId() |
boolean |
hasStream() |
void |
informCompleted(boolean success) |
boolean |
isCompleted() |
public ImportContextImpl(javax.jcr.Item importRoot, String systemId, org.apache.jackrabbit.webdav.io.InputContext ctx, InputStream stream, org.apache.jackrabbit.server.io.IOListener ioListener, Detector detector) throws IOException
importRoot
- systemId
- ctx
- input context, or null
stream
- document input stream, or null
ioListener
- detector
- content type detectorIOException
IOContext.informCompleted(boolean)
public org.apache.jackrabbit.server.io.IOListener getIOListener()
getIOListener
in interface org.apache.jackrabbit.server.io.IOContext
IOContext.getIOListener()
public javax.jcr.Item getImportRoot()
getImportRoot
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getImportRoot()
public Detector getDetector()
ImportContext#getDetector()
public boolean hasStream()
hasStream
in interface org.apache.jackrabbit.server.io.IOContext
IOContext.hasStream()
public InputStream getInputStream()
InputStream
to the temporary file created
during instanciation or null
, if this context does not
provide a stream.getInputStream
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getInputStream()
,
hasStream()
public String getSystemId()
getSystemId
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getSystemId()
public long getModificationTime()
getModificationTime
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getModificationTime()
public String getContentLanguage()
getContentLanguage
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getContentLanguage()
public long getContentLength()
getContentLength
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getContentLength()
public String getMimeType()
getMimeType
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getMimeType()
public String getEncoding()
getEncoding
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getEncoding()
public Object getProperty(Object propertyName)
getProperty
in interface org.apache.jackrabbit.server.io.ImportContext
ImportContext.getProperty(Object)
public void informCompleted(boolean success)
informCompleted
in interface org.apache.jackrabbit.server.io.IOContext
IOContext.informCompleted(boolean)
public boolean isCompleted()
isCompleted
in interface org.apache.jackrabbit.server.io.IOContext
IOContext.isCompleted()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.