Package org.apache.jackrabbit.server.io
Class AbstractExportContext
- java.lang.Object
-
- org.apache.jackrabbit.server.io.AbstractExportContext
-
- All Implemented Interfaces:
ExportContext
,IOContext
- Direct Known Subclasses:
ExportContextImpl
public abstract class AbstractExportContext extends Object implements ExportContext
AbstractExportContext
covers methods common to most ExportContext implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
completed
-
Constructor Summary
Constructors Constructor Description AbstractExportContext(Item exportRoot, boolean hasStream, IOListener ioListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkCompleted()
Item
getExportRoot()
Returns the item to be exportedIOListener
getIOListener()
Returns the IOListener.boolean
hasStream()
Return true if the given export context can provide an output streamvoid
informCompleted(boolean success)
Informs this context that it will not be used for further exports any more.boolean
isCompleted()
Returns true if this context already has been completed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.server.io.ExportContext
getOutputStream, setContentLanguage, setContentLength, setContentType, setCreationTime, setETag, setModificationTime, setProperty
-
-
-
-
Constructor Detail
-
AbstractExportContext
public AbstractExportContext(Item exportRoot, boolean hasStream, IOListener ioListener)
-
-
Method Detail
-
getIOListener
public IOListener getIOListener()
Description copied from interface:IOContext
Returns the IOListener.- Specified by:
getIOListener
in interfaceIOContext
-
getExportRoot
public Item getExportRoot()
Description copied from interface:ExportContext
Returns the item to be exported- Specified by:
getExportRoot
in interfaceExportContext
-
hasStream
public boolean hasStream()
Description copied from interface:IOContext
Return true if the given export context can provide an output stream
-
informCompleted
public void informCompleted(boolean success)
Description copied from interface:IOContext
Informs this context that it will not be used for further exports any more. A boolean flag indicates about the success of the export.- Specified by:
informCompleted
in interfaceIOContext
-
isCompleted
public boolean isCompleted()
Description copied from interface:IOContext
Returns true if this context already has been completed.- Specified by:
isCompleted
in interfaceIOContext
- Returns:
- true if this context already has been completed.
-
checkCompleted
protected void checkCompleted()
-
-