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 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>
CgetController(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
-
-
-
-
Method Detail
-
doInit
protected void doInit() throws org.restlet.resource.ResourceException
- Overrides:
doInit
in classorg.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
-
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 classorg.restlet.resource.ServerResource
-
-