⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rpplugininterface.java

📁 java 文件下载器。可自定义
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   RPPluginInterface.java

package org.gudy.azureus2.pluginsimpl.remote;

import java.util.*;
import org.gudy.azureus2.core3.util.Constants;
import org.gudy.azureus2.plugins.*;
import org.gudy.azureus2.plugins.clientid.ClientIDManager;
import org.gudy.azureus2.plugins.ddb.DistributedDatabase;
import org.gudy.azureus2.plugins.dht.mainline.MainlineDHTManager;
import org.gudy.azureus2.plugins.download.DownloadManager;
import org.gudy.azureus2.plugins.ipc.IPCInterface;
import org.gudy.azureus2.plugins.ipfilter.IPFilter;
import org.gudy.azureus2.plugins.logging.Logger;
import org.gudy.azureus2.plugins.messaging.MessageManager;
import org.gudy.azureus2.plugins.network.ConnectionManager;
import org.gudy.azureus2.plugins.platform.PlatformManager;
import org.gudy.azureus2.plugins.sharing.ShareException;
import org.gudy.azureus2.plugins.sharing.ShareManager;
import org.gudy.azureus2.plugins.torrent.TorrentManager;
import org.gudy.azureus2.plugins.tracker.Tracker;
import org.gudy.azureus2.plugins.ui.UIManager;
import org.gudy.azureus2.plugins.ui.config.*;
import org.gudy.azureus2.plugins.update.UpdateManager;
import org.gudy.azureus2.plugins.utils.ShortCuts;
import org.gudy.azureus2.plugins.utils.Utilities;
import org.gudy.azureus2.pluginsimpl.remote.download.RPDownloadManager;
import org.gudy.azureus2.pluginsimpl.remote.ipfilter.RPIPFilter;
import org.gudy.azureus2.pluginsimpl.remote.torrent.RPTorrentManager;
import org.gudy.azureus2.pluginsimpl.remote.tracker.RPTracker;
import org.gudy.azureus2.pluginsimpl.remote.utils.RPShortCuts;

// Referenced classes of package org.gudy.azureus2.pluginsimpl.remote:
//			RPObject, RPException, RPPluginConfig, RPReply, 
//			RPRequest, RPRequestDispatcher

