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(MsGraphFetcherConfig msGraphFetcherConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkInitialization(InitializableProblemHandler initializableProblemHandler)
InputStream
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,600-
Methods inherited from class org.apache.tika.pipes.fetcher.AbstractFetcher
getName, setName
-
-
-
-
Constructor Detail
-
MicrosoftGraphFetcher
public MicrosoftGraphFetcher()
-
MicrosoftGraphFetcher
public MicrosoftGraphFetcher(MsGraphFetcherConfig msGraphFetcherConfig)
-
-
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:
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
-
-