We just started integrating JRuby and are already using Rhino.
In our case, though, the script does not have full access to the request and
response; the scripting just provides access to middle tier applicaiton level
objects. We do put our script factories at the Application level for now
I gotta quit working in trunk all the time.
setRedirectRef(...) does the same thing in 1.0.5, but is deprecated in trunk
(1.1 and forward), I assume because Location: gets used for other things than
redirects (e.g. creates).
- Original Message -
From: Jim Alateras [EMAIL PROTECTED]
Thierry,
Beautiful! That was exactly what I needed. Thanks for your help. Great
library BTW.
-Dustin
The best I could find is yes Resources get created each request, and I
should extend a Restlet and override the handle method. Allowing Pico to
create the Restlet with the database connection in it. I don't see a way
to do that with a Resource unless I can make Restlet use a custom factory.
Re: Security
The underlying issue is always the need to answer the question:
What is the threat model that you're worried about?
Until there's clarity on that, all other considerations are irrelevant.
After there's clarity on that then it's a question of balancing the
tradeoffs (direct costs,
I've been playing around with Java 6 scripting engines and restlet and I've
considered and come up with a few approaches. I'd be interested in opinions
on this.
There certainly is the JSP-like way of write a web page where the page's output
is bound to the request response. There are so many
I'm loading applications dynamically from a jar file and I'd really
like to attach a
Directory instance give a class instance. That is, something like:
router.attach(/content,new
Directory(getContext(),LocalReference.createClassReference(MyApp.class,content));
where the resource path is
Is this different from using CLAP, or is this what you need:
component.getClients().add(Protocol.CLAP);
router.attach(/content,new Directory(getContext(),
clap://thread/com/solertium/example/content));
- Rob
- Original Message -
From: Alex Milowski [EMAIL PROTECTED]
To:
Ok. I've looked it over and the question I have is doesn't this approach
put you outside the Restlet API? And, would it be better to just create
Restlets instead of Resources? The way I understand the document is that
Resources get loaded every time, but Restlets are loaded once? Is this
Justin S.,
Take a look at some of the Spring integration that other folks have
done. (Substitute IoC framework for Spring and you'll get the
idea.) You can find my Spring-based solution at http://
article.gmane.org/gmane.comp.java.restlet/2943. It overrides the
Finder's createResource
On 9/7/07, Rob Heittman [EMAIL PROTECTED] wrote:
Is this different from using CLAP, or is this what you need:
component.getClients().add(Protocol.CLAP);
router.attach(/content,new Directory(getContext(),
clap://thread/com/solertium/example/content));
This is different in
I guess I was reading the question as more like: Are sessions secure?
or Are cookies secure? Not so much is any generic technology secure?
My answer to the sessions/cookies question:
Cookies and/or sessions cannot ever be secure without SSL. Otherwise, a
man-in-the-middle can use the
Justin S.,
Finder looks to me like a per-request Resource factory. How it
generates the Resources is of no concern to the rest of the
framework. My example just delegates the creation of the Resource to
Spring. (I guess that is outside the Restlet API.) There is some
overhead of asking
Here's what I've done. I have a finder that takes a Class and path:
public class ClassResourceFinder extends Finder
{
Class baseClass;
String packageName;
/** Creates a new instance of ClassResourceFinder */
public ClassResourceFinder(Context context,Class baseClass,String path)
If you mean from a browser-based form, you probably want to use POST to emulate
a PUT, unless you want to use AJAX. Restlet provides help for tunneling PUT
over POST; see this FAQ entry:
http://www.restlet.org/documentation/1.0/faq#19
- Original Message -
From: katrin [EMAIL
Justin S: If you don't want to have sessions, show us a pattern that can fill
the void.
Kyrre K: ...implement it either as a plug-in, code templates, or document it
as the recommended way.
I think the documentational path is the first approach, and I don't know that
the discuss list is the
I've been looking a Flex as a front end for a rest service. But Flex
has a weakness. It does not grantee that it will return the http
status when a call in returned. All the flex client knows is that the
call susedde4d or failed. And the header data is not returned to the
Flex client.
17 matches
Mail list logo