Hi there,
I'm getting the following error whenever I attempt to use the client class
from within the GAE.
Client client = new Client(Protocol.HTTP);
Response response = client.get("http://www.google.com";);
Internal Connector Error (1002) - access denied (java.net.SocketPermission
www.google.com
I have moved my application from sub-classing Restlets to sub-classing
Resources and am now relying on annotations to process incoming
requests (@Get for ex.). However, one of the nice side-effects of
processing requests with the catch-all handle method is that it allows
me to have one plac
Hi Thierry,
I'm not entirely sure what the intended behaviour of the TunnelService
(regarding user-agents) is. Could you confirm this should be as follow
(assuming the user agent tunnel is switched on in the service)?
Step 1. The TunnelService parses the 'User-Agent' header and compares it
to
Brendan,
The Finder class is a kind of factory mostly used (in the Restlet
framework) for instantiating "resources" (I mean instance of Handler
such as Resource, or ServerResource). The global scheme is that such
Restlet is able to delegate a call to a new instance "resource".
Restlet and "reso
Thanks Thierry,
That seems fine, one LAST question, can you send some sample code that
demonstrates the usage
of the "Finder" Restlet? How to use this seems unclear to me.
Thanks again,
Brendan...
On 24 Jun 2009, at 13:44, Thierry Boileau wrote:
> Hi,
>
> well, instances of the Application c
Hi,
Very soon I noticed something strange(?) when using Restlet Resources:
if a http method is not allowed, it will go and check all allow methods:
e.g.
When using DELETE http method and only POST is allowed, it will go and
check
allowDelete, allowGet, allowPut.
Why is not doing just one check
Hi Bruce,
can you send us the content of the "user-agent" header? We will complete
the default "agent.properties" file.
best regards,
Thierry Boileau
> Hi guys,
>
> I'm setting up a restlet app at the moment, and I'd like to set it up so that
> if a user uses a browser to access a resource, he
Hello Bruce,
could you have a look at this page [1] of the user guide? And at the
javadocs of the tunnelService class [2], and ClientInfo class [3].
The solution is based on two properties files.
One (agent.properties), helps to match the user-agent string (sent by
the browser) and extract some
Hello Simon,
during the routing process, the incoming URI is matched against one of
the declared URI templates. If several routes match the request's URI,
then, a choice is made according to the politics of the router (by
default "best score", but it could be "first match", etc.).
In your case,
Hi,
well, instances of the Application class, are rather designed to be
independent. Hosted by a Component, the primary goal was to keep them
unaware of the other applications hosted by the component. However, that
does not mean one cannot communicate with another one. I think of the
HTTP, for
I have a class that extends Resource - it handles GET and POST requests.
For the GET reqeust it uses a passed in attribute from the client - e.g.
myuri/{status}
everything works ok. However I thought about handling a PUT request in the
same class but this time it would use a different value an
Hi guys,
I'm setting up a restlet app at the moment, and I'd like to set it up so that
if a user uses a browser to access a resource, he gets given a nicely formatted
HTML page, but if he separately asks for XML or JSON he gets a machine parsable
response. Its all working well on Firefox, but
Thanks Thierry,
Can you route between "Applications" within a component or is routing
restricted to within a single "Application" as you have showed in
your sample code.
Thanks again for all your help,
Regards,
Brendan...
On 24 Jun 2009, at 11:40, Thierry Boileau wrote:
> Hello Brendan,
>
>
Hello Brendan,
Filter instances can pre and post process request/response via the
"beforeHandle" and "afterHandle" methods, thus it gives you a complete
control.
Having said that, the "beforeHandle" method is a more a place where to
enrich the context of the incoming request, or even update the
Thanks Thierry,
Thats exactly what I was looking for, can I partially build the response as it
passes from one restlet to the next, or does the final restlets response
overwrite the proceeding ones?
Regards,
Brendan...
--
http://restlet.tigri
Hello Brendan,
I send you a sample application that illustrates the usage of Filter
subclasses.
I hope this will help you.
best regards,
Thierry Boileau
> Hi,
>
> I'm new to Restlets and need help on how to use separate "restlets" to
> handle different parts of a single URI, is this possible?
Hello Jennifer,
Here are the home site for the jaxb and statx libraries
- https://jaxb.dev.java.net/
- http://java.sun.com/webservices/docs/2.0/sjsxp/index.html
best regards,
Thierry Boileau
>
> I was wondering if someone from the Restlet team could tell me where
> the two packages javax.xml
I was wondering if someone from the Restlet team could tell me where the
two packages javax.xml.bind and javax.xml.stream were downloaded from and
where I might be able to get the source code?
Jennifer Carlucci
--
http://restlet.tigris.org/ds/
Hi,
I'm new to Restlets and need help on how to use separate "restlets" to handle
different parts of a single URI, is this possible?
e.g take the URI "/employee/manager/john".
I'd like to attach 3 different "restlet" objects to the router, one to handle
each part of the URI path. The first re
Hi,
I'm new to Restlets and need help on how to use separate "restlets" to
handle different parts of a single URI, is this possible?
e.g take the URI "/employee/manager/john".
I'd like to attach 3 different "restlet" objects to the router, one to
handle each part of the URI path. The first
20 matches
Mail list logo