@Deprecated public class FilesystemExplorer extends AbstractWranglerHandler
FilesystemExplorer is a HTTP Service handler for exploring the filesystem.
It provides capabilities for listing file(s) and directories. It also provides metadata.AbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnable| Constructor and Description |
|---|
FilesystemExplorer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context)
Deprecated.
|
void |
list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String path,
boolean hidden)
Deprecated.
Lists the content of the path specified using the
Location. |
void |
read(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String path,
int lines,
String sampler,
double fraction,
String scope)
Deprecated.
Given a path, reads the file into the workspace.
|
void |
specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String path,
String workspaceId)
Deprecated.
Specification for the source.
|
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, respond, shouldCopyHeadercreateTableconfigure, configure, destroy, getConfigurer, getContext, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClass@GET
@Path(value="contexts/{context}/explorer/fs")
public void list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@QueryParam(value="path")
String path,
@QueryParam(value="hidden")
boolean hidden)
Location.request - HTTP Request Handlerresponder - HTTP Response Handlerpath - to the location in the filesystem@GET
@Path(value="contexts/{context}/explorer/fs/read")
public void read(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@QueryParam(value="path")
String path,
@QueryParam(value="lines")
int lines,
@QueryParam(value="sampler")
String sampler,
@QueryParam(value="fraction")
double fraction,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope)
request - HTTP request handler.responder - HTTP response handler.path - to the location in the filesystem.lines - number of lines to extracted from file if it's a text/plain.sampler - sampling method to be used.@GET
@Path(value="contexts/{context}/explorer/fs/specification")
public void specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@QueryParam(value="path")
String path,
@QueryParam(value="wid")
String workspaceId)
request - HTTP request handler.responder - HTTP response handler.path - to the location in the filesystem.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>ExceptionCopyright © 2023 CDAP Licensed under the Apache License, Version 2.0.