luetzkendorf    2004/06/28 09:33:11

  Modified:    src/webdav/server/org/apache/slide/webdav/util
                        ComputedPropertyProvider.java
  Log:
  add a ctor and made one deprecated
  
  Revision  Changes    Path
  1.7       +34 -30    
jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/ComputedPropertyProvider.java
  
  Index: ComputedPropertyProvider.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/ComputedPropertyProvider.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ComputedPropertyProvider.java     14 Jun 2004 12:38:36 -0000      1.6
  +++ ComputedPropertyProvider.java     28 Jun 2004 16:33:11 -0000      1.7
  @@ -52,16 +52,10 @@
   public class ComputedPropertyProvider implements PropertyProvider {
       
       /**
  -     * The context path of the request.
  +     * The context path of the request, the prefix of all slide uri in the
  +     * WebDAV view.
        */
  -    //protected String contextPath = null;
  -    
  -    /**
  -     * The servlet path of the request.
  -     */
  -    //protected String servletPath = null;
  -    
  -    protected String slideContextPath = null;
  +   protected String slideContextPath = null;
       
       /**
        * The Content helper to use.
  @@ -104,14 +98,23 @@
        *
        * @param      nsaToken        the NamespaceAccessToken to use.
        * @param      slideToken      the SlideToken to use.
  -     * @param      contextPath     the context path of the request.
  -     * @param      servletPath     the servlet path of the request.
  +     * @param      slideContextPath the context + servlet path of the request.
  +     */
  +    public ComputedPropertyProvider(NamespaceAccessToken nsaToken, SlideToken 
slideToken, String slideContextPath, WebdavServletConfig sConf) {
  +       this(nsaToken, slideToken, 
  +             PropertyHelper.getPropertyHelper(slideToken, nsaToken, sConf), 
  +             slideContextPath);
  +    }
  +    /** 
  +     * @deprecated use [EMAIL PROTECTED] 
#ComputedPropertyProvider(NamespaceAccessToken, SlideToken, String, 
WebdavServletConfig)}  
        */
       public ComputedPropertyProvider(NamespaceAccessToken nsaToken, SlideToken 
slideToken, String contextPath, String servletPath, WebdavServletConfig sConf) {
           this(nsaToken, slideToken, PropertyHelper.getPropertyHelper(slideToken, 
nsaToken, sConf), contextPath, servletPath);
       }
   
  -    /** @deprecated */
  +    /** 
  +     * @deprecated 
  +     */
       public ComputedPropertyProvider(NamespaceAccessToken nsaToken, SlideToken 
slideToken, String contextPath, String servletPath) {
           this(nsaToken, slideToken, PropertyHelper.getPropertyHelper(slideToken, 
nsaToken, null), contextPath, servletPath);
       }
  @@ -119,20 +122,21 @@
       /**
        * Creates a ComputedPropertyProvider.
        *
  -     * @param      nsaToken        the NamespaceAccessToken to use.
  -     * @param      slideToken      the SlideToken to use.
  -     * @param      propertyHelper  the PropertyHelper to use to access the computed 
properties.
  -     * @param      contextPath     the context path of the request.
  -     * @param      servletPath     the servlet path of the request.
  -     */
  -    public ComputedPropertyProvider(NamespaceAccessToken nsaToken, SlideToken 
slideToken, PropertyHelper propertyHelper, String slideContextPath) {
  -        
  -        this.nsaToken = nsaToken;
  -        this.slideToken = slideToken;
  -        this.propertyHelper = propertyHelper;
  -        this.slideContextPath = slideContextPath;
  -        
  -        contentHelper = nsaToken.getContentHelper();
  +     * @param      nsaToken         the NamespaceAccessToken to use.
  +     * @param      slideToken       the SlideToken to use.
  +     * @param      propertyHelper   the PropertyHelper to use to access the 
computed properties.
  +     * @param      slideContextPath the context + servlet path of the request.
  +     */
  +    public ComputedPropertyProvider(NamespaceAccessToken nsaToken, 
  +          SlideToken slideToken, PropertyHelper propertyHelper, 
  +          String slideContextPath) 
  +    {
  +       this.nsaToken = nsaToken;
  +       this.slideToken = slideToken;
  +       this.propertyHelper = propertyHelper;
  +       this.slideContextPath = slideContextPath;
  +       
  +       contentHelper = nsaToken.getContentHelper();
       }
       
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to