@Path(value="/api/v1.0") @Produces(value="application/json") @Consumes(value="application/json") @Named public class RestRequestHandler extends Object implements RequestHandler
APPSENSOR_CLIENT_APPLICATION_IDENTIFIER_ATTR
Constructor and Description |
---|
RestRequestHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addAttack(Attack attack) |
void |
addEvent(Event event) |
Collection<Response> |
getResponses(String earliest) |
@POST @Path(value="/events") @ResponseStatus(value=CREATED) public void addEvent(Event event) throws NotAuthorizedException
@POST @Path(value="/attacks") @ResponseStatus(value=CREATED) public void addAttack(Attack attack) throws NotAuthorizedException
@GET @Path(value="/responses") public Collection<Response> getResponses(@QueryParam(value="earliest") String earliest) throws NotAuthorizedException
Copyright © 2015 The Open Web Application Security Project (OWASP). All rights reserved.