Este contenido no está disponible en el idioma seleccionado.
17.27. ModeShape REST Client API
The ModeShape REST Client API provides a way of using the ModeShape REST web service to publish (upload) and unpublish (delete) files from ModeShape repositories. Java objects open the HTTP connection, create the HTTP request URLs, attach the payload associated with
PUT
and POST
requests, parse the HTTP JSON response back into Java objects, and close the HTTP connection.
The
eds/modeshape/client/modeshape-client.jar
JAR file contains the ModeShape REST Client API.
The
org.modeshape.web.jcr.rest.client.domain
package contains the following required objects:
Server
- hosts one or more ModeShape JCR repositories,Repository
- a ModeShape JCR repository containing one or more workspaces, andWorkspace
- a ModeShape JCR repository workspace.
Publish and unpublish operations are performed using a class that implements the
org.modeshape.web.jcr.rest.client.IRestClient
interface.
Note
The only included implementation of
IRestClient
is org.modeshape.web.jcr.rest.client.json.JsonRestClient
which uses JSON as its data format.