Package | Description |
---|---|
org.jaxrx |
This is the main package for the JAX-RX interface.
|
org.treetank.service.jaxrx.implementation |
Resource implementation
This package contains classes which handles request for database resources and database subresources like
in our case: node id support.
|
Modifier and Type | Method and Description |
---|---|
String |
JaxRx.add(InputStream input,
ResourcePath path)
This method is called by the POST method.
|
javax.ws.rs.core.StreamingOutput |
JaxRx.command(String command,
ResourcePath path)
This method is called by the GET and the POST method, if
QueryParameter.COMMAND was specified in the HTTP request. |
String |
JaxRx.delete(ResourcePath path)
This method is called by the DELETE method.
|
javax.ws.rs.core.StreamingOutput |
JaxRx.get(ResourcePath path)
This method is called by the GET and the POST method.
|
javax.ws.rs.core.StreamingOutput |
JaxRx.query(String query,
ResourcePath path)
This method is called by the GET and the POST method, if
QueryParameter.QUERY was specified in the HTTP request. |
javax.ws.rs.core.StreamingOutput |
JaxRx.run(String file,
ResourcePath path)
This method is called by the GET and the POST method, if
QueryParameter.RUN was specified in the HTTP request. |
String |
JaxRx.update(InputStream input,
ResourcePath path)
This method is called by the PUT method.
|
Modifier and Type | Method and Description |
---|---|
String |
TreeTankMediator.add(InputStream input,
ResourcePath path) |
void |
DatabaseRepresentation.add(InputStream input,
String resource)
This method is responsible to add a new XML document to a collection.
|
void |
NodeIdRepresentation.addSubResource(String resourceName,
long nodeId,
InputStream input,
EIdAccessType type)
This method is responsible to perform a POST request to a node id.
|
javax.ws.rs.core.StreamingOutput |
TreeTankMediator.command(String command,
ResourcePath path) |
void |
DatabaseRepresentation.createResource(InputStream inputStream,
String resourceName)
This method is responsible to create a new database.
|
String |
TreeTankMediator.delete(ResourcePath path) |
void |
NodeIdRepresentation.deleteResource(String resourceName,
long nodeId)
This method is responsible to delete an XML resource addressed through a
unique node id (except root node id).
|
javax.ws.rs.core.StreamingOutput |
TreeTankMediator.get(ResourcePath path) |
long |
DatabaseRepresentation.getLastRevision(String resourceName)
This method reads the existing database, and offers the last revision id
of the database
|
OutputStream |
DatabaseRepresentation.getModificHistory(String resourceName,
String revisionRange,
boolean nodeid,
OutputStream output,
boolean wrap)
This method reads the existing database, and offers all modifications of
the two given revisions
|
javax.ws.rs.core.StreamingOutput |
NodeIdRepresentation.getResource(String resourceName,
long nodeId,
Map<QueryParameter,String> queryParams)
This method is responsible to deliver the whole XML resource addressed by
a unique node id.
|
javax.ws.rs.core.StreamingOutput |
DatabaseRepresentation.getResource(String resourceName,
Map<QueryParameter,String> queryParams)
This method is responsible to deliver the whole database.
|
javax.ws.rs.core.StreamingOutput |
NodeIdRepresentation.getResourceByAT(String resourceName,
long nodeId,
Map<QueryParameter,String> queryParams,
EIdAccessType accessType)
This method is responsible to deliver the whole XML resource addressed by
a unique node id.
|
javax.ws.rs.core.StreamingOutput |
DatabaseRepresentation.getResourcesNames()
This method is responsible to deliver a list of available resources and
collections supported by TreeTank's REST implementation.
|
void |
NodeIdRepresentation.modifyResource(String resourceName,
long nodeId,
InputStream newValue)
This method is responsible to modify the XML resource, which is addressed
through a unique node id.
|
javax.ws.rs.core.StreamingOutput |
TreeTankMediator.query(String query,
ResourcePath path) |
void |
DatabaseRepresentation.revertToRevision(String resourceName,
long backToRevision)
This method reverts the latest revision data to the requested.
|
javax.ws.rs.core.StreamingOutput |
TreeTankMediator.run(String file,
ResourcePath path) |
String |
TreeTankMediator.update(InputStream input,
ResourcePath path) |
Copyright © 2013. All Rights Reserved.