Hi Jerome,
I apologize for beating that one to death, but I still have questions...
> It seems that the Atom Publishing Protocol spec slightly diverges from HTTP
> 1.1 spec on this case.
I'm sorry, I quoted an early draft. The current APP draft states:
When the server generates a response wi
Hi Dig,
Thanks for the questions which gives us an opportunity to discuss content
negotiation and how it is supported in Restlet.
1) About getVariants()
This method is indeed called several times during the processing. Therefore,
it is recommended to not override it unless you have a good reaso
Hi Vincent,
You got the semantics of your transaction resource right, but the name is
just a bit ambiguous (IMHO) for someone not too familiar with your design.
Best regards,
Jerome
> -Message d'origine-
> De : news [mailto:[EMAIL PROTECTED] De la part de Vincent
> Envoyé : mardi 23 j
Hi Vincent,
[...]
> Now, CollectionResource.post must create an ImageResource,
> and return a representation of this resource by calling
> ImageResource.getRepresentation(Variant variant).
> Does does CollectionResource.post know that the preferred variant is
> image/png?
>
> My guess:
>
>
I wanted to set up something like is shown in the tutorial component diagram
where there are VirtualHost A and B and Application 1, 2, and 3. I'm using
RC3 and my code looks like this:
public class ComponentServer {
public static final String DOC_URI
file:home/slandis/restlet-1.0rc3/do
Sean Landis gmail.com> writes:
[...deleted...]
>
> I tried looking at the code but got lost trying to figure out the dispatching
> of the handle() method to the handler. I kept going in circles and never
> could find where the servers list was being used.
Part of the problem I am having is deter
Hi Jerome,
> Good points. You got the post method right, it could just be simpler:
>
> post(...) {
> [..]
> ImageResource image = new ImageResource(...);
>
> getResponse().setEntity(image.getRepresentation(image.getPreferredVariant())
> );
> }
I thought this wouldn't work because th
Hello Sean,
did you try to set the status after setting the entity of the response?
Best regards
Thierry
Sean Landis a écrit :
I wanted to set up something like is shown in the tutorial component diagram
where there are VirtualHost A and B and Application 1, 2, and 3. I'm using
RC3 and my cod
Thierry Boileau gmail.com> writes:
>
> Hello Sean,
>
> did you try to set the status after setting the entity of the response?
>
> Best regards
> Thierry
Hi Thierry,
I just tried that without success. I added:
response.setStatus(Status.SUCCESS_OK);
after setting the entity.
I al
Pardon,
It did sort of work...
When I selected http://wasatch:8182/jar I got a download dialog but:
1) the name of the file was "jar", not "org.restlet.jar",
2) The file that gets 'downloaded' is empty.
Sean
Hi Sean,
I don't get an empty file but the right one. Did you check the logs or
any trace on the console?
However, you're right, the name is "jar", in my opinion this is not so
unusual as the FileRepresentation is only a way to serve octets.
I tried to set the identifier of the reponse's entity
Sean,
I forget : can you try to define the JAR_URI with the file path and not
the file URI (check the constructor ;) ), such as :
public static final String JAR_URI =
"//home/slandis/restlet-1.0rc3/lib/org.restlet.jar";
Best regards,
Thierry
Sean Landis a écrit :
Pardon,
It did sort of wo
Hi,
Unless I'm missing something, I believe Guard.doHandle should
be changed from:
public void doHandle(Request request, Response response) {
switch (authenticate(request)) {
case 1:
// Valid credentials provided
if (authorize(request)) {
Hi Vincent,
This has already been fixed in SVN. The "authorize()" method now returns
true by default. Thanks for reporting it.
Best regards,
Jerome
> -Message d'origine-
> De : news [mailto:[EMAIL PROTECTED] De la part de Vincent
> Envoyé : mercredi 24 janvier 2007 01:39
> À : discuss
Hi Vincent,
Exactly! This was a great thread, thanks for starting it.
Best regards,
Jerome
> -Message d'origine-
> De : news [mailto:[EMAIL PROTECTED] De la part de Vincent
> Envoyé : mardi 23 janvier 2007 18:25
> À : discuss@restlet.tigris.org
> Objet : Re: Getting confused
>
> Hi J
15 matches
Mail list logo