public final class DeliciousURLExtractor extends AbstractWandoraTool
| Modifier and Type | Class and Description |
|---|---|
static class |
DeliciousURLExtractor.ExtractionFailure |
static class |
DeliciousURLExtractor.RequestFailure |
| Modifier and Type | Field and Description |
|---|---|
private TopicMap |
currentMap |
| Constructor and Description |
|---|
DeliciousURLExtractor() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
createHash(java.lang.String target) |
private org.json.JSONArray |
doRequest(java.util.Collection<? extends java.lang.String> targets) |
void |
execute(Wandora admin,
Context context)
Runs the tool.
|
private boolean |
extract(Topic topic) |
static Topic |
getDeliciousClass(TopicMap currentMap) |
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
WandoraToolType |
getType()
Tool type is used to categorize tools.
|
static Topic |
getWandoraClass(TopicMap currentMap) |
private static java.lang.Iterable<Topic> |
inContext(Context context) |
private java.lang.String |
url(java.lang.String str) |
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isConfigurable, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, runInOwnThread, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap, writeOptionsprivate TopicMap currentMap
public WandoraToolType getType()
AbstractWandoraToolTool type is used to categorize tools. Tool type has no real effect today, it is merely an informative property of a tool.
getType in interface WandoraToolgetType in class AbstractWandoraToolpublic java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractWandoraToolpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractWandoraToolpublic javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractWandoraToolpublic void execute(Wandora admin, Context context)
WandoraToolprivate java.lang.String createHash(java.lang.String target)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionprivate org.json.JSONArray doRequest(java.util.Collection<? extends java.lang.String> targets)
throws DeliciousURLExtractor.RequestFailure
public static Topic getDeliciousClass(TopicMap currentMap) throws TopicMapException
TopicMapExceptionpublic static Topic getWandoraClass(TopicMap currentMap) throws TopicMapException
TopicMapExceptionprivate java.lang.String url(java.lang.String str)
throws DeliciousURLExtractor.ExtractionFailure
private boolean extract(Topic topic) throws DeliciousURLExtractor.ExtractionFailure, TopicMapException
Copyright 2004-2015 Wandora Team