jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angela Schreiber <anch...@day.com>
Subject Re: svn commit: r354822 - /incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceFactoryImpl.java
Date Thu, 08 Dec 2005 10:19:25 GMT
hi brian

one more... i will move your helpermethods from
the davresourcefactoryImpl to the DavMethods class.
i think it rather belongs there.... hope you agree.

regards
angela

bcm@apache.org wrote:
> Author: bcm
> Date: Wed Dec  7 10:20:44 2005
> New Revision: 354822
> 
> URL: http://svn.apache.org/viewcvs?rev=354822&view=rev
> Log:
> refactor the version of createResource() which calls
> resource.setIsCollection() so that the decision when to call that
> method and the calculation of the value passed to it are delegated to
> helper methods.
> 
> isCreateRequest() returns true if the request method signifies that a
> resource needs to be created. this is the circumstance in which
> resource.setIsCollection() needs to be called. the default
> implementation of isCreateRequest() returns true when the method is
> MKCOL, PUT or POST.
> 
> isCreateCollectionRequest() erturns true if the request method
> signifies that a *collection* resource needs to be created. it is used
> to decide whether to pass true or false to
> resource.setIsCollection(). the default implementation returns true
> when the method is MKCOL.

Mime
View raw message