public abstract class AbstractExportContext extends Object implements ExportContext
AbstractExportContext
covers methods common to most ExportContext
implementations.Modifier and Type | Field and Description |
---|---|
protected boolean |
completed |
Constructor and Description |
---|
AbstractExportContext(Item exportRoot,
boolean hasStream,
IOListener ioListener) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkCompleted() |
Item |
getExportRoot()
Returns the item to be exported
|
IOListener |
getIOListener()
Returns the IOListener.
|
boolean |
hasStream()
Return true if the given export context can provide an output stream
|
void |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOutputStream, setContentLanguage, setContentLength, setContentType, setCreationTime, setETag, setModificationTime, setProperty
public AbstractExportContext(Item exportRoot, boolean hasStream, IOListener ioListener)
public IOListener getIOListener()
IOContext
getIOListener
in interface IOContext
public Item getExportRoot()
ExportContext
getExportRoot
in interface ExportContext
public boolean hasStream()
IOContext
public void informCompleted(boolean success)
IOContext
informCompleted
in interface IOContext
public boolean isCompleted()
IOContext
isCompleted
in interface IOContext
protected void checkCompleted()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.