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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMixInAnnotations(Class<?> target, Class<?> mixin) protected voidaddResponseHeader(String name, String value) protected voidblockMimeType(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 voiddoError(org.restlet.data.Status status) protected voiddoInit()protected <C extends AbstractController>
CgetController(Class<C> controllerClass) protected intgetIntegerFromQuery(String name, int fallback) protected OntopiaRestApplicationprotected TopicMapReferenceIFprotected voidMethods 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, updateDimensionsMethods 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 Details
-
AbstractOntopiaResource
public AbstractOntopiaResource()
-
-
Method Details
-
doInit
protected void doInit() throws org.restlet.resource.ResourceException- Overrides:
doInitin classorg.restlet.resource.Resource- Throws:
org.restlet.resource.ResourceException
-
getOntopia
-
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
-
getMixInAnnotationsMap
-
getIntegerFromQuery
-
getController
-
doError
protected void doError(org.restlet.data.Status status) - Overrides:
doErrorin classorg.restlet.resource.ServerResource
-
addResponseHeader
-