Uses of Class
com.janeirodigital.shapetrees.core.exceptions.ShapeTreeException
Packages that use ShapeTreeException
Package
Description
Implementation of
client-side
shape tree validation using the OkHttp HTTP client for Java.
-
Uses of ShapeTreeException in com.janeirodigital.shapetrees.client.okhttp
Methods in com.janeirodigital.shapetrees.client.okhttp with parameters of type ShapeTreeExceptionModifier and TypeMethodDescriptionstatic okhttp3.ResponseOkHttpHelper.createErrorResponse(okhttp3.Request nativeRequest, ShapeTreeException exception) Methods in com.janeirodigital.shapetrees.client.okhttp that throw ShapeTreeExceptionModifier and TypeMethodDescriptionstatic okhttp3.ResponseOkHttpHelper.checkResponse(okhttp3.Response response) Check the providedresponsefor viabilitystatic okhttp3.ResponseOkHttpHelper.createInvalidResponse(okhttp3.Request nativeRequest, ContainingValidationResult containingResult) static okhttp3.ResponseOkHttpHelper.createInvalidResponse(okhttp3.Request nativeRequest, ValidationResult result) OkHttpResourceAccessor.createResource(ShapeTreeContext context, URL url, ResourceAttributes attributes, String body, String contentType) static okhttp3.ResponseOkHttpHelper.deleteHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials) CallOkHttpHelper.deleteHttpResource(OkHttpClient, URL, String, Headers)without any additional headers suppliedstatic okhttp3.ResponseOkHttpHelper.deleteHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials, okhttp3.Headers headers) Perform an HTTP DELETE on the resource aturl.OkHttpResourceAccessor.deleteResource(ShapeTreeContext context, InstanceResource deleteResource) Deletes the providedInstanceResourcedeleteResourcestatic ShapeTreeManagerOkHttpShapeTreeClient.discover(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl) Discover the ShapeTreeManager associated with a given target resource.static okhttp3.OkHttpClientOkHttpValidatingClientFactory.get()Customized the basic OkHttpClient received from the configuredOkHttpClientFactorywith an interceptor to provide client-side shape tree validation.static OkHttpClientFactoryOkHttpClientFactoryManager.getFactory()static okhttp3.ResponseOkHttpHelper.getHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials) CallsOkHttpHelper.getHttpResource(OkHttpClient, URL, String, Headers)without any additional headers supplied.static okhttp3.ResponseOkHttpHelper.getHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials, okhttp3.Headers headers) Perform an HTTP GET on the resource aturl.okhttp3.OkHttpClientOkHttpClientFactory.getOkHttpClient()Reuses or constructs a new regular OkHttpClientOkHttpResourceAccessor.getResource(ShapeTreeContext context, URL url) Get aInstanceResourceat the providedurl, which may or may not exist.OkHttpExternalDocumentLoader.loadExternalDocument(URL resourceUrl) Load a non-POD document This fulfils the ExternalDocumentLoader interface, so this factory can be use in DocumentLoaderManager.setLoader(new OkHttpShapeTreeClientFactory(...));static okhttp3.ResponseOkHttpShapeTreeClient.patch(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl, List<URL> focusNodes, String body) static okhttp3.ResponseOkHttpHelper.patchHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials, String body, ContentType contentType) CallOkHttpHelper.patchHttpResource(OkHttpClient, URL, String, Headers, String, ContentType)without any additional headers suppliedstatic okhttp3.ResponseOkHttpHelper.patchHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials, okhttp3.Headers headers, String body, ContentType contentType) Perform an HTTP PATCH on the resource aturl.static okhttp3.ResponseOkHttpShapeTreeClient.plant(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl, URL shapeTreeUrl, URL focusNodeUrl) Shape Trees, ยง4.2: This operation marks an existing resource as being managed by one or more shape trees, by associating a shape tree manager with the resource, and turning it into a managed resource.static okhttp3.ResponseOkHttpShapeTreeClient.post(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL parentContainer, List<URL> focusNodes, List<URL> targetShapeTrees, String slug, boolean isContainer, String body, ContentType contentType) static okhttp3.ResponseOkHttpHelper.postHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials, String body, ContentType contentType) CallOkHttpHelper.postHttpResource(OkHttpClient, URL, String, Headers, String, ContentType)without any additional headers supplied.static okhttp3.ResponseOkHttpHelper.postHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials, okhttp3.Headers headers, String body, ContentType contentType) Perform an HTTP POST on the resource aturl.static okhttp3.ResponseOkHttpShapeTreeClient.put(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl, List<URL> focusNodes, String body, ContentType contentType) static okhttp3.ResponseOkHttpShapeTreeClient.put(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl, List<URL> focusNodes, List<URL> targetShapeTrees, Boolean isContainer, String body, ContentType contentType) static okhttp3.ResponseOkHttpHelper.putHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials, String body, ContentType contentType) CallOkHttpHelper.putHttpResource(OkHttpClient, URL, String, Headers, String, ContentType)without any additional headers suppliedstatic okhttp3.ResponseOkHttpHelper.putHttpResource(okhttp3.OkHttpClient okHttpClient, URL url, String credentials, okhttp3.Headers headers, String body, ContentType contentType) Perform an HTTP PUT on the resource aturl.static okhttp3.ResponseOkHttpShapeTreeClient.unplant(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl, URL shapeTreeUrl) OkHttpResourceAccessor.updateResource(ShapeTreeContext context, InstanceResource updateResource, String body) protected abstract Optional<okhttp3.Response>OkHttpValidatingMethodHandler.validateRequest(okhttp3.Request nativeRequest, ShapeTreeRequest shapeTreeRequest, ShapeTreeContext shapeTreeContext, ManageableInstance requestInstance) protected Optional<okhttp3.Response>OkHttpValidatingPatchMethodHandler.validateRequest(okhttp3.Request nativeRequest, ShapeTreeRequest shapeTreeRequest, ShapeTreeContext shapeTreeContext, ManageableInstance targetInstance) protected Optional<okhttp3.Response>OkHttpValidatingPostMethodHandler.validateRequest(okhttp3.Request nativeRequest, ShapeTreeRequest shapeTreeRequest, ShapeTreeContext shapeTreeContext, ManageableInstance targetInstance) protected Optional<okhttp3.Response>OkHttpValidatingPutMethodHandler.validateRequest(okhttp3.Request nativeRequest, ShapeTreeRequest shapeTreeRequest, ShapeTreeContext shapeTreeContext, ManageableInstance targetInstance) Constructors in com.janeirodigital.shapetrees.client.okhttp that throw ShapeTreeException -
Uses of ShapeTreeException in com.janeirodigital.shapetrees.core.contentloaders
Methods in com.janeirodigital.shapetrees.core.contentloaders that throw ShapeTreeExceptionModifier and TypeMethodDescriptionstatic ExternalDocumentLoaderDocumentLoaderManager.getLoader()Return an ExternalDocumentLoader that was previously set and stored staticallyExternalDocumentLoader.loadExternalDocument(URL resourceUrl) Describes the retrieval of a remote documentHttpExternalDocumentLoader.loadExternalDocument(URL resourceUrl) -
Uses of ShapeTreeException in com.janeirodigital.shapetrees.core.helpers
Methods in com.janeirodigital.shapetrees.core.helpers that throw ShapeTreeExceptionModifier and TypeMethodDescriptionstatic voidDocumentResponseHelper.checkStringAsUrl(String urlString) Check the validity of a URL string valuestatic org.apache.jena.graph.GraphRequestHelper.getIncomingBodyGraph(ShapeTreeRequest shapeTreeRequest, URL baseUrl, InstanceResource targetResource) Loads body of request into graphRequestHelper.getIncomingFocusNodes(ShapeTreeRequest shapeTreeRequest, URL baseUrl) static URLRequestHelper.getIncomingParentContainerUrl(ShapeTreeRequest shapeTreeRequest) Get the URL of the incoming resource target's parent containerstatic ShapeTreeResourceTypeRequestHelper.getIncomingResourceType(ShapeTreeRequest shapeTreeRequest) Determines the type of resource represented by an incoming ShapeTreeRequest.static ShapeTreeManagerRequestHelper.getIncomingShapeTreeManager(ShapeTreeRequest shapeTreeRequest, ManagerResource managerResource) RequestHelper.getIncomingTargetShapeTrees(ShapeTreeRequest shapeTreeRequest, URL baseUrl) Gets target shape tree / hint from request headerstatic org.apache.jena.graph.TripleCreate a new triple statement with stringsstatic org.apache.jena.graph.TripleCreate a new triple statement with URIsstatic URLGraphHelper.nodeToUrl(org.apache.jena.graph.Node node) Convert an RDFNode value to URLstatic URLRequestHelper.normalizeSolidResourceUrl(URL url, String requestedName, ShapeTreeResourceType resourceType) Normalizes the BaseURL to use for a request based on the incoming request.static org.apache.jena.graph.GraphGraphHelper.readStringIntoGraph(URI baseURI, String rawContent, String contentType) Deserializes a string into a Graphstatic org.apache.jena.rdf.model.ModelGraphHelper.readStringIntoModel(URI baseURI, String rawContent, String contentType) Deserializes a string into a Modelstatic URLDocumentResponseHelper.stringToUrl(String urlString) Convert the provided URL string value to URLstatic URLDocumentResponseHelper.stringToUrl(URL context, String urlString) Convert the provided URL string value to a URL, using the provided URLcontext -
Uses of ShapeTreeException in com.janeirodigital.shapetrees.core.resources
Methods in com.janeirodigital.shapetrees.core.resources that throw ShapeTreeExceptionModifier and TypeMethodDescriptionstatic URLManageableInstance.calculateManagedUrl(URL managerUrl, ResourceAttributes attributes) Looks for the presence of the http://www.w3.org/ns/shapetrees#manages HTTP Link Relation in the providedattributes, with a valid target URL of aManagedResource.static ManageableInstanceManageableInstance.createInstanceResource(ResourceAccessor accessor, ShapeTreeContext context, URL resourceUrl, ResourceAttributes headers, String body, String contentType) Creates the resource identified by the providedresourceUrland gets a correspondingManageableInstance.ResourceAccessor.createResource(ShapeTreeContext context, URL resourceUrl, ResourceAttributes headers, String body, String contentType) Creates a specificInstanceResourceidentified by the providedresourceUrl.ResourceAccessor.deleteResource(ShapeTreeContext context, InstanceResource deleteResource) Deletes a specificInstanceResourceidentified by the providedupdatedResourceManageableInstance.getContainedInstances()Gets a list ofManageableInstances contained in a managed resource that is a container.org.apache.jena.graph.GraphGet an RDF graph of the body of the InstanceResource.static ManageableInstanceManageableInstance.getInstance(ResourceAccessor accessor, ShapeTreeContext context, URL resourceUrl) Return aManageableInstanceconstructed starting with the resource identified by the providedresourceUrl.ManagerResource.getManager()Get a ShapeTreeManager from the body of the ManagerResourceResourceAccessor.getResource(ShapeTreeContext context, URL resourceUrl) Gets a specificInstanceResourceidentified by the providedresourceUrl.static ManageableInstanceManageableInstance.reloadInstance(ManageableInstance originalInstance) Return a new version of providedManageableInstanceoriginalInstanceResourceAccessor.updateResource(ShapeTreeContext context, InstanceResource updatedResource, String body) Updates a specificInstanceResourceidentified by the providedupdatedResource -
Uses of ShapeTreeException in com.janeirodigital.shapetrees.core.validation
Methods in com.janeirodigital.shapetrees.core.validation that throw ShapeTreeExceptionModifier and TypeMethodDescriptionvoidShapeTreeManager.addAssignment(ShapeTreeAssignment assignment) Add aShapeTreeAssignmentto the ShapeTreeManager.static ValidationResultShapeTreeRequestProcessor.assign(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeContext shapeTreeContext, ShapeTreeManager rootManager, ShapeTreeAssignment rootAssignment, ShapeTreeAssignment parentAssignment, ValidationResult advanceValidationResult) static voidSchemaCache.clearCache()static ShapeTreeAssignmentShapeTreeManagerDelta.containsSameUrl(ShapeTreeAssignment assignment, List<ShapeTreeAssignment> targetAssignments) static booleanSchemaCache.containsSchema(URL schemaUrl) static ShapeTreeManagerDeltaShapeTreeManagerDelta.evaluate(ShapeTreeManager existingManager, ShapeTreeManager updatedManager) Compares an updated ShapeTreeManager (updatedManager) with an existing one (existingManager).static ShapeTreeReferenceShapeTreeReference.findChildReference(ShapeTree shapeTree, URL childUrl) ShapeTreeManager.getContainingAssignments()static ShapeTreeAssignmentShapeTreeAssignment.getFromGraph(URL url, org.apache.jena.graph.Graph managerGraph) static ShapeTreeManagerShapeTreeManager.getFromGraph(URL id, org.apache.jena.graph.Graph managerGraph) org.apache.jena.graph.GraphShapeTreeManager.getGraph()Get the ShapeTreeManager as an RDF Graphstatic org.apache.jena.rdf.model.PropertyShapeTreeReference.getPropertyFromReference(ShapeTreeReference reference) ShapeTree.getReferencedShapeTrees()ShapeTree.getReferencedShapeTrees(RecursionMethod recursionMethod) static ShapeTreeAssignmentShapeTreeRequestProcessor.getRootAssignment(ResourceAccessor accessor, ShapeTreeContext shapeTreeContext, ShapeTreeAssignment assignment) static org.apache.jena.shex.ShexSchemastatic ShapeTreeShapeTreeFactory.getShapeTree(URL shapeTreeUrl) Looks up and parses the shape tree atshapeTreeUrl.static ShapeTreeResourceShapeTreeResource.getShapeTreeResource(URL resourceUrl) Looks up and caches the shape tree resource atresourceUrl.booleanShapeTreeManager.hasContainingAssignments()static ValidationResultShapeTreeRequestProcessor.plant(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeContext shapeTreeContext, ShapeTreeManager updatedRootManager, ShapeTreeManagerDelta delta) Plants a shape tree on an existing resourcestatic voidstatic ValidationResultShapeTreeRequestProcessor.unassign(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeContext shapeTreeContext, ShapeTreeAssignment rootAssignment) static voidSchemaCache.unInitializeCache()static ValidationResultShapeTreeRequestProcessor.unplant(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeContext shapeTreeContext, ShapeTreeManagerDelta delta) static ValidationResultShapeTreeRequestProcessor.updateManager(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeRequest shapeTreeRequest) ShapeTree.validateContainedResource(ManageableResource containedResource) ShapeTree.validateContainedResource(ManageableResource containedResource, List<URL> targetShapeTreeUrls, List<URL> focusNodeUrls) ShapeTree.validateContainedResource(String requestedName, ShapeTreeResourceType resourceType, List<URL> targetShapeTreeUrls, org.apache.jena.graph.Graph bodyGraph, List<URL> focusNodeUrls) static ContainingValidationResultShapeTreeRequestProcessor.validateCreate(ResourceAccessor accessor, ManageableInstance targetInstance, ManageableInstance parentContainer, ShapeTreeRequest shapeTreeRequest, String proposedName) ShapeTree.validateGraph(org.apache.jena.graph.Graph graph, List<URL> focusNodeUrls) ShapeTree.validateResource(ManageableResource targetResource) ShapeTree.validateResource(ManageableResource targetResource, List<URL> focusNodeUrls) ShapeTree.validateResource(String requestedName, ShapeTreeResourceType resourceType, org.apache.jena.graph.Graph bodyGraph, List<URL> focusNodeUrls) static ValidationResultShapeTreeRequestProcessor.validateUpdate(ResourceAccessor accessor, ManageableInstance targetInstance, ShapeTreeRequest shapeTreeRequest) Constructors in com.janeirodigital.shapetrees.core.validation that throw ShapeTreeException