1 package org.apache.archiva.webdav;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.jackrabbit.webdav.DavSession;
23
24 import java.util.HashSet;
25 import java.util.Set;
26
27 public class ArchivaDavSession
28 implements DavSession
29 {
30 private final Set<String> lockTokens = new HashSet<String>();
31
32 @Override
33 public void addLockToken( String token )
34 {
35 lockTokens.add( token );
36 }
37
38 @Override
39 public String[] getLockTokens()
40 {
41 return lockTokens.toArray( new String[lockTokens.size()] );
42 }
43
44 @Override
45 public void removeLockToken( String token )
46 {
47 lockTokens.remove( token );
48 }
49
50 @Override
51 public void removeReference( Object reference )
52 {
53 throw new UnsupportedOperationException( "Not supported yet." );
54 }
55
56 @Override
57 public void addReference( Object reference )
58 {
59 throw new UnsupportedOperationException( "Not supported yet." );
60 }
61 }