Uses of Class
com.janeirodigital.shapetrees.core.validation.ShapeTreeContext
Packages that use ShapeTreeContext
Package
Description
Implementation of
client-side
shape tree validation using the OkHttp HTTP client for Java.
-
Uses of ShapeTreeContext in com.janeirodigital.shapetrees.client.okhttp
Methods in com.janeirodigital.shapetrees.client.okhttp with parameters of type ShapeTreeContextModifier and TypeMethodDescriptionOkHttpResourceAccessor.createResource
(ShapeTreeContext context, URL url, ResourceAttributes attributes, String body, String contentType) OkHttpResourceAccessor.deleteResource
(ShapeTreeContext context, InstanceResource deleteResource) Deletes the providedInstanceResource
deleteResource
static ShapeTreeManager
OkHttpShapeTreeClient.discover
(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl) Discover the ShapeTreeManager associated with a given target resource.OkHttpResourceAccessor.getResource
(ShapeTreeContext context, URL url) Get aInstanceResource
at the providedurl
, which may or may not exist.static okhttp3.Response
OkHttpShapeTreeClient.patch
(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl, List<URL> focusNodes, String body) static okhttp3.Response
OkHttpShapeTreeClient.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.Response
OkHttpShapeTreeClient.post
(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL parentContainer, List<URL> focusNodes, List<URL> targetShapeTrees, String slug, boolean isContainer, String body, ContentType contentType) static okhttp3.Response
OkHttpShapeTreeClient.put
(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl, List<URL> focusNodes, String body, ContentType contentType) static okhttp3.Response
OkHttpShapeTreeClient.put
(okhttp3.OkHttpClient okHttpClient, ShapeTreeContext context, URL resourceUrl, List<URL> focusNodes, List<URL> targetShapeTrees, Boolean isContainer, String body, ContentType contentType) static okhttp3.Response
OkHttpShapeTreeClient.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) -
Uses of ShapeTreeContext in com.janeirodigital.shapetrees.core.helpers
Methods in com.janeirodigital.shapetrees.core.helpers that return ShapeTreeContextModifier and TypeMethodDescriptionstatic ShapeTreeContext
RequestHelper.buildContextFromRequest
(ShapeTreeRequest shapeTreeRequest) Builds a ShapeTreeContext from the incoming request. -
Uses of ShapeTreeContext in com.janeirodigital.shapetrees.core.resources
Methods in com.janeirodigital.shapetrees.core.resources that return ShapeTreeContextMethods in com.janeirodigital.shapetrees.core.resources with parameters of type ShapeTreeContextModifier and TypeMethodDescriptionstatic ManageableInstance
ManageableInstance.createInstanceResource
(ResourceAccessor accessor, ShapeTreeContext context, URL resourceUrl, ResourceAttributes headers, String body, String contentType) Creates the resource identified by the providedresourceUrl
and gets a correspondingManageableInstance
.ResourceAccessor.createResource
(ShapeTreeContext context, URL resourceUrl, ResourceAttributes headers, String body, String contentType) Creates a specificInstanceResource
identified by the providedresourceUrl
.ResourceAccessor.deleteResource
(ShapeTreeContext context, InstanceResource deleteResource) Deletes a specificInstanceResource
identified by the providedupdatedResource
static ManageableInstance
ManageableInstance.getInstance
(ResourceAccessor accessor, ShapeTreeContext context, URL resourceUrl) Return aManageableInstance
constructed starting with the resource identified by the providedresourceUrl
.ResourceAccessor.getResource
(ShapeTreeContext context, URL resourceUrl) Gets a specificInstanceResource
identified by the providedresourceUrl
.ResourceAccessor.updateResource
(ShapeTreeContext context, InstanceResource updatedResource, String body) Updates a specificInstanceResource
identified by the providedupdatedResource
-
Uses of ShapeTreeContext in com.janeirodigital.shapetrees.core.validation
Methods in com.janeirodigital.shapetrees.core.validation with parameters of type ShapeTreeContextModifier and TypeMethodDescriptionstatic ValidationResult
ShapeTreeRequestProcessor.assign
(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeContext shapeTreeContext, ShapeTreeManager rootManager, ShapeTreeAssignment rootAssignment, ShapeTreeAssignment parentAssignment, ValidationResult advanceValidationResult) static ShapeTreeAssignment
ShapeTreeRequestProcessor.getRootAssignment
(ResourceAccessor accessor, ShapeTreeContext shapeTreeContext, ShapeTreeAssignment assignment) static ValidationResult
ShapeTreeRequestProcessor.plant
(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeContext shapeTreeContext, ShapeTreeManager updatedRootManager, ShapeTreeManagerDelta delta) Plants a shape tree on an existing resourcestatic ValidationResult
ShapeTreeRequestProcessor.unassign
(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeContext shapeTreeContext, ShapeTreeAssignment rootAssignment) static ValidationResult
ShapeTreeRequestProcessor.unplant
(ResourceAccessor accessor, ManageableInstance manageableInstance, ShapeTreeContext shapeTreeContext, ShapeTreeManagerDelta delta)