Interface ClassificationRestService
-
- All Known Implementing Classes:
ClassificationRestServiceImpl
@Path("classifications") @Produces("application/json") @Consumes("application/json") public interface ClassificationRestService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.Response
classify(ClassificationRequestDTO classificationRequestDTO)
javax.ws.rs.core.Response
deleteGroup(int groupId)
javax.ws.rs.core.Response
deleteRule(int id)
javax.ws.rs.core.Response
deleteRules(javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
getGroup(int groupId, String format, String requestedFilename, String acceptHeader)
javax.ws.rs.core.Response
getGroups(javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
getProtocols()
javax.ws.rs.core.Response
getRule(int id)
javax.ws.rs.core.Response
getRules(javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
importRules(int id, javax.ws.rs.core.UriInfo uriInfo, InputStream inputStream)
javax.ws.rs.core.Response
saveGroup(GroupDTO groupDTO)
javax.ws.rs.core.Response
saveRule(RuleDTO ruleDTO)
javax.ws.rs.core.Response
updateGroup(int id, GroupDTO newValue)
javax.ws.rs.core.Response
updateRule(int id, RuleDTO newValue)
-
-
-
Method Detail
-
getRules
@GET @Produces("application/json") javax.ws.rs.core.Response getRules(@Context javax.ws.rs.core.UriInfo uriInfo)
-
getRule
@GET @Path("{id}") javax.ws.rs.core.Response getRule(@PathParam("id") int id)
-
saveRule
@POST javax.ws.rs.core.Response saveRule(RuleDTO ruleDTO)
-
deleteRules
@DELETE javax.ws.rs.core.Response deleteRules(@Context javax.ws.rs.core.UriInfo uriInfo)
-
deleteRule
@DELETE @Path("{id}") javax.ws.rs.core.Response deleteRule(@PathParam("id") int id)
-
updateRule
@PUT @Path("{id}") javax.ws.rs.core.Response updateRule(@PathParam("id") int id, RuleDTO newValue)
-
classify
@POST @Path("classify") javax.ws.rs.core.Response classify(ClassificationRequestDTO classificationRequestDTO)
-
getGroups
@GET @Path("groups") javax.ws.rs.core.Response getGroups(@Context javax.ws.rs.core.UriInfo uriInfo)
-
getGroup
@GET @Path("groups/{id}") @Produces({"application/json","text/comma-separated-values"}) javax.ws.rs.core.Response getGroup(@PathParam("id") int groupId, @QueryParam("format") String format, @QueryParam("filename") String requestedFilename, @HeaderParam("Accept") String acceptHeader)
-
saveGroup
@POST @Path("groups") javax.ws.rs.core.Response saveGroup(GroupDTO groupDTO)
-
deleteGroup
@DELETE @Path("groups/{id}") javax.ws.rs.core.Response deleteGroup(@PathParam("id") int groupId)
-
updateGroup
@PUT @Path("groups/{id}") javax.ws.rs.core.Response updateGroup(@PathParam("id") int id, GroupDTO newValue)
-
importRules
@POST @Path("groups/{id}") @Consumes("text/comma-separated-values") javax.ws.rs.core.Response importRules(@PathParam("id") int id, @Context javax.ws.rs.core.UriInfo uriInfo, InputStream inputStream)
-
getProtocols
@GET @Path("protocols") javax.ws.rs.core.Response getProtocols()
-
-