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
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
Thierry Boileau thboileau at 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.
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,
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
À :
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 Jerome,
8 matches
Mail list logo