Class BeanBrowseResource

java.lang.Object
org.restlet.resource.Resource
org.restlet.resource.ServerResource

public class BeanBrowseResource extends JobRelatedResource
Restlet Resource which allows browsing the constructed beans in a hierarchical fashion.
Author:
gojomo, nlevitt, adam-miller
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.archive.spring.PathSharingContext
     
    protected String
     

    Fields inherited from class org.archive.crawler.restlet.JobRelatedResource

    beanToNameMap, cj, HIDDEN_PROPS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • appCtx

      protected org.archive.spring.PathSharingContext appCtx
    • beanPath

      protected String 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 class JobRelatedResource
      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 class org.restlet.resource.ServerResource
      Throws:
      org.restlet.resource.ResourceException
    • getBeansRefPath

      public String getBeansRefPath()
    • get

      public org.restlet.representation.Representation get(org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException
      Overrides:
      get in class org.restlet.resource.ServerResource
      Throws:
      org.restlet.resource.ResourceException
    • makeDataModel

      protected BeansModel makeDataModel()
      Constructs a nested Map data structure with the information represented by this Resource. The result is particularly suitable for use with with XmlMarshaller.
      Returns:
      the nested Map data structure