public class FilterMIMEType
extends java.lang.Object
MediaType represents an individual parsed MIME type string, e.g.
"text/plain; charset=ISO-8859-1".
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
alternateExtensions |
java.lang.String[] |
alternateMimeTypes |
CharsetExtractor |
charsetExtractor |
boolean |
dangerousInlines |
boolean |
dangerousLinks |
boolean |
dangerousReadMetadata |
boolean |
dangerousScripting |
boolean |
dangerousToWriteEvenWithFilter |
boolean |
dangerousWriteMetadata |
java.lang.String |
defaultCharset |
java.lang.String |
primaryExtension |
java.lang.String |
primaryMimeType |
java.lang.String |
readDescription |
ContentDataFilter |
readFilter
Content filter to make data safe to read
|
boolean |
safeToRead
Is the data safe to read as-is? This is true for text/plain.
|
boolean |
safeToWrite
Is the data safe to write as-is?
|
boolean |
takesACharset |
boolean |
useMaybeCharset
If true, if we cannot detect the charset from a definite declaration
or BOM, we will use the charset passed in from the referring document.
|
Modifier and Type | Method and Description |
---|---|
void |
throwUnsafeContentTypeException()
Throw an exception indicating that this is a dangerous content type.
|
public final java.lang.String primaryMimeType
public final java.lang.String[] alternateMimeTypes
public final java.lang.String primaryExtension
public final java.lang.String[] alternateExtensions
public final boolean safeToRead
public final boolean safeToWrite
public final ContentDataFilter readFilter
public final boolean dangerousLinks
public final boolean dangerousInlines
public final boolean dangerousScripting
public final boolean dangerousReadMetadata
public final boolean dangerousWriteMetadata
public final boolean dangerousToWriteEvenWithFilter
public final java.lang.String readDescription
public final boolean takesACharset
public final java.lang.String defaultCharset
public final CharsetExtractor charsetExtractor
public final boolean useMaybeCharset
public void throwUnsafeContentTypeException() throws KnownUnsafeContentTypeException
KnownUnsafeContentTypeException