public class BasicResource
extends org.restlet.ext.wadl.WadlServerResource
Modifier and Type | Field and Description |
---|---|
protected List<String> |
fields |
protected Map<String,String> |
queryValues |
protected Registration |
registration |
Constructor and Description |
---|
BasicResource()
Constructor for BasicResource.
|
Modifier and Type | Method and Description |
---|---|
protected void |
authenticate()
authenticate.
|
protected void |
doInit() |
static int |
parseClientInt(String attribute)
Parses the ID field and throws resourceExceptions as needed
|
protected static void |
setRegistrationService(RegistrationService registrationService)
Setter for the field
registrationService . |
static <T> T |
testIfNull(T o)
testIfNull.
|
canDescribe, createHtmlRepresentation, createWadlRepresentation, describe, describe, describe, describe, describe, describe, describe, describe, describeDelete, describeGet, describeMethod, describeMethod, describeOptions, describeParameters, describePatch, describePost, describePut, getDescription, getName, getParameter, getParameters, getPreferredWadlVariant, getResourcePath, getResourcesBase, getWadlVariants, isAutoDescribing, options, setAutoDescribing, setDescription, setName
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, patch, patch, 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
doError, 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
protected Registration registration
protected static void setRegistrationService(RegistrationService registrationService)
Setter for the field registrationService
.
registrationService
- a RegistrationService
object.protected void doInit() throws org.restlet.resource.ResourceException
doInit
in class org.restlet.ext.wadl.WadlServerResource
org.restlet.resource.ResourceException
protected void authenticate() throws org.restlet.resource.ResourceException
authenticate.
org.restlet.resource.ResourceException
- if any.public static <T> T testIfNull(T o)
testIfNull.
public static int parseClientInt(String attribute) throws org.restlet.resource.ResourceException
attribute
- org.restlet.resource.ResourceException
Copyright © 2015 SeqWare. All rights reserved.