Hi Paul,
> Yes, but I prefer to err on the side of points of use rather than
> class definition. By that I mean that if getDecoded*() methods are
> not defined, then every use of get*() methods where one wants
> decoding requires something like:
>
> path = Reference.decode( ref.getPa
On Mar 11, 2008, at 9:46 AM, Jerome Louvel wrote:
Actually, there is already a paragraph on this in the Javadocs (1.1
M2) at
the class level, but not for each getter. I have just added a note
to each
getter returning encoded strings.
Thanks.
I meant that it might 'clutter' the class to ad
Hi Paul,
> Well, at least update the Javadoc so it specifically says that the
> strings returned are not decoded.
Actually, there is already a paragraph on this in the Javadocs (1.1 M2) at
the class level, but not for each getter. I have just added a note to each
getter returning encoded strin
On Mar 10, 2008, at 10:22 AM, Jerome Louvel wrote:
We made the choice to keep the URI reference unchanged and to provide
Reference.decode()/encode() static methods instead.
Well, at least update the Javadoc so it specifically says that the
strings returned are not decoded.
Now, maybe we co
---
> De : Paul J. Lucas [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 10 mars 2008 17:45
> À : discuss@restlet.tigris.org
> Objet : Re: Root URIs under Windows
>
> On Mar 10, 2008, at 1:45 AM, Thierry Boileau wrote:
>
> > I've tested this code below with both Rest
On Mar 10, 2008, at 1:45 AM, Thierry Boileau wrote:
I've tested this code below with both Restlet 1.1 (snapshot) and
Restlet 1.0.8 and it works.
Could you tell us more about your code?
I have my own classes derived from Directory and DirectoryResource. I
override DirectoryResource.handleGet
Hello Paul,
I've tested this code below with both Restlet 1.1 (snapshot) and
Restlet 1.0.8 and it works.
Could you tell us more about your code?
best regards,
Thierry Boileau
public static void main(String[] args) throws Exception {
Component component = new Component();
com
On Mar 7, 2008, at 5:12 PM, cleverpig wrote:
public Restlet createRoot(){
final String
DIR_ROOT_URI="file:///E:/eclipse3.1RC3/workspace/RestletPractice/static_files/
";
Yes, I already know how to do the code. That's not my question. The
differences between your e
I think it's helpful:
Application application=new Application(component.getContext()){
@Override
public Restlet createRoot(){
//directory where static web files live
final String
DIR_ROOT_URI="file:///E:/eclipse3.1RC3/workspace/RestletPractice
Does anybody use Restlet under Windows? I want my server's root URI
to be a directory like:
C:\Documents and Settings\pjl\My Documents\My Pictures\
That's held in a File variable. I convert that to a URI then to a
String like:
String rootURI = rootDir.toURI().toString();
10 matches
Mail list logo