Package org.archive.crawler.restlet
Class BeanBrowseResource
java.lang.Object
org.restlet.resource.Resource
org.restlet.resource.ServerResource
org.archive.crawler.restlet.BaseResource
org.archive.crawler.restlet.JobRelatedResource
org.archive.crawler.restlet.BeanBrowseResource
Restlet Resource which allows browsing the constructed beans in
a hierarchical fashion.
- Author:
- gojomo, nlevitt, adam-miller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.archive.spring.PathSharingContext
protected String
Fields inherited from class org.archive.crawler.restlet.JobRelatedResource
beanToNameMap, cj, HIDDEN_PROPS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.restlet.representation.Representation
get
(org.restlet.representation.Variant variant) void
init
(org.restlet.Context ctx, org.restlet.Request req, org.restlet.Response res) protected BeansModel
Constructs a nested Map data structure with the information represented by this Resource.protected org.restlet.representation.Representation
post
(org.restlet.representation.Representation entity, org.restlet.representation.Variant variant) Methods inherited from class org.archive.crawler.restlet.JobRelatedResource
addPresentableNestedNames, defaultUpdateDescriptor, getPropertyDescriptors, makePresentableMapFor, makePresentableMapFor, makePresentableMapFor
Methods inherited from class org.archive.crawler.restlet.BaseResource
getApplication, getEngine, getStaticRef, render, render
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doHandle, doNegotiatedHandle, get, getAnnotation, getAnnotation, getAnnotations, getAttribute, getDescription, getInfo, getInfo, getName, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, 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, 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, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toString
-
Field Details
-
appCtx
protected org.archive.spring.PathSharingContext appCtx -
beanPath
-
-
Constructor Details
-
BeanBrowseResource
public BeanBrowseResource()
-
-
Method Details
-
init
public void init(org.restlet.Context ctx, org.restlet.Request req, org.restlet.Response res) throws org.restlet.resource.ResourceException - Overrides:
init
in classJobRelatedResource
- Throws:
org.restlet.resource.ResourceException
-
post
protected org.restlet.representation.Representation post(org.restlet.representation.Representation entity, org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException - Overrides:
post
in classorg.restlet.resource.ServerResource
- Throws:
org.restlet.resource.ResourceException
-
getBeansRefPath
-
get
public org.restlet.representation.Representation get(org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException - Overrides:
get
in classorg.restlet.resource.ServerResource
- Throws:
org.restlet.resource.ResourceException
-
makeDataModel
Constructs a nested Map data structure with the information represented by this Resource. The result is particularly suitable for use with withXmlMarshaller
.- Returns:
- the nested Map data structure
-