@ApplicationScoped public class RESTReportServer extends Object
Constructor and Description |
---|
RESTReportServer()
This is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static long |
buildDateTime(String prefix,
javax.ws.rs.core.MultivaluedMap<String,String> params)
This method calculates the date/time based on supplied parameters.
|
javax.ws.rs.core.Response |
generate(javax.ws.rs.core.UriInfo info)
This method generates a report based on the supplied
query parameters.
|
ReportManager |
getReportManager()
This method returns the report manager.
|
void |
init()
This method initializes the report server REST service.
|
void |
setReportManager(ReportManager rm)
This method sets the report manager.
|
@PostConstruct public void init()
public void setReportManager(ReportManager rm)
rm
- The report managerpublic ReportManager getReportManager()
public javax.ws.rs.core.Response generate(@Context javax.ws.rs.core.UriInfo info) throws Exception
info
- The URI infoException
- Failed to generate the reportprotected static long buildDateTime(String prefix, javax.ws.rs.core.MultivaluedMap<String,String> params) throws Exception
prefix
- The prefixparams
- The parametersException
- Failed to build date/timeCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.