Hi Folks,
I'm trying to use the REST plugin to implement a service that serves
resources using the following url syntax:
http://www.mydomain.com/rest/book/123 (which works fine)
http://www.mydomain.com/rest/book/123/chapter (which throws a 500
because my book controller doesn't have a
with REST standards (see
http://en.wikipedia.org/wiki/Representational_State_Transfer for a more
details on REST).
If you want to do something with multiple IDs my suggestion would be URLs
along the lines of;
http://www.mydomain.com/rest/bookAndChapter/123_1
Al.
Mike Watson wrote:
Hi
Well that'd be nice but I'm really struggling to get it to behave the
way I want. Any thoughts on how I might do this?
2008/6/17 Dave Newton [EMAIL PROTECTED]:
--- On Mon, 6/16/08, Mike Watson [EMAIL PROTECTED] wrote:
Can anybody suggest where I would start in an attempt to
implement
around the web on how flat file systems scale, and possibly think about an
intermediate table which maps IDs to the location of the chapter data which
would allow you to have separate file stores to spread the data accross.
Al.
Mike Watson wrote:
Thanks for the feedback.
I actually
.
Don
On Tue, Jun 17, 2008 at 9:10 AM, Mike Watson [EMAIL PROTECTED] wrote:
Well that'd be nice but I'm really struggling to get it to behave the
way I want. Any thoughts on how I might do this?
2008/6/17 Dave Newton [EMAIL PROTECTED]:
--- On Mon, 6/16/08, Mike Watson [EMAIL PROTECTED] wrote
Hi Folks,
I'm trying to figure out how to return binary data from the REST plugin.
I'd like to be able to return images that are generated on the fly by
a REST request but looking at ContentTypeHandlerManager, it assumes
that we'll only ever want to return a string and so passes a
StringWriter
go? Should I use ModelDriven and assign it to the model?
Also how do I get a handle on the StreamResult object so I can specify
attributes programmatically? All the samples I have seen do so
declaratively.
Thanks again for the tips!
Mike
2008/6/20 Jeromy Evans [EMAIL PROTECTED]:
Mike Watson
Hi Jeromy,
Please ignore my other email, I was being a dumb-ass.
Thanks heaps for the tips, I managed to get this working today.
Mike
2008/6/20 Jeromy Evans [EMAIL PROTECTED]:
Mike Watson wrote:
Hi Folks,
I'm trying to figure out how to return binary data from the REST plugin.
I'd like
Hi Jeromy,
I've finally found time to try to resolve this but haven't had much luck.
Just to recap, I'm looking to be able to do something similar to the following:
/book - returns a list of books
/book/123 - returns book with id 123
/book/123/chapter/1 - return chapter with id 1, retrieved from
Thanks heaps Jeromy, I'll grab the 2.1.3 snapshot and try again.
A vanilla sample app would be great (others would probably find it useful too).
Cheers
Mike
2008/7/3 Jeromy Evans [EMAIL PROTECTED]:
Mike Watson wrote:
Hi Jeromy,
I've finally found time to try to resolve this but haven't
, but that is an exception case,
right?
Either way, I am definitely interested on how Jeremy got this to work using
namespaces. Are you using Codebehind or Convention Jeremy?
Jeromy Evans - Blue Sky Minds wrote:
Mike Watson wrote:
Hi Jeromy,
I've finally found time to try to resolve this but haven't
So what's the best way to get the latest 2.1.3 snapshot as source?
Only the jars seem to be in the maven snapshot repo...
Are there any instructions on doing that somewhere? I've looked but
can't find them...
2008/7/3 Jeromy Evans [EMAIL PROTECTED]:
Mike Watson wrote:
Hi Jeromy,
I've
Jeromy,
Thanks *heaps* for finfing the time to do that. I'd pretty much done
everything your demo does except for one little detail:
constant name=struts.patternMatcher value=namedVariablePatternMatcher/
Doh!
Now to see if that's broken my fancy pants image handler...
BTW, if I want a
Hi folks,
As mentioned in previous posts I'm using the REST plugin to serve
images and everything seems to work fine when the content exists.
However if I return an empty inputstream to StreamResult with a 404
response code I get the exception below.
Stepping through the code the getBufferSize()
/7/24 Jeromy Evans [EMAIL PROTECTED]:
Mike Watson wrote:
Hi folks,
As mentioned in previous posts I'm using the REST plugin to serve
images and everything seems to work fine when the content exists.
However if I return an empty inputstream to StreamResult with a 404
response code I get
Thanks mate. I'll give that a try tomorrow.
2008/7/24 Jeromy Evans [EMAIL PROTECTED]:
Mike Watson wrote:
What I actually return is a DefaultHttpHeaders with a 404 set.
getImage() returns an empty (not null) inputstream since there's no
content for the body.
You may need to return
Hi Folks,
What's the most straightforward way to secure my REST URLs?
I'd assumed that I'd be able to use the standard JEE approach and
secure based on URL patterns but this doesn't seem to work (on
Websphere anyway) and I'm assuming it's to do with the fact everything
I'm doing is happening in
I should probably add that I'm just trying to authenticate via LDAP at
this stage. Authorization will be implemented later.
2008/7/28 Mike Watson [EMAIL PROTECTED]:
Hi Folks,
What's the most straightforward way to secure my REST URLs?
I'd assumed that I'd be able to use the standard JEE
is to use a third party filter. Acegi/Spring Security is
the most popular and probably the most flexible as it's closely bound to
your (Spring) Object Factory. There are other open source filters available
too that may suite you.
Hope that helps,
Jeromy Evans
Mike Watson wrote:
I should
Is there an ETA on when 2.1.3 (or greater) will go GA?
Mike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
20 matches
Mail list logo