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, traversalTimeLimitSecondspublic 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)
TraversalContextNon-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 TraversalContextmimeTypeSupportLevel in class SimpleTraversalContextpublic java.lang.String preferredMimeType(java.util.Set<java.lang.String> mimeTypes)
preferredMimeType in interface TraversalContextpreferredMimeType in class SimpleTraversalContextmimeTypes - a Set of mime types