Package com.exedio.cope.pattern
Class MediaFilter
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.MediaPath
com.exedio.cope.pattern.MediaFilter
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MediaImageioFilter,TextUrlFilter,TextUrlFilterDelegator
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.exedio.cope.pattern.MediaPath
MediaPath.Locator, MediaPath.Log, MediaPath.NotFound -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DategetLastModified(Item item) The default implementation returns null.final MediaPath.LocatorReturns the same result asgetLocator, if this filter supports filtering thesource mediafor this item.final Mediafinal StringReturns the same result asgetURL, if this filter supports filtering thesource mediafor this item.booleanisFinal()Returns, whether the contents of this media path may change or not.final booleanA MediaPath is "mandatory" ifMediaPath.getContentType(Item)andMediaPath.getLocator(Item)will not returnnullfor any item.final ConditionReturns a condition matching all items, for whichMediaPath.getLocator(Item)does not return null.final ConditionReturns a condition matching all items, for whichMediaPath.getLocator(Item)does not return null.final ConditionisNull()Returns a condition matching all items, for whichMediaPath.getLocator(Item)returns null.final ConditionReturns a condition matching all items, for whichMediaPath.getLocator(Item)returns null.Methods inherited from class com.exedio.cope.pattern.MediaPath
commit, doGetAndCommit, getContentType, getExceptionLogs, getGuessedUrlLogs, getInfo, getInvalidSpecialLogs, getIsNullLogs, getLocator, getNamedURL, getNoSuchItemLogs, getNoSuchPath, getNoSuchPathLogs, getNotAnItemLogs, getNotComputableLogs, getURL, incrementDelivered, isContentTypeWrapped, isUrlFingerPrinted, isUrlGuessingPrevented, isUrlGuessingPreventedSecurely, notFoundIsNull, notFoundNotComputable, onMountMethods 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, registerSourceMethods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Constructor Details
-
MediaFilter
-
-
Method Details
-
getSource
-
getSupportedSourceContentTypes
-
isFinal
public boolean isFinal()Description copied from class:MediaPathReturns, whether the contents of this media path may change or not. The default implementation returns false. -
getLastModified
Description copied from class:MediaPathThe default implementation returns null.- Overrides:
getLastModifiedin classMediaPath- Parameters:
item- the item which has the LastModified information
-
getURLWithFallbackToSource
Returns the same result asgetURL, if this filter supports filtering thesource mediafor this item. Otherwise it returnsgetSource().getURL(item). -
getLocatorWithFallbackToSource
Returns the same result asgetLocator, if this filter supports filtering thesource mediafor this item. Otherwise it returnsgetSource().getLocator(item). -
isMandatory
public final boolean isMandatory()Description copied from class:MediaPathA MediaPath is "mandatory" ifMediaPath.getContentType(Item)andMediaPath.getLocator(Item)will not returnnullfor any item.- Specified by:
isMandatoryin classMediaPath
-
isNull
Description copied from class:MediaPathReturns a condition matching all items, for whichMediaPath.getLocator(Item)returns null. -
isNull
Description copied from class:MediaPathReturns a condition matching all items, for whichMediaPath.getLocator(Item)returns null. -
isNotNull
Description copied from class:MediaPathReturns a condition matching all items, for whichMediaPath.getLocator(Item)does not return null. -
isNotNull
Description copied from class:MediaPathReturns a condition matching all items, for whichMediaPath.getLocator(Item)does not return null.
-