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, writeOptions
private TopicMap currentMap
public WandoraToolType getType()
AbstractWandoraTool
Tool 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 WandoraTool
getType
in class AbstractWandoraTool
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractWandoraTool
public java.lang.String getDescription()
AbstractWandoraTool
getDescription
in interface WandoraTool
getDescription
in class AbstractWandoraTool
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractWandoraTool
public void execute(Wandora admin, Context context)
WandoraTool
private java.lang.String createHash(java.lang.String target) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
private org.json.JSONArray doRequest(java.util.Collection<? extends java.lang.String> targets) throws DeliciousURLExtractor.RequestFailure
public static Topic getDeliciousClass(TopicMap currentMap) throws TopicMapException
TopicMapException
public static Topic getWandoraClass(TopicMap currentMap) throws TopicMapException
TopicMapException
private 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