protected static class BasicElevationModel.DownloadPostProcessor extends AbstractRetrievalPostProcessor
| Modifier and Type | Field and Description |
|---|---|
protected BasicElevationModel |
elevationModel |
protected FileStore |
fileStore |
protected Tile |
tile |
avList, retriever| Constructor and Description |
|---|
DownloadPostProcessor(Tile tile,
BasicElevationModel em) |
DownloadPostProcessor(Tile tile,
BasicElevationModel em,
FileStore fileStore) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
doGetOutputFile()
Abstract method that subclasses must provide to identify the output file for the post-processor's retrieval
content.
|
protected java.lang.Object |
getFileLock()
Returns an object that can be used to synchronize writing to the output file.
|
protected FileStore |
getFileStore() |
protected java.nio.ByteBuffer |
handleSuccessfulRetrieval()
Process the retrieved data if it has been retrieved successfully.
|
protected java.nio.ByteBuffer |
handleTextContent()
Handles Text content.
|
protected void |
markResourceAbsent()
Marks the retrieval target absent.
|
protected boolean |
overwriteExistingFile()
Indicates whether the retrieved data should be written to the output file if a file of the same name already
exists.
|
convertToDDS, getOutputFile, getRetriever, handleApplicationContent, handleContent, handleContentException, handleHTMLContent, handleImageContent, handleInvalidResponseCode, handleUnknownContentType, handleUnsuccessfulRetrieval, handleWMSExceptionContent, handleXMLContent, handleZipContent, isDeleteOnExit, isPrimaryContentType, isWMSException, logTextBuffer, run, saveBuffer, saveBuffer, saveDDS, transformPixels, validateHTTPResponseCode, validateJarResponseCode, validateResponseCodeprotected final BasicElevationModel elevationModel
protected final FileStore fileStore
protected final Tile tile
public DownloadPostProcessor(Tile tile, BasicElevationModel em)
public DownloadPostProcessor(Tile tile, BasicElevationModel em, FileStore fileStore)
protected java.io.File doGetOutputFile()
AbstractRetrievalPostProcessordoGetOutputFile in class AbstractRetrievalPostProcessorprotected java.lang.Object getFileLock()
AbstractRetrievalPostProcessorgetFileLock in class AbstractRetrievalPostProcessorprotected FileStore getFileStore()
protected java.nio.ByteBuffer handleSuccessfulRetrieval()
AbstractRetrievalPostProcessorhandleSuccessfulRetrieval in class AbstractRetrievalPostProcessorprotected java.nio.ByteBuffer handleTextContent()
throws java.io.IOException
AbstractRetrievalPostProcessorAbstractRetrievalPostProcessor.handleXMLContent() is called. If the content type
is text/html, AbstractRetrievalPostProcessor.handleHTMLContent() is called. For all other sub-types the content is logged as a message
with level Level.SEVERE.handleTextContent in class AbstractRetrievalPostProcessorjava.io.IOException - if an IO error occurs while processing the data.protected void markResourceAbsent()
AbstractRetrievalPostProcessormarkResourceAbsent in class AbstractRetrievalPostProcessorprotected boolean overwriteExistingFile()
AbstractRetrievalPostProcessoroverwriteExistingFile in class AbstractRetrievalPostProcessor