Unfortunately, a doCheckExists() method is missing in javax.wvcm.Resource.
To make it yourself, I'd propose something like:
public boolean checkExists(Resource r) throws WvcmException {
boolean exists = false;
try {
r.doReadProperties(null);
exists = true;
}
catch (WvcmException e) {
if (e.getReasonCode() != ReasonCode.NOT_FOUND) {
throw e;
}
}
return exists;
}
Regards,
Peter
> -----Original Message-----
> From: Daniel Florey [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 17, 2004 16:52
> To: Slide Developers Mailing List
> Subject: Re: wvcm questions
>
>
> One more:
> - How can I determine if a resource exists at a given
> location? Do I have to
> retrieve the parent location, get the folder at this
> position, get the
> binding list of the folder, iterate over the elements and
> check if the
> binding is there? Or is there a better way?
> Thanks for your help,
> Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]