Class MicrosoftGraphFetcher
java.lang.Object
org.apache.tika.pipes.fetcher.AbstractFetcher
org.apache.tika.pipes.fetchers.microsoftgraph.MicrosoftGraphFetcher
- All Implemented Interfaces:
Initializable,Fetcher
Fetches files from Microsoft Graph API.
Fetch keys are ${siteDriveId},${driveItemId}
-
Constructor Summary
ConstructorsConstructorDescriptionMicrosoftGraphFetcher(MicrosoftGraphFetcherConfig microsoftGraphFetcherConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckInitialization(InitializableProblemHandler initializableProblemHandler) fetch(String fetchKey, Metadata metadata, ParseContext parseContext) voidinitialize(Map<String, Param> map) voidsetThrottleSeconds(long[] throttleSeconds) voidsetThrottleSeconds(String commaDelimitedLongs) Set seconds to throttle retries as a comma-delimited list, e.g.: 30,60,120,600Methods inherited from class org.apache.tika.pipes.fetcher.AbstractFetcher
getName, setName
-
Constructor Details
-
MicrosoftGraphFetcher
public MicrosoftGraphFetcher() -
MicrosoftGraphFetcher
-
-
Method Details
-
setThrottleSeconds
Set seconds to throttle retries as a comma-delimited list, e.g.: 30,60,120,600- Parameters:
commaDelimitedLongs-- Throws:
TikaConfigException
-
setThrottleSeconds
public void setThrottleSeconds(long[] throttleSeconds) -
initialize
- Specified by:
initializein interfaceInitializable- Parameters:
map- params to use for initialization
-
checkInitialization
public void checkInitialization(InitializableProblemHandler initializableProblemHandler) throws TikaConfigException - Specified by:
checkInitializationin interfaceInitializable- Parameters:
initializableProblemHandler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-
fetch
public InputStream fetch(String fetchKey, Metadata metadata, ParseContext parseContext) throws TikaException, IOException - Specified by:
fetchin interfaceFetcher- Throws:
TikaExceptionIOException
-