public class RecipeHandler extends AbstractWranglerHandler
AbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnable| Constructor and Description |
|---|
RecipeHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
createRecipe(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace) |
void |
deleteRecipe(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String recipeId) |
void |
getRecipeById(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String recipeId) |
void |
getRecipeByName(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String recipeName) |
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context) |
void |
listRecipes(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
Integer pageSize,
String pageToken,
String sortBy,
String sortOrder) |
void |
updateRecipe(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String recipeIdString) |
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, respond, shouldCopyHeadercreateTableconfigure, configure, destroy, getConfigurer, getContext, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClasspublic void initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context)
throws Exception
initialize in interface io.cdap.cdap.api.ProgramLifecycle<io.cdap.cdap.api.service.http.SystemHttpServiceContext>initialize in interface io.cdap.cdap.api.service.http.HttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>initialize in class io.cdap.cdap.api.service.http.AbstractHttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>Exception@POST
@Path(value="v2/contexts/{context}/recipes")
public void createRecipe(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
@GET
@Path(value="v2/contexts/{context}/recipes/id/{recipe-id}")
public void getRecipeById(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="recipe-id")
String recipeId)
@GET
@Path(value="v2/contexts/{context}/recipes/name/{recipe-name}")
public void getRecipeByName(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="recipe-name")
String recipeName)
@GET
@Path(value="v2/contexts/{context}/recipes")
public void listRecipes(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@QueryParam(value="pageSize")
Integer pageSize,
@QueryParam(value="pageToken")
String pageToken,
@QueryParam(value="sortBy")
String sortBy,
@QueryParam(value="sortOrder")
String sortOrder)
@DELETE
@Path(value="v2/contexts/{context}/recipes/id/{recipe-id}")
public void deleteRecipe(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="recipe-id")
String recipeId)
@PUT
@Path(value="v2/contexts/{context}/recipes/id/{recipe-id}")
public void updateRecipe(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="recipe-id")
String recipeIdString)
Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.