Package com.exedio.cope.pattern
Class TextUrlFilterDelegator
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.TextUrlFilterDelegator
- All Implemented Interfaces:
TextUrlFilterCheckable
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.exedio.cope.pattern.MediaPath
MediaPath.Locator, MediaPath.Log, MediaPath.NotFound
-
Constructor Summary
ConstructorsConstructorDescriptionTextUrlFilterDelegator
(Media raw, TextUrlFilter delegate, String supportedContentType, Charset charset, String pasteStart, String pasteStop) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendKey
(StringBuilder bf, Item item, String key, HttpServletRequest request) final void
doGetAndCommit
(HttpServletRequest request, HttpServletResponse response, Item item) The implementor MUSTcommit
the transaction, if the method completes normally (without exception).final String
getContent
(Item item, HttpServletRequest request) final String
getContentType
(Item item) final MediaPath.Locator
getPasteLocator
(Item item, String key) final String
getPasteURL
(Item item, String key) final boolean
final void
setRaw
(Item item, Media.Value raw) 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 Details
-
TextUrlFilterDelegator
-
-
Method Details
-
setRaw
- Throws:
IOException
-
getPasteLocator
-
getPasteURL
-
getContentType
- Specified by:
getContentType
in classMediaPath
-
isContentTypeWrapped
public final boolean isContentTypeWrapped()- Overrides:
isContentTypeWrapped
in classMediaPath
-
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
-
getContent
@Nonnull public final String getContent(@Nonnull Item item, @Nonnull HttpServletRequest request) throws MediaPath.NotFound - Throws:
MediaPath.NotFound
-
check
- Specified by:
check
in interfaceTextUrlFilterCheckable
- Throws:
MediaPath.NotFound
-
appendKey
-
getSupportedSourceContentTypes
- Specified by:
getSupportedSourceContentTypes
in classMediaFilter
-
getPasteContentTypesAllowed
-