public class RPPluginInterface extends RPObject
	implements PluginInterface
{

	protected static long connection_id_next = (new Random()).nextLong();
	protected transient PluginInterface delegate;
	protected transient long request_id_next;
	public String azureus_name;
	public String azureus_version;
	public long _connection_id;

	public static RPPluginInterface create(PluginInterface _delegate)
	{
		RPPluginInterface res = (RPPluginInterface)_lookupLocal(_delegate);
		if (res == null)
			res = new RPPluginInterface(_delegate);
		return res;
	}

	protected RPPluginInterface(PluginInterface _delegate)
	{
		super(_delegate);
		azureus_name = "Azureus";
		azureus_version = "4.2.0.0";
		synchronized (org/gudy/azureus2/pluginsimpl/remote/RPPluginInterface)
		{
			_connection_id = connection_id_next++;
			if (_connection_id == 0L)
				_connection_id = connection_id_next++;
		}
	}

	protected long _getConectionId()
	{
		return _connection_id;
	}

	protected long _getNextRequestId()
	{
		RPPluginInterface rpplugininterface = this;
		JVM INSTR monitorenter ;
		return request_id_next++;
		Exception exception;
		exception;
		throw exception;
	}

	protected void _setDelegate(Object _delegate)
	{
		delegate = (PluginInterface)_delegate;
	}

	public Object _setLocal()
		throws RPException
	{
		return _fixupLocal();
	}

	public RPReply _process(RPRequest request)
	{
		String method = request.getMethod();
		if (method.equals("getPluginProperties"))
		{
			Properties p = new Properties();
			Properties x = delegate.getPluginProperties();
			Object key;
			for (Iterator it = x.keySet().iterator(); it.hasNext(); p.put(key, x.get(key)))
				key = it.next();

			return new RPReply(p);
		}
		if (method.equals("getDownloadManager"))
			return new RPReply(RPDownloadManager.create(delegate.getDownloadManager()));
		if (method.equals("getTorrentManager"))
			return new RPReply(RPTorrentManager.create(delegate.getTorrentManager()));
		if (method.equals("getPluginconfig"))
			return new RPReply(RPPluginConfig.create(delegate.getPluginconfig()));
		if (method.equals("getIPFilter"))
			return new RPReply(RPIPFilter.create(delegate.getIPFilter()));
		if (method.equals("getShortCuts"))
			return new RPReply(RPShortCuts.create(delegate.getShortCuts()));
		if (method.equals("getTracker"))
			return new RPReply(RPTracker.create(delegate.getTracker()));
		else
			throw new RPException((new StringBuilder()).append("Unknown method: ").append(method).toString());
	}

	public PluginManager getPluginManager()
	{
		notSupported();
		return null;
	}

	public Plugin getPlugin()
	{
		notSupported();
		return null;
	}

	public String getAzureusName()
	{
		return azureus_name;
	}

	public String getAzureusVersion()
	{
		return azureus_version;
	}

	public String getApplicationName()
	{
		return Constants.APP_NAME;
	}

	public void addView(PluginView view)
	{
		notSupported();
	}

	public void addConfigUIParameters(Parameter parameters[], String displayName)
	{
		notSupported();
	}

	public void addConfigSection(ConfigSection tab)
	{
		notSupported();
	}

	public void removeConfigSection(ConfigSection tab)
	{
		notSupported();
	}

	public Tracker getTracker()
	{
		RPTracker res = (RPTracker)_dispatcher.dispatch(new RPRequest(this, "getTracker", null)).getResponse();
		res._setRemote(_dispatcher);
		return res;
	}

	public Logger getLogger()
	{
		notSupported();
		return null;
	}

	public IPFilter getIPFilter()
	{
		RPIPFilter res = (RPIPFilter)_dispatcher.dispatch(new RPRequest(this, "getIPFilter", null)).getResponse();
		res._setRemote(_dispatcher);
		return res;
	}

	public DownloadManager getDownloadManager()
	{
		RPDownloadManager res = (RPDownloadManager)_dispatcher.dispatch(new RPRequest(this, "getDownloadManager", null)).getResponse();
		res._setRemote(_dispatcher);
		return res;
	}

	public ShareManager getShareManager()
		throws ShareException
	{
		notSupported();
		return null;
	}

	public Utilities getUtilities()
	{
		notSupported();
		return null;
	}

	public ShortCuts getShortCuts()
	{
		RPShortCuts res = (RPShortCuts)_dispatcher.dispatch(new RPRequest(this, "getShortCuts", null)).getResponse();
		res._setRemote(_dispatcher);
		return res;
	}

	public UIManager getUIManager()
	{
		notSupported();
		return null;
	}

	public TorrentManager getTorrentManager()
	{
		RPTorrentManager res = (RPTorrentManager)_dispatcher.dispatch(new RPRequest(this, "getTorrentManager", null)).getResponse();
		res._setRemote(_dispatcher);
		return res;
	}

	/**
	 * @deprecated Method openTorrentFile is deprecated
	 */

	public void openTorrentFile(String fileName)
	{
		notSupported();
	}

	/**
	 * @deprecated Method openTorrentURL is deprecated
	 */

	public void openTorrentURL(String url)
	{
		notSupported();
	}

	public Properties getPluginProperties()
	{
		return (Properties)_dispatcher.dispatch(new RPRequest(this, "getPluginProperties", null)).getResponse();
	}

	public String getPluginDirectoryName()
	{
		notSupported();
		return null;
	}

	public boolean isShared()
	{
		notSupported();
		return false;
	}

	public String getPluginName()
	{
		notSupported();
		return null;
	}

	public String getPluginID()
	{
		notSupported();
		return null;
	}

	public boolean isMandatory()
	{
		notSupported();
		return false;
	}

	public boolean isBuiltIn()
	{
		notSupported();
		return false;
	}

	public boolean isSigned()
	{
		notSupported();
		return false;
	}

	public boolean isOperational()
	{
		notSupported();
		return false;
	}

	public void setDisabled(boolean disabled)
	{
		notSupported();
	}

	public boolean isDisabled()
	{
		notSupported();
		return false;
	}

	public String getPluginVersion()
	{
		notSupported();
		return null;
	}

	public PluginConfig getPluginconfig()
	{
		RPPluginConfig res = (RPPluginConfig)_dispatcher.dispatch(new RPRequest(this, "getPluginconfig", null)).getResponse();
		res._setRemote(_dispatcher);
		return res;
	}

	public PluginConfigUIFactory getPluginConfigUIFactory()
	{
		notSupported();
		return null;
	}

	public ClassLoader getPluginClassLoader()
	{
		notSupported();
		return null;
	}

	public PluginInterface getLocalPluginInterface(Class plugin, String id)
	{
		notSupported();
		return null;
	}

	public IPCInterface getIPC()
	{
		notSupported();
		return null;
	}

	public UpdateManager getUpdateManager()
	{
		notSupported();
		return null;
	}

	public boolean isUnloadable()
	{
		notSupported();
		return false;
	}

	public void unload()
		throws PluginException
	{
		notSupported();
	}

	public void reload()
		throws PluginException
	{
		notSupported();
	}

	public void uninstall()
		throws PluginException
	{
		notSupported();
	}

	public boolean isInitialisationThread()
	{
		notSupported();
		return false;
	}

	public ClientIDManager getClientIDManager()
	{
		notSupported();
		return null;
	}

	public ConnectionManager getConnectionManager()
	{
		notSupported();
		return null;
	}

	public MessageManager getMessageManager()
	{
		notSupported();
		return null;
	}

	public DistributedDatabase getDistributedDatabase()
	{
		notSupported();
		return null;
	}

	public PlatformManager getPlatformManager()
	{
		notSupported();
		return null;
	}

	public void addListener(PluginListener l)
	{
		notSupported();
	}

	public void removeListener(PluginListener l)
	{
		notSupported();
	}

	public void firePluginEvent(PluginEvent event)
	{
		notSupported();
	}

	public void addEventListener(PluginEventListener l)
	{
		notSupported();
	}

	public void removeEventListener(PluginEventListener l)
	{
		notSupported();
	}

	public ConfigSection[] getConfigSections()
	{
		return null;
	}

	public MainlineDHTManager getMainlineDHTManager()
	{
		notSupported();
		return null;
	}

	public PluginState getPluginState()
	{
		notSupported();
		return null;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -