Thanks, Jerome!
I stepped out this problem after a hour's work.
1.I put template file in template directory which under
classpath:templates\people.vm,by the way,I use Eclipse to develope
these.
2.put velocity.properties under classpath:
resource.loader = file
file.resource.loader.description =
Hello Leshek,
I'm not sure the ReferenceList object is really helpful for you.
You can either code your representations (HTML and XML) manually or
use one of the templated representations (freemarker, velocity) or one
of the XML-related representations (JIBX, JAXB).
best regards,
Thierry Boileau
Hi Jahid,
If you want to work with a custom challenge scheme, you have two sides to
cover.
The first one defines how to actually use the scheme. It essentially means
setting up a Guard like this:
myGuard = new Guard(context, new ChallengeScheme(ABC, myRealm);
If your scheme has non common
Hi Steve,
Thanks for the report. This is a regression due to the new pluggable
authentication mechanism.
I've fixed it in SVN trunk.
Best regards,
Jerome
-Message d'origine-
De : Steve Loughran [mailto:[EMAIL PROTECTED]
Envoyé : mardi 4 mars 2008 18:25
À :
Hi Jeff,
If a status is not in error, the Servlet API doesn't allow the setting of a
reason phrase. Actually, there was a method for this case which was
deprecated:
javax.servlet.http.HttpServletResponse.html#setStatus(int,String)
Now, in case of error (like a 400), we instead call the
Hi Rhett,
You are correct. This could be a good enhancement for 1.2. Do you want to
enter a RFE in our issue tracker?
I think it will require changes to ChallengeRequest, Guard and to the
parsing/formatting logic in the engine.
Best regards,
Jerome
-Message d'origine-
De : Rhett
FYI, here is the original JSONP proposition:
http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/
Best regards,
Jerome
-Message d'origine-
De : cleverpig [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 5 mars 2008 06:50
À : discuss@restlet.tigris.org
Objet : How to use
Hi all,
A good compromise would be to create a ReferenceList subclass, overriding
the getWebRepresentation() method to return a FreeMarker
TemplateRepresentation instance for example where you could control the
content as you which.
Best regards,
Jerome
-Message d'origine-
De :
On Wed, Mar 5, 2008 at 8:50 AM, Jerome Louvel [EMAIL PROTECTED] wrote:
Hi Steve,
Thanks for the report. This is a regression due to the new pluggable
authentication mechanism.
I've fixed it in SVN trunk.
Best regards,
Jerome
excellent, I will look forward to the updated -SNAPSHOT
Hi,
Is there any session on server side? I was looking for session or session type
something in API documentation. But I didn't fine any.
So the question is, is there any session object on server side? If yes, what
class is that and how to use that? If no, then how we maintain have some memory
Hello Jahid,
one of the main points of REST is, that there is no session state on the
server. If you want to have a session state, than you do not follow the
REST architecture style.
regards
Stephan
Jahid schrieb:
Hi,
Is there any session on server side? I was looking for session or
Hi Steve,
excellent, I will look forward to the updated -SNAPSHOT mid-march.
OK.
We need to think about how to integrate testing of all of this; as
both our sources are public it should be possible, but I can't give
apache gump my AWS login details.
We used a public login from the
Hello Jahid,
Hello Jahid,
some pages, among the crowd:
http://tech.groups.yahoo.com/group/rest-discuss/message/3583
http://davidvancouvering.blogspot.com/2007/09/session-state-is-evil.html
best regards,
Thierry Boileau
On Wed, Mar 5, 2008 at 2:20 PM, Stephan Koops [EMAIL PROTECTED] wrote:
Stephan Koops wrote:
one of the main points of REST is, that there is no session state on the
server. If you want to have a session state, than you do not follow the
REST architecture style.
uh, yes, but:
observation 1- there *is* server side state in ReSTful apps. As Stephan
points out
That is a very good point Marc is making. The way I think about it, that
REST is not really stateless :-) it requires state separation:
application state - always on the client (what page is the client on);
can use cookies fully client controlled
resource state- on the server
Hi Jerome,
On Mar 5, 2008, at 3:41 AM, Jerome Louvel wrote:
You are correct. This could be a good enhancement for 1.2. Do you
want to
enter a RFE in our issue tracker?
Done: http://restlet.tigris.org/issues/show_bug.cgi?id=457 .
Rhett
Hello,
is it possible to code in Restlet, that I create a message head, than
start to send it and afterwoods start to create the entity data (the
message body) in one method, without creating a new Representation
subclass that does it?
I think not, or does I miss something?
The reason is,
I'm trying to serve different representations based upon the file extension
provided in the URI.
For instance, if I get
http://server/user/cmort.js
I want to return this variant: MediaType.APPLICATION_JSON
but if I get http://server/user/cmort.rss
I want to return this variant:
Leshek wrote:
That is a very good point Marc is making. The way I think about it, that
REST is not really stateless :-) it requires state separation:
application state - always on the client (what page is the client on);
can use cookies fully client controlled
resource state-
Hello Chuck,
there is a start for a solution for included in Restlet: the Metadata
Service. It is for now only used by the
com.noelios.restlet.application.TunnelFilter. But you can create a
filter that does this, and use the MetadataService. It includes a lot of
file extensions.
I think,
Is there a good way to squelch just this log output? I've tried pointing
Java Logging to a logging.config file with entries like this:
com.noelios.restlet.ext.simple.level=SEVERE
simple.level=SEVERE
com.noelios.restlet.ext.simple.SimpleProtocolHandler.level=SEVERE
But that does not do the
Apologies, forgot to supply a convenient link to the issue:
http://restlet.tigris.org/issues/show_bug.cgi?id=428
Aaron Crow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is there a good way to squelch just this log output? I've tried pointing
Java Logging to a logging.config file
Stephan Koops Stephan.Koops at web.de writes:
Hello Chuck,
there is a start for a solution for included in Restlet: the Metadata
Service. It is for now only used by the
com.noelios.restlet.application.TunnelFilter. But you can create a
filter that does this, and use the
I think/hope that this should be a fairly simple issue to resolve... :)
I am trying to get into Restlet, and its slow work. I have been going
through
the tutorials and trying out the example code and I've hit a piece of code
that
I can't compile.
It is in Section 3:
// Creating a
Maybe you should try to use JDK 6
On Thu, Mar 6, 2008 at 11:35 AM, Marcus [EMAIL PROTECTED] wrote:
I think/hope that this should be a fairly simple issue to resolve... :)
I am trying to get into Restlet, and its slow work. I have been going
through
the tutorials and trying out the example
Thankyou for your quick reply Keke, but I believe I am :
$ java -fullversion
java full version 1.6.0_04-b12
$ javac -version
javac 1.6.0_04
Would you be able to tell me whcih part of my problem indicated to you that
I may not be running 1.6? Perhaps this may shed some more light onto the
26 matches
Mail list logo