----- Original Message ----- 
From: "Paulo Lopes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 9:07 PM
Subject: WebdavResource suggestion (correction)


> 
> sorry, i made a mistake. the new getPath() would be 
> something like:
> 
> public String getPath() {
>    if (isCollection())
>       return httpURL.getPath();
>    else
>       return httpURL.getParent();
> }

Do you want to get the collection only in the current WebDAV resource?
That's the way.
However, remember there is the NO_ACTION flag not to connect to a server.
So, it's dependent on the develper to use the WebdavResource class.

> 
> 
> > 
> > hi!
> >
> > at this moment, the WebdavResource class has a
> > method
> > getPath() that returns the complete uri (path +
> >
> > uriname)
> >
> > i have a suggestion to make:
> >
> > why don't implement new methods in this class
> > like
> > getURI() and getURIName(), and change the
> > getPath() to
> > only return the path of the uri?
> >
> > here is the source of the methods that i
> > suggested:
> >
> > public String getURI() {


Do you mean the URI?
Then, there is the getHttpURL method.


> >     return httpURL.getPath();;
> > }
> > public String getURIName() {
> >     return httpURL().getName();
> > }
> >
> > public String getPath() {
> >     return httpURL.getParent();
> > }
> >
> > paulo lopes
> >
> > p.s. sorry for my poor english

So do I.  ;-)

Sung-Gu



Reply via email to