net.fortytwo.sesametools.ldserver
Class WebResource

java.lang.Object
  extended by org.restlet.resource.Resource
      extended by org.restlet.resource.UniformResource
          extended by org.restlet.resource.ServerResource
              extended by net.fortytwo.sesametools.ldserver.WebResource

public class WebResource
extends org.restlet.resource.ServerResource

Information and non-information resources are distinguished by the suffix of the resource's URI: 1) information resource URIs end in .rdf or .trig 2) non-information resources have no such suffix (and TwitLogic will not make statements about such URIs)

A request for an information resource is fulfilled with the resource itself. No content negotiation occurs.

A request for a non-information resource is fulfilled with a 303-redirect to an information resource of the appropriate media type.

Author:
Joshua Shinavier (http://fortytwo.net)

Field Summary
protected  org.openrdf.sail.Sail sail
           
protected  String selfURI
           
protected  net.fortytwo.sesametools.ldserver.WebResource.WebResourceCategory webResourceCategory
           
 
Constructor Summary
WebResource()
           
 
Method Summary
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
           
 
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
 
Methods inherited from class org.restlet.resource.Resource
doError, doInit, 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, toObject, toRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selfURI

protected String selfURI

webResourceCategory

protected net.fortytwo.sesametools.ldserver.WebResource.WebResourceCategory webResourceCategory

sail

protected org.openrdf.sail.Sail sail
Constructor Detail

WebResource

public WebResource()
            throws Exception
Throws:
Exception
Method Detail

get

@Get
public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
Overrides:
get in class org.restlet.resource.ServerResource


Copyright © 2013. All Rights Reserved.