Class PluginEngine
java.lang.Object
com.biglybt.core.metasearch.impl.EngineImpl
com.biglybt.core.metasearch.impl.plugin.PluginEngine
- All Implemented Interfaces:
Engine
-
Field Summary
FieldsFields inherited from class com.biglybt.core.metasearch.impl.EngineImpl
LD_AUTO_DL_SUPPORTED, LD_COOKIES, LD_CREATED_BY_ME, LD_ETAG, LD_LAST_MODIFIED, LD_LAST_UPDATE_CHECK, LD_LINK_IS_TORRENT, LD_UPDATE_CHECK_SECS
Fields inherited from interface com.biglybt.core.metasearch.Engine
AUTO_DL_SUPPORTED_NO, AUTO_DL_SUPPORTED_UNKNOWN, AUTO_DL_SUPPORTED_YES, AZ_VERSION, CT_AUDIO, CT_GAME, CT_VIDEO, ENGINE_SOURCE_LOCAL, ENGINE_SOURCE_RSS, ENGINE_SOURCE_STRS, ENGINE_SOURCE_UNKNOWN, ENGINE_SOURCE_VUZE, ENGINE_TYPE_JSON, ENGINE_TYPE_PLUGIN, ENGINE_TYPE_REGEX, ENGINE_TYPE_RSS, ENGINE_TYPE_STRS, FIELD_ASSET_DATE, FIELD_CATEGORY, FIELD_CDPLINK, FIELD_COMMENTS, FIELD_CONTENT_TYPE, FIELD_DATE, FIELD_DISCARD, FIELD_DOWNLOADBTNLINK, FIELD_DRMKEY, FIELD_HASH, FIELD_IDS, FIELD_NAME, FIELD_NAMES, FIELD_PEERS, FIELD_PLAYLINK, FIELD_PRIVATE, FIELD_RANK, FIELD_SEEDS, FIELD_SIZE, FIELD_SUPERSEEDS, FIELD_TORRENTLINK, FIELD_VOTES, FIELD_VOTES_DOWN, SC_BATCH_PERIOD, SC_FORCE_FULL, SC_REMOVE_DUP_HASH, SC_SOURCE, SEL_STATE_AUTO_SELECTED, SEL_STATE_DESELECTED, SEL_STATE_FORCE_DESELECTED, SEL_STATE_MANUAL_SELECTED, SEL_STATE_STRINGS, VUZE_FILE_COMPONENT_ENGINE_KEY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionPluginEngine
(MetaSearchImpl _meta_search, long _id, PluginInterface _pi, SearchProvider _provider) protected
PluginEngine
(MetaSearchImpl _meta_search, Map _map) -
Method Summary
Modifier and TypeMethodDescriptionexportToBencodedMap
(boolean generic) getIcon()
static EngineImpl
importFromBEncodedMap
(MetaSearchImpl meta_search, Map map) boolean
isActive()
boolean
boolean
protected Result[]
searchSupport
(SearchParameter[] params, Map searchContext, int desired_max_matches, int absolute_max_matches, String headers, ResultListener listener) void
setProvider
(PluginInterface _pi, SearchProvider _provider) boolean
supportsContext
(String context_key) boolean
supportsField
(int field) protected boolean
Methods inherited from class com.biglybt.core.metasearch.impl.EngineImpl
addPotentialAssociation, allocateUID, applyRankBias, checkSelectionStateRecorded, configDirty, debugLog, debugStart, delete, exportBEncodedMappings, exportJSONMappings, exportToBencodedMap, exportToJSONObject, exportToJSONString, exportToVuzeFile, exportToVuzeFile, exportToVuzeFile, getAutoDownloadSupported, getAZVersion, getDebugFile, getId, getLastUpdateCheck, getLastUpdated, getLocalBoolean, getLocalLong, getLocalString, getMetaSearch, getName, getPreferredWeighting, getRankBias, getSelectionState, getSource, getString, getString, getSubscription, getType, getUID, getUpdateCheckSecs, getUpdateURL, getUserData, getVersion, importBEncodedMappings, importFromJSONString, importJSONMappings, isAuthenticated, isMine, isPublic, log, log, mapResults, recordSelectionState, reset, sameLogicAs, search, searchAndMap, setDefaultUpdateCheckSecs, setId, setLastUpdateCheck, setLocalBoolean, setLocalLong, setLocalString, setLocalUpdateCheckSecs, setMine, setName, setPreferredDelta, setPublic, setRankBias, setSelectionState, setSource, setUID, setUpdateURL, setUserData, setVersion, vuzeFieldToID, vuzeIDToField
-
Field Details
-
FIELD_MAP
private static int[][] FIELD_MAP -
provider
-
plugin_id
-
-
Constructor Details
-
PluginEngine
public PluginEngine(MetaSearchImpl _meta_search, long _id, PluginInterface _pi, SearchProvider _provider) -
PluginEngine
- Throws:
IOException
-
-
Method Details
-
importFromBEncodedMap
public static EngineImpl importFromBEncodedMap(MetaSearchImpl meta_search, Map map) throws IOException - Throws:
IOException
-
exportToBencodedMap
- Throws:
IOException
-
exportToBencodedMap
- Throws:
IOException
-
setProvider
-
getProvider
-
getPluginID
-
useAccuracyForRank
protected boolean useAccuracyForRank() -
isActive
public boolean isActive()- Specified by:
isActive
in interfaceEngine
- Overrides:
isActive
in classEngineImpl
-
getNameEx
-
getDownloadLinkCSS
-
supportsField
public boolean supportsField(int field) -
supportsContext
-
isAnonymous
public boolean isAnonymous() -
getIcon
-
getReferer
-
searchSupport
protected Result[] searchSupport(SearchParameter[] params, Map searchContext, int desired_max_matches, int absolute_max_matches, String headers, ResultListener listener) throws SearchException - Specified by:
searchSupport
in classEngineImpl
- Throws:
SearchException
-