@Path(value="/broker/node/") public class NodeInfoEndpoint extends Object
| Constructor and Description |
|---|
NodeInfoEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
allNodes()
Retrieve a list of registered nodes with the
broker.
|
Node |
getNodeInfo(int nodeId)
Retrieve information about a single node.
|
javax.ws.rs.core.Response |
getNodeResource(int nodeId,
String resourceId)
Retrieve a named resource uploaded previously by the specified node.
|
@GET @Produces(value="application/xml") public javax.ws.rs.core.Response allNodes()
@GET
@Path(value="{id}")
@Produces(value="application/xml")
public Node getNodeInfo(@PathParam(value="id")
int nodeId)
nodeId - node id200 with node info or status 404 if not found.@GET
@Path(value="{node}/{resource}")
public javax.ws.rs.core.Response getNodeResource(@PathParam(value="node")
int nodeId,
@PathParam(value="resource")
String resourceId)
throws SQLException
Last modified and eTag headers will be set.
The eTag is calculated url-safe-base64(sha-256(data)).
nodeId - node idresourceId - resource id200 with node info or status 404 if not found.SQLException - sql errorCopyright © 2014–2019 Uniklinik RWTH Aachen. All rights reserved.