Class AbstractOntopiaResource

java.lang.Object
org.restlet.resource.Resource
org.restlet.resource.ServerResource
net.ontopia.topicmaps.rest.resources.AbstractOntopiaResource
Direct Known Subclasses:
AbstractPagedResource, APIInfoResource

public class AbstractOntopiaResource extends org.restlet.resource.ServerResource
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addMixInAnnotations(Class<?> target, Class<?> mixin)
     
    protected void
     
    protected void
    blockMimeType(org.restlet.data.MediaType... types)
    Blocks the use of specified mime types for this resource, as it is known that the converter for that mime type cannot produce the representation for the Resource's target class.
    protected void
    doError(org.restlet.data.Status status)
     
    protected void
     
    protected <C extends AbstractController>
    C
    getController(Class<C> controllerClass)
     
    protected int
    getIntegerFromQuery(String name, int fallback)
     
    protected Map<Class<?>,Class<?>>
     
     
     
    protected void
     

    Methods inherited from class org.restlet.resource.ServerResource

    abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, get, 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, 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, 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 Details

    • AbstractOntopiaResource

      public AbstractOntopiaResource()
  • Method Details

    • doInit

      protected void doInit() throws org.restlet.resource.ResourceException
      Overrides:
      doInit in class org.restlet.resource.Resource
      Throws:
      org.restlet.resource.ResourceException
    • getOntopia

      protected OntopiaRestApplication getOntopia()
    • getTopicMapReference

      protected TopicMapReferenceIF getTopicMapReference()
    • setInfoHeaders

      protected void setInfoHeaders()
    • blockMimeType

      protected void blockMimeType(org.restlet.data.MediaType... types)
      Blocks the use of specified mime types for this resource, as it is known that the converter for that mime type cannot produce the representation for the Resource's target class.
      Parameters:
      types - The mime types to block
    • addMixInAnnotations

      protected void addMixInAnnotations(Class<?> target, Class<?> mixin)
    • getMixInAnnotationsMap

      protected Map<Class<?>,Class<?>> getMixInAnnotationsMap()
    • getIntegerFromQuery

      protected int getIntegerFromQuery(String name, int fallback)
    • getController

      protected <C extends AbstractController> C getController(Class<C> controllerClass)
    • doError

      protected void doError(org.restlet.data.Status status)
      Overrides:
      doError in class org.restlet.resource.ServerResource
    • addResponseHeader

      protected void addResponseHeader(String name, String value)