|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Resource
org.restlet.resource.ServerResource
com.sibvisions.rad.server.http.rest.service.CallService
public class CallService
The CallService
allows action or object calls.
Constructor Summary | |
---|---|
CallService()
|
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. |
protected java.lang.Object[] |
convertParameter(java.lang.Object... pParams)
Converts a string parameter to a Java object, if possible. |
void |
debug(java.lang.Object... pInfo)
Logs debug information. |
void |
error(java.lang.Object... pInfo)
Logs error information. |
org.restlet.representation.Representation |
handle()
|
protected org.restlet.representation.Representation |
handleException(java.lang.Throwable pException)
Handles an exception. |
void |
info(java.lang.Object... pInfo)
Logs information. |
protected boolean |
isDryRun()
Gets whether the request is a dry-run test. |
protected org.restlet.representation.Representation |
toInternalRepresentation(java.lang.Object pObject)
Configures a Jackson representation. |
Methods inherited from class org.restlet.resource.ServerResource |
---|
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getDescription, getInfo, getInfo, getName, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDescription, setDimensions, setExisting, setLocationRef, setLocationRef, setName, 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, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CallService()
Method Detail |
---|
protected org.restlet.representation.Representation toInternalRepresentation(java.lang.Object pObject)
pObject
- the object to transfer
@Get public org.restlet.representation.Representation call()
@Put @Post public org.restlet.representation.Representation call(org.restlet.representation.Representation pParameter)
pParameter
- the call parameter
public org.restlet.representation.Representation handle()
handle
in class org.restlet.resource.ServerResource
protected org.restlet.representation.Representation handleException(java.lang.Throwable pException)
pException
- the exception
null
protected boolean isDryRun()
true
if the request is a dry-run request (Request-Header: X-DRYRUN is set to "true"),
false
otherwisepublic void debug(java.lang.Object... pInfo)
pInfo
- the debug informationpublic void info(java.lang.Object... pInfo)
pInfo
- the informationpublic void error(java.lang.Object... pInfo)
pInfo
- the error informationprotected java.lang.Object[] convertParameter(java.lang.Object... pParams)
pParams
- the input parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |