MCPcopy Create free account
hub / github.com/apache/nutch / create

Method create

src/java/org/apache/nutch/api/resources/JobResource.java:70–80  ·  view source on GitHub ↗
(JobConfig config)

Source from the content-addressed store, hash-verified

68 }
69
70 @POST
71 @Path(value = "/create")
72 @Consumes(MediaType.APPLICATION_JSON)
73 @Produces(MediaType.TEXT_PLAIN)
74 public String create(JobConfig config) {
75 SecurityUtils.allowOnlyAdmin(securityContext);
76 if (config == null) {
77 throwBadRequestException("Job configuration is required!");
78 }
79 return jobManager.create(config);
80 }
81}

Callers

nothing calls this directly

Calls 3

allowOnlyAdminMethod · 0.95
createMethod · 0.65

Tested by

no test coverage detected