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

[EMAIL PROTECTED] 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.

Reply via email to