|
||||||||||
| 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.AdminService
public class AdminService
The AdminService is a special administrative service.
| Field Summary | |
|---|---|
protected static String |
JCODE_END
the java code suffix. |
protected static String |
JCODE_START
the java code prefix. |
| Constructor Summary | |
|---|---|
AdminService()
|
|
| Method Summary | |
|---|---|
protected void |
checkDoS(String pUserName)
Checks whether a user is able to use the service. |
protected Object[] |
convertParameter(Object... pParams)
Converts a string parameter to a Java object, if possible. |
protected org.restlet.representation.Representation |
createExceptionResponse(RestServiceException pException,
Throwable pCause)
Creates a general representation for a given service exception. |
void |
debug(Object... pInfo)
Logs debug information. |
void |
error(Object... pInfo)
Logs error information. |
org.restlet.representation.Representation |
execute(org.restlet.representation.Representation pParameter)
Executes special admin calls. |
protected DirectServerSession |
getSession()
Gets the session for the current user. |
org.restlet.representation.Representation |
handle()
|
protected org.restlet.representation.Representation |
handleException(Throwable pException)
Handles an exception. |
void |
info(Object... pInfo)
Logs information. |
protected boolean |
isDryRun()
Gets whether the request is a dry-run test. |
protected org.restlet.representation.Representation |
toHtmlErrorRepresentation(IBean pBean)
Converts an error bean to a html response. |
protected org.restlet.representation.Representation |
toInternalRepresentation(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 |
| Field Detail |
|---|
protected static final String JCODE_START
protected static final String JCODE_END
| Constructor Detail |
|---|
public AdminService()
| Method Detail |
|---|
@Post public org.restlet.representation.Representation execute(org.restlet.representation.Representation pParameter)
pParameter - the parameters
protected void checkDoS(String pUserName)
pUserName - the user namepublic org.restlet.representation.Representation handle()
handle in class org.restlet.resource.ServerResourceprotected org.restlet.representation.Representation handleException(Throwable pException)
pException - the exception
null
protected org.restlet.representation.Representation createExceptionResponse(RestServiceException pException,
Throwable pCause)
pException - the service exceptionpCause - the exception cause
null if no general representation could be createdprotected boolean isDryRun()
true if the request is a dry-run request (Request-Header: X-DRYRUN is set to "true"),
false otherwiseprotected org.restlet.representation.Representation toInternalRepresentation(Object pObject)
pObject - the object to transfer
protected org.restlet.representation.Representation toHtmlErrorRepresentation(IBean pBean)
pBean - the error bean
public void debug(Object... pInfo)
pInfo - the debug informationpublic void info(Object... pInfo)
pInfo - the informationpublic void error(Object... pInfo)
pInfo - the error informationprotected Object[] convertParameter(Object... pParams)
pParams - the input parameter
protected DirectServerSession getSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||