Package com.exedio.cope.pattern
Class MediaImageioFilter
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Pattern
-
- com.exedio.cope.pattern.MediaPath
-
- com.exedio.cope.pattern.MediaFilter
-
- com.exedio.cope.pattern.MediaImageioFilter
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MediaThumbnail
public abstract class MediaImageioFilter extends MediaFilter
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.exedio.cope.pattern.MediaPath
MediaPath.Locator, MediaPath.Log, MediaPath.NotFound
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MediaImageioFilter(Media source)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doGetAndCommit(HttpServletRequest request, HttpServletResponse response, Item item)
The implementor MUSTcommit
the transaction, if the method completes normally (without exception).abstract BufferedImage
filter(BufferedImage in)
byte[]
get(Item item)
String
getContentType(Item item)
JPEGImageWriteParam
getImageWriteParam()
Set<String>
getSupportedSourceContentTypes()
boolean
isContentTypeWrapped()
-
Methods inherited from class com.exedio.cope.pattern.MediaFilter
getLastModified, getLocatorWithFallbackToSource, getSource, getURLWithFallbackToSource, isFinal, isMandatory, isNotNull, isNotNull, isNull, isNull
-
Methods inherited from class com.exedio.cope.pattern.MediaPath
commit, getExceptionLogs, getGuessedUrlLogs, getInfo, getInvalidSpecialLogs, getIsNullLogs, getLocator, getNamedURL, getNoSuchItemLogs, getNoSuchPath, getNoSuchPathLogs, getNotAnItemLogs, getNotComputableLogs, getURL, incrementDelivered, isUrlFingerPrinted, isUrlGuessingPrevented, isUrlGuessingPreventedSecurely, notFoundIsNull, notFoundNotComputable, onMount
-
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, registerSource
-
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
-
-
-
Constructor Detail
-
MediaImageioFilter
protected MediaImageioFilter(Media source)
-
-
Method Detail
-
getSupportedSourceContentTypes
public final Set<String> getSupportedSourceContentTypes()
- Specified by:
getSupportedSourceContentTypes
in classMediaFilter
-
getContentType
public final String getContentType(Item item)
- Specified by:
getContentType
in classMediaPath
-
isContentTypeWrapped
public final boolean isContentTypeWrapped()
- Overrides:
isContentTypeWrapped
in classMediaPath
-
filter
public abstract BufferedImage filter(BufferedImage in)
-
doGetAndCommit
public final void doGetAndCommit(HttpServletRequest request, HttpServletResponse response, Item item) throws IOException, MediaPath.NotFound
Description copied from class:MediaPath
The implementor MUSTcommit
the transaction, if the method completes normally (without exception). Otherwise the implementor may or may not commit the transaction.- Specified by:
doGetAndCommit
in classMediaPath
- Throws:
IOException
MediaPath.NotFound
-
get
public final byte[] get(@Nonnull Item item) throws IOException
- Throws:
IOException
-
getImageWriteParam
public JPEGImageWriteParam getImageWriteParam()
-
-