public abstract class BaseThumbnailGenerator extends Object implements ThumbnailGenerator
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
conditionMap |
protected int |
directoryNameLength |
protected Map<String,String> |
filePathMap |
protected List<String> |
generatorList |
protected int |
maxRedirectCount |
protected String |
name |
| Constructor and Description |
|---|
BaseThumbnailGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(String key,
String regex) |
org.codelibs.core.misc.Tuple3<String,String,String> |
createTask(String path,
Map<String,Object> docMap) |
protected String |
expandPath(String value) |
String |
getName() |
boolean |
isAvailable() |
boolean |
isTarget(Map<String,Object> docMap) |
protected boolean |
process(String id,
BiPredicate<String,String> consumer) |
protected boolean |
process(String id,
Predicate<org.codelibs.fess.crawler.entity.ResponseData> consumer) |
void |
setDirectoryNameLength(int directoryNameLength) |
void |
setGeneratorList(List<String> generatorList) |
void |
setMaxRedirectCount(int maxRedirectCount) |
void |
setName(String name) |
protected void |
updateThumbnailField(String thumbnailId,
String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, generateprotected int directoryNameLength
protected String name
protected int maxRedirectCount
public boolean isTarget(Map<String,Object> docMap)
isTarget in interface ThumbnailGeneratorpublic boolean isAvailable()
isAvailable in interface ThumbnailGeneratorpublic org.codelibs.core.misc.Tuple3<String,String,String> createTask(String path, Map<String,Object> docMap)
createTask in interface ThumbnailGeneratorpublic void setDirectoryNameLength(int directoryNameLength)
protected boolean process(String id, BiPredicate<String,String> consumer)
protected boolean process(String id, Predicate<org.codelibs.fess.crawler.entity.ResponseData> consumer)
public String getName()
getName in interface ThumbnailGeneratorpublic void setName(String name)
public void setMaxRedirectCount(int maxRedirectCount)
Copyright © 2009–2017 CodeLibs. All rights reserved.