org.opentox.resource
Class ModelInfoResource

java.lang.Object
  extended by org.restlet.resource.UniformResource
      extended by org.restlet.resource.ServerResource
          extended by org.opentox.resource.OTResource
              extended by org.opentox.resource.ModelInfoResource
All Implemented Interfaces:
IProvidesHttpAccess

public class ModelInfoResource
extends OTResource
implements IProvidesHttpAccess

This resource return meta information about a model such as its dependent variables , its independent and predicted variables.

Version:
1.3.3 (Last update: Dec 20, 2009)
Author:
OpenTox - http://www.opentox.org/, Sopasakis Pantelis, Sarimveis Harry

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opentox.resource.OTResource
OTResource.Directories, OTResource.URIs
 
Field Summary
private  java.lang.String info
           
private  java.lang.String model_id
           
 
Fields inherited from class org.opentox.resource.OTResource
htmlEND, htmlHEAD, PMMLIntro, xmlIntro
 
Constructor Summary
ModelInfoResource()
           
 
Method Summary
 void doInit()
          Initialized the resource.
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
          Returns a text/uri list which corresponds to the requested meta-information.
 
Methods inherited from class org.restlet.resource.ServerResource
delete, delete, describeVariants, doConditionalHandle, doGetInfo, doHandle, doHandle, doNegotiatedHandle, get, getInfo, getInfo, getPreferredVariant, getVariants, getVariants, handle, head, head, isAnnotated, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setChallengeRequest, setChallengeRequests, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setServerInfo, setStatus, setStatus, setStatus, setStatus, setVariants, updateAllowedMethods, updateDimensions
 
Methods inherited from class org.restlet.resource.UniformResource
doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, init, isConfidential, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model_id

private java.lang.String model_id

info

private java.lang.String info
Constructor Detail

ModelInfoResource

public ModelInfoResource()
Method Detail

doInit

public void doInit()
            throws org.restlet.resource.ResourceException
Initialized the resource. Allowed HTTP operations and available MIMEs are defined here.

Specified by:
doInit in interface IProvidesHttpAccess
Overrides:
doInit in class org.restlet.resource.UniformResource
Throws:
org.restlet.resource.ResourceException

get

public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
Returns a text/uri list which corresponds to the requested meta-information.

Specified by:
get in interface IProvidesHttpAccess
Overrides:
get in class org.restlet.resource.ServerResource
Parameters:
variant -
Returns:
StringRepresentation