public class UploadReader extends ServiceableReader
Reader for generating binary output of previously
uploaded file.| Modifier and Type | Field and Description |
|---|---|
private Collection<String> |
_allowedFormats |
private CurrentUserProvider |
_currentUserProvider |
private int |
_height |
private int |
_maxHeight |
private int |
_maxWidth |
private boolean |
_readForDownload |
private Upload |
_upload |
private UploadManager |
_uploadManager |
private int |
_width |
managerobjectModel, out, parameters, resolver, source| Constructor and Description |
|---|
UploadReader() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_isImage()
Determines if the file is an image
|
void |
generate() |
long |
getLastModified() |
String |
getMimeType() |
void |
recycle() |
void |
service(ServiceManager serviceManager) |
void |
setup(SourceResolver res,
Map objModel,
String src,
Parameters par) |
setOutputStream, shouldSetContentLengthenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprivate CurrentUserProvider _currentUserProvider
private UploadManager _uploadManager
private int _width
private int _height
private int _maxWidth
private int _maxHeight
private boolean _readForDownload
private final Collection<String> _allowedFormats
public UploadReader()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ServiceableReaderServiceExceptionpublic void recycle()
recycle in interface Recyclablerecycle in class AbstractReaderpublic void setup(SourceResolver res, Map objModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
setup in interface SitemapModelComponentsetup in class AbstractReaderProcessingExceptionSAXExceptionIOExceptionpublic long getLastModified()
getLastModified in interface ReadergetLastModified in class AbstractReaderpublic String getMimeType()
getMimeType in interface SitemapOutputComponentgetMimeType in class AbstractReaderpublic void generate() throws IOException, SAXException, ProcessingException
protected boolean _isImage()
true if file is a image