@Path(value="/rest/namespace") public interface AtmosClient extends Closeable
| Modifier and Type | Method and Description |
|---|---|
URI |
createDirectory(String directoryName,
PutOptions... options) |
URI |
createFile(String parent,
AtmosObject object,
PutOptions... options) |
boolean |
deletePath(String path) |
SystemMetadata |
getSystemMetadata(String path) |
UserMetadata |
getUserMetadata(String path) |
AtmosObject |
headFile(String path) |
boolean |
isPublic(String path) |
BoundedSet<? extends DirectoryEntry> |
listDirectories(ListOptions... options) |
BoundedSet<? extends DirectoryEntry> |
listDirectory(String directoryName,
ListOptions... options) |
AtmosObject |
newObject() |
boolean |
pathExists(String path) |
AtmosObject |
readFile(String path,
GetOptions... options) |
void |
setGroupAcl(String path,
PutOptions options) |
void |
updateFile(String parent,
AtmosObject object,
PutOptions... options) |
@Provides AtmosObject newObject()
@Named(value="ListDirectory") @GET @Path(value="/") @Consumes(value="text/xml") BoundedSet<? extends DirectoryEntry> listDirectories(ListOptions... options)
@Named(value="ListDirectory")
@GET
@Path(value="/{directoryName}/")
@Consumes(value="text/xml")
BoundedSet<? extends DirectoryEntry> listDirectory(@PathParam(value="directoryName")
String directoryName,
ListOptions... options)
@Named(value="CreateDirectory")
@POST
@Path(value="/{directoryName}/")
@Produces(value="application/octet-stream")
@Consumes(value="*/*")
URI createDirectory(@PathParam(value="directoryName")
String directoryName,
PutOptions... options)
@Nullable @Named(value="CreateObject") @POST @Path(value="/{parent}/{name}") @Consumes(value="*/*") URI createFile(@PathParam(value="parent") String parent, @PathParam(value="name") AtmosObject object, PutOptions... options)
@Named(value="UpdateObject")
@PUT
@Path(value="/{parent}/{name}")
@Consumes(value="*/*")
void updateFile(@PathParam(value="parent")
String parent,
@PathParam(value="name")
AtmosObject object,
PutOptions... options)
@Named(value="ReadObject")
@GET
@Path(value="/{path}")
@Consumes(value="*/*")
AtmosObject readFile(@PathParam(value="path")
String path,
GetOptions... options)
@Named(value="GetObjectMetadata")
@HEAD
@Path(value="/{path}")
@Consumes(value="*/*")
AtmosObject headFile(@PathParam(value="path")
String path)
@Named(value="GetSystemMetadata")
@HEAD
@Path(value="/{path}")
@Consumes(value="*/*")
SystemMetadata getSystemMetadata(@PathParam(value="path")
String path)
@Named(value="GetUserMetadata")
@HEAD
@Path(value="/{path}")
@Consumes(value="*/*")
UserMetadata getUserMetadata(@PathParam(value="path")
String path)
@Named(value="DeleteObject")
@DELETE
@Path(value="/{path}")
@Consumes(value="*/*")
boolean deletePath(@PathParam(value="path")
String path)
@Named(value="GetObjectMetadata")
@HEAD
@Path(value="/{path}")
@Consumes(value="*/*")
boolean pathExists(@PathParam(value="path")
String path)
@Named(value="GetObjectMetadata")
@HEAD
@Path(value="/{path}")
@Consumes(value="*/*")
boolean isPublic(@PathParam(value="path")
String path)
@Named(value="SetObjectMetadata")
@POST
@Path(value="/{path}")
@Produces(value="application/octet-stream")
@Consumes(value="*/*")
void setGroupAcl(@PathParam(value="path")
String path,
PutOptions options)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.