org.opentox.resource
Class ShutDownResource

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.ShutDownResource
All Implemented Interfaces:
IAcceptsRepresentation, IProvidesHttpAccess

public class ShutDownResource
extends OTResource
implements IAcceptsRepresentation, IProvidesHttpAccess

Author:
chung

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opentox.resource.OTResource
OTResource.Directories, OTResource.URIs
 
Field Summary
private static boolean sentShutDownRequest
           
private static long timeOfShutDownRequest
           
 
Fields inherited from class org.opentox.resource.OTResource
htmlEND, htmlHEAD, PMMLIntro, xmlIntro
 
Constructor Summary
ShutDownResource()
           
 
Method Summary
 void doInit()
           
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
           
 org.restlet.representation.Representation post(org.restlet.representation.Representation entity)
          Implementation of the POST method for the specific resource.
 
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, 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

sentShutDownRequest

private static boolean sentShutDownRequest

timeOfShutDownRequest

private static long timeOfShutDownRequest
Constructor Detail

ShutDownResource

public ShutDownResource()
Method Detail

doInit

public void doInit()
            throws org.restlet.resource.ResourceException
Specified by:
doInit in interface IProvidesHttpAccess
Overrides:
doInit in class org.restlet.resource.UniformResource
Throws:
org.restlet.resource.ResourceException

post

public org.restlet.representation.Representation post(org.restlet.representation.Representation entity)
                                               throws org.restlet.resource.ResourceException
Description copied from interface: IAcceptsRepresentation
Implementation of the POST method for the specific resource.

Specified by:
post in interface IAcceptsRepresentation
Overrides:
post in class org.restlet.resource.ServerResource
Parameters:
entity - The posted entity.
Returns:
The optinal represnetation of the resource following the POST.
Throws:
org.restlet.resource.ResourceException

get

public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
                                              throws org.restlet.resource.ResourceException
Specified by:
get in interface IProvidesHttpAccess
Overrides:
get in class org.restlet.resource.ServerResource
Throws:
org.restlet.resource.ResourceException