com.sibvisions.rad.server.http.rest
Class CallServerResource

java.lang.Object
  extended by org.restlet.resource.Resource
      extended by org.restlet.resource.UniformResource
          extended by org.restlet.resource.ServerResource
              extended by com.sibvisions.rad.server.http.rest.CallServerResource

public class CallServerResource
extends org.restlet.resource.ServerResource

The CallServerResource allows action or object calls.


Constructor Summary
CallServerResource()
           
 
Method Summary
 org.restlet.representation.Representation call()
          Executes an object or action call without parameters.
 org.restlet.representation.Representation call(org.restlet.representation.Representation pParameter)
          Executes an object or action call with or without parameters.
 
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
 
Methods inherited from class org.restlet.resource.Resource
doError, doInit, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toObject, toRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallServerResource

public CallServerResource()
Method Detail

call

@Get
public org.restlet.representation.Representation call()
                                               throws Throwable
Executes an object or action call without parameters.

Returns:
the call result in JSON representation
Throws:
Throwable - if call fails because the method is not available or the call throws an Exception

call

@Put
@Post
public org.restlet.representation.Representation call(org.restlet.representation.Representation pParameter)
                                               throws Throwable
Executes an object or action call with or without parameters.

Parameters:
pParameter - the call parameter
Returns:
call result in JSON representation
Throws:
Throwable - if call fails because the method is not available or the call throws an Exception


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.