Class MicrosoftGraphFetcher
- java.lang.Object
-
- org.apache.tika.pipes.fetcher.AbstractFetcher
-
- org.apache.tika.pipes.fetchers.microsoftgraph.MicrosoftGraphFetcher
-
- All Implemented Interfaces:
Initializable,Fetcher
public class MicrosoftGraphFetcher extends AbstractFetcher implements Initializable
Fetches files from Microsoft Graph API. Fetch keys are ${siteDriveId},${driveItemId}
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphFetcher()MicrosoftGraphFetcher(MicrosoftGraphFetcherConfig microsoftGraphFetcherConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInitialization(InitializableProblemHandler initializableProblemHandler)InputStreamfetch(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,600-
Methods inherited from class org.apache.tika.pipes.fetcher.AbstractFetcher
getName, setName
-
-
-
-
Constructor Detail
-
MicrosoftGraphFetcher
public MicrosoftGraphFetcher()
-
MicrosoftGraphFetcher
public MicrosoftGraphFetcher(MicrosoftGraphFetcherConfig microsoftGraphFetcherConfig)
-
-
Method Detail
-
setThrottleSeconds
@Field public void setThrottleSeconds(String commaDelimitedLongs) throws TikaConfigException
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
public void initialize(Map<String,Param> map)
- 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
-
-