org.globus.cog.gridface.impl.mimehandler
Class MimeHandler

java.lang.Object
  extended byorg.globus.cog.gridface.impl.mimehandler.MimeHandler

public class MimeHandler
extends Object


Constructor Summary
MimeHandler(GridCommandManager gcm)
          Create the MimeHandler.
 
Method Summary
 void addType(String type, String handlingClassName)
          Add a type and a handling class to the hashtable.
 Hashtable getHash()
           
 Object lookup(URI lookupURI)
          Given a URI, get the type and instantiate the appropriate object, passing the provided URI to the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeHandler

public MimeHandler(GridCommandManager gcm)
Create the MimeHandler. At some point we'd probably be loading up the keys from a file that the user saved somewhere.

Method Detail

lookup

public Object lookup(URI lookupURI)
Given a URI, get the type and instantiate the appropriate object, passing the provided URI to the constructor.

Parameters:
lookupURI - The URI passed to the constructor of the object that will be instantiated.
Returns:
The instantiated object.

addType

public void addType(String type,
                    String handlingClassName)
Add a type and a handling class to the hashtable.

Parameters:
type -
handlingClassName -

getHash

public Hashtable getHash()