Class AbstractOntopiaResource

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addMixInAnnotations​(Class<?> target, Class<?> mixin)  
      protected void addResponseHeader​(String name, String value)  
      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 doInit()  
      protected <C extends AbstractController>
      C
      getController​(Class<C> controllerClass)  
      protected int getIntegerFromQuery​(String name, int fallback)  
      protected Map<Class<?>,​Class<?>> getMixInAnnotationsMap()  
      protected OntopiaRestApplication getOntopia()  
      protected TopicMapReferenceIF getTopicMapReference()  
      protected void setInfoHeaders()  
      • 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
    • Constructor Detail

      • AbstractOntopiaResource

        public AbstractOntopiaResource()
    • Method Detail

      • doInit

        protected void doInit()
                       throws org.restlet.resource.ResourceException
        Overrides:
        doInit in class org.restlet.resource.Resource
        Throws:
        org.restlet.resource.ResourceException
      • 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)
      • 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)