Jonathan Hall <jonrhall <at> gmail.com> writes:
 
> Hi Chris,
> 
> For a Resource I would use the following if you can as it is cleaner and 
> keeps the handleGet code to sort some stuff out for you
>  <at> Override
>     public Representation getRepresentation(Variant variant) {    }
> 
> Anyway, for put:
> 
>      <at> Override
>     public boolean allowPut() {
>         return true;
>     }
> 
>    <at> Override
>     public void put(Representation entity) { }
> 
> Jonathan Hall
> 

That's what I had already...  I went back and looked at the code some more, and
I think the reason I was getting confused was that some of the GET-specific
logic was actually being performed in Finder.findTarget() due to not completely
refactoring from the original design based on the b20 Restlet, before the method
logic got moved into the Resource.

I just need to clean up the code so that it fits the framework model better. 
Thanks for the help.

-Chris

 



Reply via email to