sorry, i made a mistake. the new getPath() would be 
something like:

public String getPath() {
   if (isCollection())
      return httpURL.getPath();
   else
      return httpURL.getParent();
}

paulo lopes


> 
> 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() {
>     return httpURL.getPath();;
> }
>
> public String getURIName() {
>     return httpURL().getName();
> }
>
> public String getPath() {
>     return httpURL.getParent();
> }
>
> paulo lopes
>
> p.s. sorry for my poor english
>
> -------------------------------------------------
> Email Enviado utilizando o servi�o MegaMail
> 


-------------------------------------------------
Email Enviado utilizando o servi�o MegaMail

Reply via email to