@Path(value="/config") public class ConfigResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT |
configManager, jobManager
Constructor and Description |
---|
ConfigResource() |
Modifier and Type | Method and Description |
---|---|
String |
createConfig(NutchConfig newConfig) |
void |
deleteConfig(String configId) |
Map<String,String> |
getConfig(String configId) |
Set<String> |
getConfigs() |
String |
getProperty(String configId,
String propertyId) |
throwBadRequestException
public static final String DEFAULT
@GET @Path(value="/{configId}") public Map<String,String> getConfig(@PathParam(value="configId") String configId)
@GET @Path(value="/{configId}/{propertyId}") public String getProperty(@PathParam(value="configId") String configId, @PathParam(value="propertyId") String propertyId)
@DELETE @Path(value="/{configId}") public void deleteConfig(@PathParam(value="configId") String configId)
@POST @Path(value="/{configId}") @Consumes(value="application/json") public String createConfig(NutchConfig newConfig)
Copyright © 2015 The Apache Software Foundation