@Deprecated public class ConnectionHandler extends AbstractWranglerHandler
AbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnable| Constructor and Description |
|---|
ConnectionHandler(ConnectionTypeConfig connectionTypeConfig)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clone(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Given a connection id, Clones and returns a new connection.
|
void |
configure()
Deprecated.
|
void |
create(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
Deprecated.
Creates a connection object in the connections store.
|
void |
delete(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Deletes a connection from the connection store.
|
void |
get(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Given a connection id, returns the complete information about the connection.
|
void |
getConnectionTypes(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
Deprecated.
Get the list of connection types that are supported
|
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context)
Deprecated.
Stores the context so that it can be used later.
|
void |
list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String type)
Deprecated.
Lists all the connections available in the connection store.
|
void |
properties(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Returns only the properties of the connection requested.
|
void |
update(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Updates the connection within the connections store.
|
void |
updateProp(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
String key,
String value)
Deprecated.
Updates a property of the connection.
|
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, respond, shouldCopyHeadercreateTableconfigure, destroy, getConfigurer, getContext, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClasspublic ConnectionHandler(ConnectionTypeConfig connectionTypeConfig)
public void configure()
configure in class io.cdap.cdap.api.service.http.AbstractHttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>public 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>context - the HTTP service runtime contextException@POST
@Path(value="contexts/{context}/connections/create")
public void create(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
request - Handler for incoming request.responder - Responder for data going out.@POST
@Path(value="contexts/{context}/connections/{id}/update")
public void update(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - Handler for incoming request.responder - Responder for data going out.@GET
@Path(value="contexts/{context}/connections")
public void list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@DefaultValue(value="*") @QueryParam(value="type")
String type)
request - Handler for incoming request.responder - Responder for data going out.@DELETE
@Path(value="contexts/{context}/connections/{id}")
public void delete(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - Handler for incoming request.responder - Responder for data going out.id - of the connection to be deleted.@GET
@Path(value="contexts/{context}/connections/{id}")
public void get(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - Handler for incoming request.responder - Responder for data going out.id - for which all the information is returned from the connection store.@GET
@Path(value="contexts/{context}/connections/{id}/properties")
public void properties(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - Handler for incoming request.responder - Responder for data going out.id - of the connection for which all properties need to be returned.@PUT
@Path(value="contexts/{context}/connections/{id}/properties")
public void updateProp(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id,
@QueryParam(value="key")
String key,
@QueryParam(value="value")
String value)
request - Handler for incoming request.responder - Responder for data going out.id - of the connection to be who's property needs to be updated.@GET
@Path(value="contexts/{context}/connections/{id}/clone")
public void clone(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - Handler for incoming request.responder - Responder for data going out.id - of the connection that should be cloned.@GET
@Path(value="connectionTypes")
public void getConnectionTypes(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.