Version: 1.1.1

org.biomoby.shared
Class MobyResourceRef

java.lang.Object
  extended by org.biomoby.shared.MobyResourceRef
All Implemented Interfaces:
Serializable

public class MobyResourceRef
extends Object
implements Serializable

A container pointing to metadata available from a BioMoby registry. The metadata describe entities that were registered in the registry (such as Service instances, or data types), but they may include additional attributes. This class does not contain resource metadata themselves but a location where they are, and their content type.

Version:
$Id: MobyResourceRef.java,v 1.6 2009/06/09 18:56:55 gordonp Exp $
Author:
Martin Senger
See Also:
Serialized Form

Constructor Summary
MobyResourceRef(String resourceName, URL location, String contentType)
          Normal constructor.
 
Method Summary
 String getResourceContentType()
          Deprecated. Biomoby registry never gives the content type back. Therefore, this method does not have anything reasonable to return.
 URL getResourceLocation()
          Return resource location.
 String getResourceName()
          Return resource name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobyResourceRef

public MobyResourceRef(String resourceName,
                       URL location,
                       String contentType)
Normal constructor.

Parameters:
resourceName - is an ontology name (must be one of these: Central.SERVICE_TYPES_RESOURCE_NAME, Central.DATA_TYPES_RESOURCE_NAME, Central.NAMESPACES_RESOURCE_NAME, Central.SERVICE_INSTANCES_RESOURCE_NAME, Central.FULL_RESOURCE_NAME)
location - where this resource can be fetched from
contentType - a MIME type of the resource; we know that the resources are RDF documents - but they made be compressed - that's why we have this type here (default is "application/rdf+xml")
Method Detail

getResourceName

public String getResourceName()
Return resource name.


getResourceLocation

public URL getResourceLocation()
Return resource location.


getResourceContentType

public String getResourceContentType()
Deprecated. Biomoby registry never gives the content type back. Therefore, this method does not have anything reasonable to return.

Return resource content type.


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010