@Path(value="topics") @RequestScoped public class TopicsResource extends Object
Modifier and Type | Field and Description |
---|---|
private javax.ws.rs.core.UriInfo |
context |
(package private) DataManagerSessionBeanLocal |
dataManagerSessionBean |
Constructor and Description |
---|
TopicsResource()
Creates a new instance of TopicsResource
|
Modifier and Type | Method and Description |
---|---|
String |
getByTopicInterval(String topic,
String tsStart,
String tsEnd)
/topics/$topic/$tsStart/$tsEnd
|
String |
getByTopicsScannerInterval(String topic,
String tsStart,
String tsEnd,
String scanner)
/topics/$topic/scanners/$scanner/tsStart/tsEnd
|
private DataManagerSessionBeanLocal |
lookupDataManagerSessionBeanLocal() |
DataManagerSessionBeanLocal dataManagerSessionBean
@Context private javax.ws.rs.core.UriInfo context
@GET @Consumes(value="text/plain") @Path(value="/{topic:[a-zA-Z]+}{tsStart : (/[0-9]+)?}{tsEnd : (/[0-9]+)?}") public String getByTopicInterval(@PathParam(value="topic") String topic, @PathParam(value="tsStart") String tsStart, @PathParam(value="tsEnd") String tsEnd)
topic
- |tsStart
- timestamp in seconds since Epoch (optional) |tsEnd
- timestamp in seconds since Epoch (optional) |@GET @Consumes(value="text/plain") @Path(value="/{topic:[a-zA-Z]+}/scanners/{scanner:[a-zA-Z_]+_[0-9]+}{tsStart : (/[0-9]+)?}{tsEnd : (/[0-9]+)?}") public String getByTopicsScannerInterval(@PathParam(value="topic") String topic, @PathParam(value="tsStart") String tsStart, @PathParam(value="tsEnd") String tsEnd, @PathParam(value="scanner") String scanner)
topic
- |tsStart
- timestamp in seconds since Epoch (optional) |tsEnd
- timestamp in seconds since Epoch (optional) |scanner
- |private DataManagerSessionBeanLocal lookupDataManagerSessionBeanLocal()
Copyright © 2018. All rights reserved.