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. (see:http://w
Sounds good. Let me know when/where and I'll help proof it or something.
Rob Heittman wrote:
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 th
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
Yes, this was my point as well. But I think the question began more like
"If Restlet's doesn't offer something like Sessions someone will make
one of another framework will take it's place.". My answer was wouldn't
simple documenting a different method under Restlet's cover that issue.
I mean i
I believe I'm taking a different approach. I have all of Restlet in my
PicoContainer. In other works I've created a server class that listens
to lifecycle on Pico and creates the component and starts Restlet when
start is called on PicoContainer. Like so:
pico = new PicoBuilder().withCaching().
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 PROT
I want to have a link in book representation page for loan it.
how can I make PUT calls to create a loan resource after clicking that link?
Thanks in advance.
That's really handy!
- Original Message -
From: "Alex Milowski" <[EMAIL PROTECTED]>
To: discuss@restlet.tigris.org
Sent: Friday, September 7, 2007 4:07:50 PM (GMT-0500) America/New_York
Subject: Re: LocalReference given a Class Instance?
Here's what I've done. I have a finder that
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)
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 S
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
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 dif
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
correc
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: d
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 cons
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, use
Hi Justin,
you're right, a new instance of your Resource class is created each time
your resource is targeted.
Each instance is responsible to load the resource's own state, and
respond to only one request.
best regards,
Thierry Boileau
The best I could find is yes Resources get created each
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 article.gmane.org/gmane.comp.java.restlet/2943>. It overrides the
Finder's createResource method to
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.
St
Hum, maybe I need to use Restlet as my subclass and not Resource?
Stanczak Group wrote:
In the following code I supply the router with a class. Restlet then
creates this class, I'm guess when a call is made. My question is does
this class get created each time or is it cached? If I use somethin
In the following code I supply the router with a class. Restlet then
creates this class, I'm guess when a call is made. My question is does
this class get created each time or is it cached? If I use something
like PicoContainer with caching I can have it inject the
CoursesResource.class, which
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 and
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 PROTECTE
On the point of session security, it can be only as secure as the
network connection. So if you encrypt the communication channel does the
session matter that much? The session just becomes a part of the
software. If you look at it based on security from logged in users then
you still have to e
Thierry,
Beautiful! That was exactly what I needed. Thanks for your help. Great
library BTW.
-Dustin
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 iss
26 matches
Mail list logo