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
AbstractExportContextcovers methods common to most ExportContext implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancompleted
-
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 voidcheckCompleted()ItemgetExportRoot()Returns the item to be exportedIOListenergetIOListener()Returns the IOListener.booleanhasStream()Return true if the given export context can provide an output streamvoidinformCompleted(boolean success)Informs this context that it will not be used for further exports any more.booleanisCompleted()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:IOContextReturns the IOListener.- Specified by:
getIOListenerin interfaceIOContext
-
getExportRoot
public Item getExportRoot()
Description copied from interface:ExportContextReturns the item to be exported- Specified by:
getExportRootin interfaceExportContext
-
hasStream
public boolean hasStream()
Description copied from interface:IOContextReturn true if the given export context can provide an output stream
-
informCompleted
public void informCompleted(boolean success)
Description copied from interface:IOContextInforms 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:
informCompletedin interfaceIOContext
-
isCompleted
public boolean isCompleted()
Description copied from interface:IOContextReturns true if this context already has been completed.- Specified by:
isCompletedin interfaceIOContext- Returns:
- true if this context already has been completed.
-
checkCompleted
protected void checkCompleted()
-
-