public class FakeTraversalContext extends SimpleTraversalContext
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAXIMUM_DOCUMENT_SIZE |
static java.lang.String |
TAR_DOT_GZ_EXTENSION |
Constructor and Description |
---|
FakeTraversalContext() |
FakeTraversalContext(long maxDocumentSize) |
Modifier and Type | Method and Description |
---|---|
void |
allowAllMimeTypes(boolean newValue) |
int |
mimeTypeSupportLevel(java.lang.String mimeType)
Gets information about whether a mime type is supported.
|
java.lang.String |
preferredMimeType(java.util.Set<java.lang.String> mimeTypes)
Returns lexically first provided mime type.
|
maxDocumentSize, setMaxDocumentSize, setMimeTypeSet, setSupportsDenyAcls, setSupportsInheritedAcls, setTraversalTimeLimitSeconds, supportsDenyAcls, supportsInheritedAcls, traversalTimeLimitSeconds
public static final long DEFAULT_MAXIMUM_DOCUMENT_SIZE
public static final java.lang.String TAR_DOT_GZ_EXTENSION
public FakeTraversalContext()
public FakeTraversalContext(long maxDocumentSize)
public void allowAllMimeTypes(boolean newValue)
public int mimeTypeSupportLevel(java.lang.String mimeType)
TraversalContext
Non-positive numbers mean that there is no support for this mime type. A zero value indicates the content encoding is not supported. The connector may choose to supply meta-data for the document, but the content should not be provided.
A negative value indicates the document should be skipped entirely. Neither the content, nor the meta-data should be provided.
mimeTypeSupportLevel
in interface TraversalContext
mimeTypeSupportLevel
in class SimpleTraversalContext
public java.lang.String preferredMimeType(java.util.Set<java.lang.String> mimeTypes)
preferredMimeType
in interface TraversalContext
preferredMimeType
in class SimpleTraversalContext
mimeTypes
- a Set
of mime types