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
ConstructorDescriptionMicrosoftGraphFetcher
(MicrosoftGraphFetcherConfig microsoftGraphFetcherConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkInitialization
(InitializableProblemHandler initializableProblemHandler) fetch
(String fetchKey, Metadata metadata, ParseContext parseContext) void
initialize
(Map<String, Param> map) void
setThrottleSeconds
(long[] throttleSeconds) void
setThrottleSeconds
(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:
initialize
in interfaceInitializable
- Parameters:
map
- params to use for initialization
-
checkInitialization
public void checkInitialization(InitializableProblemHandler initializableProblemHandler) throws TikaConfigException - Specified by:
checkInitialization
in 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:
fetch
in interfaceFetcher
- Throws:
TikaException
IOException
-