Hi all,
This is an interesting thread and I don't have any strong opinion on it
yet. Maybe it would be useful to relaunch this thread in the
REST-Discuss list on Yahoo. You could get the opinion of the larger REST
community and potentially of Roy T. Fielding too.
Best regards,
Jerome
Hi Adam,
I don't see how this is any easier than making the Resource stateless.
Is allowGet(Request request); any more difficult to call than
allowGet(); ? How is getRepresentation(Variant); any easier than
getRepresentation(Request, Response, Variant); ??
It's not a matter of easiness for
I use spring aop and cglib and it works well for me. I do appreciate
problems with cglib and proxys however.
I also use my own version of SpringRouter to map uri and resources and
to filter them with globally before and after filter lists. I also
have filters set on my individual resources. I
Adam Taft wrote:
Ultimately, no matter how we get there, Resource needs to be a
stateless in order to work well with Ioc.
Having used Spring and Restlet together on my current project I
disagree. I can't speak for other IoC frameworks, but Spring provides
multiple way to inject other beans
My last message was stupid. Please ignore. :)
What I was _trying_ to get at was this:
There Exists a Function which Relates en = de.
Ie. When you write down /en/de/ you are suggesting that in order to go
to de, you have to go through en. That is, you start at 'en' (the
original document)
I am trying to use Freemarker template. Here is what I do:
public Representation getRepresentation(Variant variant) {
Representation result = null;
if (variant.getMediaType().equals(MediaType.TEXT_HTML)) {
String html = h4PAGE NOT FOUND/h4;
Page page = null;
try {
// page
At Thu, 19 Jul 2007 08:58:41 -0600,
Adam Taft [EMAIL PROTECTED] wrote:
My last message was stupid. Please ignore. :)
What I was _trying_ to get at was this:
There Exists a Function which Relates en = de.
[…]
From http://www.ietf.org/rfc/rfc3986.txt (URI generic syntax) sec.
1.2.3.
|
Erik Hetzner wrote:
Which is of greater significance: the language translated from or
language translated to? If you can’t answer that question, and I don’t
think that you can, then you don’t have a hierarchy.
Which is greater significance: manufacturer, model year, model class,
model type?
At Thu, 19 Jul 2007 13:48:35 -0600,
Adam Taft [EMAIL PROTECTED] wrote:
Which is greater significance: manufacturer, model year, model class,
model type? You said /cars/ford/2007/f-series/f-150/ was acceptable.
But, you can't answer which is more significant either. They are all
required to
Hello Geoffrey,
If you've got a resource that handles GET and DELETE and has one or more
representations that require a certain amount of effort to instantiate, but
might 404 based on information out of the database, what's the usual pattern to
handle this?
On the one end of the spectrum, I
serge serge at mydsl.com writes:
When I use StringRepresentation everything works as expected. When I switch to
TemplateRepresentation the page is rendered, but the browser keeps loading and
loading. I also noticed that content-length is not set in the header (whereas
if I use
-Original Message-
From: Thierry Boileau [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 19, 2007 4:41 PM
To: discuss@restlet.tigris.org
Subject: Re: 404 from getRepresentation/handleGet?
[. . .]
I hope this will help you,
Thierry Boileau
p.s.: DELETE method does not return 404
Jerome Louvel contact at noelios.com writes:
I also recommend the usage of the Restlet issue tracker on Tigris.org to
report those type of bugs/issues as it makes it easier for us to keep
track of, sort by priority, etc.
Sorry for not posting to the issue tracker. When I'm learning a
13 matches
Mail list logo