public abstract class OneAcceptContentConverter extends Object implements DocumentContentConverter
This class implements accept method for One environment (Microsoft docs are stored as octet streams)
Constructor and Description |
---|
OneAcceptContentConverter(Iterable<? extends String> nameContentTypeExtensions,
Set<? extends String> acceptableContentTypes) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ContentMetadata contentMetadata)
Returns whether the given
ContentMetadata can be handled or not. |
Set<com.google.common.net.MediaType> |
getAcceptableContentTypes()
Gets the acceptable content types for the document content converter as input.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertContent, getContentMetadata
public OneAcceptContentConverter(Iterable<? extends String> nameContentTypeExtensions, Set<? extends String> acceptableContentTypes)
nameContentTypeExtensions
- extension accepted in the case when document content type is application/octet-streamacceptableContentTypes
- set of content types which are acceptedpublic boolean accept(ContentMetadata contentMetadata)
DocumentContentConverter
Returns whether the given ContentMetadata
can be handled or not.
accept
in interface DocumentContentConverter
contentMetadata
- the value to decide on whether it can be handledpublic Set<com.google.common.net.MediaType> getAcceptableContentTypes()
DocumentContentConverter
Gets the acceptable content types for the document content converter as input.
getAcceptableContentTypes
in interface DocumentContentConverter
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.