be.re.webdav
Interface Handler


public interface Handler

The interface to be implemented by a WebDAV system. The implementation may use the request and response streams as decoded streams. The Content-Length, Content-Encoding and Transfer-Encoding headers must not be set when writing the response entity. All paths are in the same web context. This way the WebDAV back-end can be relocated.

Author:
Werner Donné

Method Summary
 void acl(String path, Context context)
           
 void audit(Context context)
           
 void bind(String path, boolean overwrite, Context context)
           
 void checkin(String path, Context context)
           
 void checkout(String path, Context context)
           
 void collapse(String path, boolean noVersionControl, String depth, Context context)
           
 void copy(String path, String destinationPath, String depth, boolean overwrite, String label, Context context)
          The label may be null.
 void delete(String path, Context context)
           
 void destroy()
           
 void get(String path, String[] mimeTypes, String label, String compareWith, Context context)
          The mimeTypes parameter is sorted from most to least preferred.
 long getLastModified(String path, Context context)
           
 String getLocalPath(String path)
           
 String getView(String path)
           
 void head(String path, Context context)
           
 void index(String path, String depth, boolean withPreview, Context context)
           
 void init(Context context, Context backgroundContext)
           
 void label(String path, String depth, String label, Context context)
          The label may be null.
 void lock(String path, long timeout, Context context)
           
 void merge(String path, String label, Context context)
           
 void mkactivity(String path, Context context)
           
 void mkcol(String path, Context context)
           
 void mkview(String path, Context context)
           
 void move(String path, String destinationPath, boolean overwrite, Context context)
           
 void options(String path, Context context)
           
 void propfind(String path, String depth, String label, Context context)
          The label may be null.
 void proppatch(String path, Context context)
           
 void put(String path, String mimeType, Context context)
           
 void rebind(String path, boolean overwrite, Context context)
           
 void report(String path, String depth, String label, Context context)
           
 void reportException(Throwable e)
           
 void unbind(String path, Context context)
           
 void uncheckout(String path, Context context)
           
 void unlock(String path, String lockToken, Context context)
           
 void versionControl(String path, Context context)
           
 

Method Detail

acl

void acl(String path,
         Context context)
         throws IOException
Throws:
IOException

audit

void audit(Context context)
           throws IOException
Throws:
IOException

bind

void bind(String path,
          boolean overwrite,
          Context context)
          throws IOException
Throws:
IOException

checkin

void checkin(String path,
             Context context)
             throws IOException
Throws:
IOException

checkout

void checkout(String path,
              Context context)
              throws IOException
Throws:
IOException

collapse

void collapse(String path,
              boolean noVersionControl,
              String depth,
              Context context)
              throws IOException
Throws:
IOException

copy

void copy(String path,
          String destinationPath,
          String depth,
          boolean overwrite,
          String label,
          Context context)
          throws IOException
The label may be null.

Throws:
IOException

delete

void delete(String path,
            Context context)
            throws IOException
Throws:
IOException

destroy

void destroy()

get

void get(String path,
         String[] mimeTypes,
         String label,
         String compareWith,
         Context context)
         throws IOException
The mimeTypes parameter is sorted from most to least preferred. The label may be null.

Throws:
IOException

getLastModified

long getLastModified(String path,
                     Context context)
                     throws IOException
Throws:
IOException

getLocalPath

String getLocalPath(String path)

getView

String getView(String path)

head

void head(String path,
          Context context)
          throws IOException
Throws:
IOException

index

void index(String path,
           String depth,
           boolean withPreview,
           Context context)
           throws IOException
Throws:
IOException

init

void init(Context context,
          Context backgroundContext)
          throws IOException
Parameters:
context - the context for the immediate initialization.
backgroundContext - a context that a background thread can save.
Throws:
IOException

label

void label(String path,
           String depth,
           String label,
           Context context)
           throws IOException
The label may be null.

Throws:
IOException

lock

void lock(String path,
          long timeout,
          Context context)
          throws IOException
Throws:
IOException

merge

void merge(String path,
           String label,
           Context context)
           throws IOException
Throws:
IOException

mkactivity

void mkactivity(String path,
                Context context)
                throws IOException
Throws:
IOException

mkcol

void mkcol(String path,
           Context context)
           throws IOException
Throws:
IOException

mkview

void mkview(String path,
            Context context)
            throws IOException
Throws:
IOException

move

void move(String path,
          String destinationPath,
          boolean overwrite,
          Context context)
          throws IOException
Throws:
IOException

options

void options(String path,
             Context context)
             throws IOException
Throws:
IOException

propfind

void propfind(String path,
              String depth,
              String label,
              Context context)
              throws IOException
The label may be null.

Throws:
IOException

proppatch

void proppatch(String path,
               Context context)
               throws IOException
Throws:
IOException

put

void put(String path,
         String mimeType,
         Context context)
         throws IOException
Throws:
IOException

rebind

void rebind(String path,
            boolean overwrite,
            Context context)
            throws IOException
Throws:
IOException

report

void report(String path,
            String depth,
            String label,
            Context context)
            throws IOException
Throws:
IOException

reportException

void reportException(Throwable e)

unbind

void unbind(String path,
            Context context)
            throws IOException
Throws:
IOException

uncheckout

void uncheckout(String path,
                Context context)
                throws IOException
Throws:
IOException

unlock

void unlock(String path,
            String lockToken,
            Context context)
            throws IOException
Throws:
IOException

versionControl

void versionControl(String path,
                    Context context)
                    throws IOException
Throws:
IOException