public class SimpleResourceStore extends Object implements ResourceStore
Constructor and Description |
---|
SimpleResourceStore() |
Modifier and Type | Method and Description |
---|---|
String |
getIncludeFilter() |
String |
getPrefix() |
String |
getRegex() |
String |
getReplace() |
int |
getRetries() |
Resource |
retrieveResource(CaptureSearchResult result)
Transform a CaptureSearchResult into a Resource
|
void |
setIncludeFilter(String includeFilter) |
void |
setPrefix(String prefix) |
void |
setRegex(String regex) |
void |
setReplace(String replace) |
void |
setRetries(int retries) |
void |
shutdown()
Release any resources used by this ResourceIndex cleanly
|
public Resource retrieveResource(CaptureSearchResult result) throws ResourceNotAvailableException
ResourceStore
retrieveResource
in interface ResourceStore
result
- CaptureSearchResult which should be retrievedResourceNotAvailableException
- if the resource was unavailable
(down host, corrupted files, etc)public String getPrefix()
public void setPrefix(String prefix)
prefix
- the prefix to setpublic String getRegex()
public void setRegex(String regex)
public String getReplace()
public void setReplace(String replace)
public void shutdown() throws IOException
ResourceStore
shutdown
in interface ResourceStore
IOException
- for usual causespublic int getRetries()
public void setRetries(int retries)
retries
- the number of attempts to fetch resources with an HTTP 502
failure.public String getIncludeFilter()
public void setIncludeFilter(String includeFilter)
Copyright © 2005–2015 IIPC. All rights reserved.