>
> This resulrt in status code 201 
This means the file was created. See here:
http://66.102.9.132/search?q=cache:DO_HvOKDuZwJ:jackrabbit.apache.org/JCR_Webdav_Protocol.doc+http+201+jackrabbit+checkin&cd=1&hl=en&ct=clnk&gl=uk
> and in the HTTP log i get
>
> Location:
> http://81.187.42.14:8080/jackrabbit-webapp-1.6.0/repository/default/jcr%3asystem/jcr%3aversionStorage/8e/b9/ef/8eb9efd9-cfc1-4228-8984-6193840080d4/1.0[\r][\n]";
> 97469 [main] DEBUG httpclient.wire.header  - << "Content-Length: 0[\r][\n]"
>   
That's the location of your versioned file.

Regards


Vik


On 21/01/10 08:32, rahul.teotia wrote:
> now I am using 
>
> VersionControlMethod vcmethod = new VersionControlMethod(repo_loc  +
> file.getName());
>
> This I guess enables the versioning of the file.
> However If i check the property of the file one of the property says 
>
> {DAV:}auto-version  null
>
>
> .Now when I checkin the following file using 
>
> CheckinMethod checkIn= new CheckinMethod(repo_loc+file.getName()); 
>
>  RequestEntity requestEntity=null;
>                       try {
>                               requestEntity = new 
> InputStreamRequestEntity(new FileInputStream(file));
>                       } catch (FileNotFoundException e1) {
>                               // TODO Auto-generated catch block
>                               e1.printStackTrace();
>                       }
>                       checkIn.setRequestEntity(requestEntity);
>
> This resulrt in status code 201 and in the HTTP log i get
>
> Location:
> http://81.187.42.14:8080/jackrabbit-webapp-1.6.0/repository/default/jcr%3asystem/jcr%3aversionStorage/8e/b9/ef/8eb9efd9-cfc1-4228-8984-6193840080d4/1.0[\r][\n]";
> 97469 [main] DEBUG httpclient.wire.header  - << "Content-Length: 0[\r][\n]"
>
> So does the new version is created.
>
> If yes how do I access it.
>
> Anybody please?
>
>
>   

Reply via email to