eu.larkc.core.endpoint.test
Class TestEndpointResource

java.lang.Object
  extended by org.restlet.resource.UniformResource
      extended by org.restlet.resource.ServerResource
          extended by eu.larkc.core.endpoint.test.TestEndpointResource

public class TestEndpointResource
extends org.restlet.resource.ServerResource

This class implements the methods which the testendpoint has (POST, GET).

Author:
norlan

Constructor Summary
TestEndpointResource()
           
 
Method Summary
 void executeQuery(org.restlet.representation.Representation entity)
          This method executes a query.
 SetOfStatements getResults()
          Returns the results of the workflow.
 
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, getOnSent, getVariants, handle, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods
 
Methods inherited from class org.restlet.resource.UniformResource
getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, release, setRequest, setResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestEndpointResource

public TestEndpointResource()
Method Detail

executeQuery

@Post
public void executeQuery(org.restlet.representation.Representation entity)
                  throws java.lang.Exception
This method executes a query.

Parameters:
entity - the entity
Throws:
java.lang.Exception - if the query is empty

getResults

@Get
public SetOfStatements getResults()
Returns the results of the workflow.

Returns:
the results