@Path(value="/api/v1.0/reports") @Produces(value="application/json") @Consumes(value="application/json") @Named public class RestReportingEngine extends Object implements ReportingEngine
Constructor and Description |
---|
RestReportingEngine() |
Modifier and Type | Method and Description |
---|---|
int |
countAttacks(String earliest) |
int |
countAttacksByLabel(String earliest,
String label) |
int |
countAttacksByUser(String earliest,
String username) |
int |
countEvents(String earliest) |
int |
countEventsByLabel(String earliest,
String label) |
int |
countEventsByUser(String earliest,
String username) |
int |
countResponses(String earliest) |
int |
countResponsesByLabel(String earliest,
String label) |
int |
countResponsesByUser(String earliest,
String username) |
Collection<Attack> |
findAttacks(String earliest) |
Collection<Event> |
findEvents(String earliest) |
Collection<Response> |
findResponses(String earliest) |
KeyValuePair |
getBase64EncodedServerConfigurationFileContent() |
String |
getServerConfigurationAsJson() |
void |
onAdd(Attack attack) |
void |
onAdd(Event event) |
void |
onAdd(Response response) |
public void onAdd(Event event)
public void onAdd(Attack attack)
public void onAdd(Response response)
@GET @Path(value="/events") public Collection<Event> findEvents(@QueryParam(value="earliest") String earliest) throws NotAuthorizedException
@GET @Path(value="/attacks") public Collection<Attack> findAttacks(@QueryParam(value="earliest") String earliest) throws NotAuthorizedException
@GET @Path(value="/responses") public Collection<Response> findResponses(@QueryParam(value="earliest") String earliest) throws NotAuthorizedException
@GET @Path(value="/events/count") public int countEvents(@QueryParam(value="earliest") String earliest) throws NotAuthorizedException
@GET @Path(value="/events/count-by-label") public int countEventsByLabel(@QueryParam(value="earliest") String earliest, @QueryParam(value="label") String label) throws NotAuthorizedException
@GET @Path(value="/events/count-by-user") public int countEventsByUser(@QueryParam(value="earliest") String earliest, @QueryParam(value="username") String username) throws NotAuthorizedException
@GET @Path(value="/attacks/count") public int countAttacks(@QueryParam(value="earliest") String earliest) throws NotAuthorizedException
@GET @Path(value="/attacks/count-by-label") public int countAttacksByLabel(@QueryParam(value="earliest") String earliest, @QueryParam(value="label") String label) throws NotAuthorizedException
@GET @Path(value="/attacks/count-by-user") public int countAttacksByUser(@QueryParam(value="earliest") String earliest, @QueryParam(value="username") String username) throws NotAuthorizedException
@GET @Path(value="/responses/count") public int countResponses(@QueryParam(value="earliest") String earliest) throws NotAuthorizedException
@GET @Path(value="/responses/count-by-label") public int countResponsesByLabel(@QueryParam(value="earliest") String earliest, @QueryParam(value="label") String label) throws NotAuthorizedException
@GET @Path(value="/responses/count-by-user") public int countResponsesByUser(@QueryParam(value="earliest") String earliest, @QueryParam(value="username") String username) throws NotAuthorizedException
@GET @Path(value="/server-config") public String getServerConfigurationAsJson() throws NotAuthorizedException
@GET @Path(value="/server-config-base64") public KeyValuePair getBase64EncodedServerConfigurationFileContent() throws NotAuthorizedException
Copyright © 2016 The Open Web Application Security Project (OWASP). All rights reserved.