org.xnap.plugin.jtella
Class JTellaPlugin

java.lang.Object
  extended by org.xnap.plugin.AbstractPlugin
      extended by org.xnap.plugin.jtella.JTellaPlugin
All Implemented Interfaces:
Plugin, SearchProvider

public class JTellaPlugin
extends AbstractPlugin
implements SearchProvider

Provides a gnutella network plugin based on the jtella library.


Constructor Summary
JTellaPlugin()
           
 
Method Summary
 void createConnection()
          Creates a new connection.
 com.kenmccrary.jtella.GNUTellaConnection getConnection()
          Returns the network connection.
static JTellaPlugin getInstance()
           
 java.lang.String getName()
          Returns the name of the plugin.
static JTellaPreferences getPreferences()
           
 MediaType[] getSupportedMediaTypes()
          Returns all supported search media types.
 boolean isStarted()
           
 Search search(SearchFilter filter)
          Creates and returns a JTellaSearch object.
 void start()
          Starts the plugin.
 void startConnection()
          Starts the network connection.
 void startGUI()
          Starts the GUI of the plugin.
 void stop()
          Stops the plugin.
 void stopConnection()
          Stops the connection and creates a new one.
 void stopGUI()
          Stops the GUI of the plugin.
 
Methods inherited from class org.xnap.plugin.AbstractPlugin
getInfo, setInfo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JTellaPlugin

public JTellaPlugin()
Method Detail

getInstance

public static JTellaPlugin getInstance()

getPreferences

public static JTellaPreferences getPreferences()

getConnection

public com.kenmccrary.jtella.GNUTellaConnection getConnection()
Returns the network connection.


getName

public java.lang.String getName()
Returns the name of the plugin.

Specified by:
getName in interface SearchProvider
See Also:
SearchProvider.getName()

getSupportedMediaTypes

public MediaType[] getSupportedMediaTypes()
Returns all supported search media types.

Specified by:
getSupportedMediaTypes in interface SearchProvider

search

public Search search(SearchFilter filter)
Creates and returns a JTellaSearch object.

Specified by:
search in interface SearchProvider

start

public void start()
Starts the plugin.

Specified by:
start in interface Plugin

startGUI

public void startGUI()
Starts the GUI of the plugin.

Specified by:
startGUI in interface Plugin

stop

public void stop()
Stops the plugin. Disposes all singletons.

Specified by:
stop in interface Plugin

stopGUI

public void stopGUI()
Stops the GUI of the plugin.

Specified by:
stopGUI in interface Plugin

createConnection

public void createConnection()
Creates a new connection.


isStarted

public boolean isStarted()

startConnection

public void startConnection()
Starts the network connection.


stopConnection

public void stopConnection()
Stops the connection and creates a new one.

See Also:
#createConnection(boolean)


Copyright © 2001-2005 XNap Team. All Rights Reserved.