Class ResourceObject

java.lang.Object
  |
  +--ResourceObject
All Implemented Interfaces:
java.io.Serializable

public class ResourceObject
extends java.lang.Object
implements java.io.Serializable

ResourceObjects represents the results of a resource search on the network, where each returned result is depicted by a ResourceObject.

ResourceObjects capture the essential information about a resource so that a peer can access/request it from the host.


 
Method Summary
 java.lang.String GetID()
           
 java.lang.String GetMediatype()
           
 java.lang.String GetNickname()
           
 java.lang.String GetPipeAd()
           
 java.lang.String GetPluginID()
           
 java.lang.String GetResourceDescription()
           
 java.lang.String GetResourceID()
           
 java.lang.String GetResourceName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Method Detail

GetID

public java.lang.String GetID()

This method returns the unique ID of the (user) peer that hosts this resource.


GetPipeAd

public java.lang.String GetPipeAd()

This method returns the Pipe Advert of the peer that hosts this resource. This advert is required so that the target peer can be contacted.


GetResourceName

public java.lang.String GetResourceName()

This method returns the name of the resource. In some situations (for example, file sharing), this name represents the resources unique ID.


GetResourceDescription

public java.lang.String GetResourceDescription()

This method returns a brief description of the resource.


GetMediatype

public java.lang.String GetMediatype()

This method returns the MediaType ID of the resource.


GetResourceID

public java.lang.String GetResourceID()

This method returns the ID of the resource as known by the plugin that is making it available. In some cases the name of the resource is used as the unique identifier.


GetPluginID

public java.lang.String GetPluginID()

This method returns the ID of the plugin that this resource is provided by.


GetNickname

public java.lang.String GetNickname()

This method returns the Nickname of the user that is hosting this resource.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

This method returns the contents of ResourceObject as a flat String.