I have together a small document on how to bootstrap a web service project
using these components.
http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/192-restlet/381-restlet.html
All feedback is welcome
cheers
/jima
--
-Message d'origine-
De : Jim Alateras [mailto:j...@comware.com.au]
Envoyé : mercredi 3 novembre 2010 04:06
À : discuss@restlet.tigris.org
Objet : Re: Forwarding all requests
Jerome,
Had a look at the javadoc but couldn't really see how it would work in my
scenario. In my
Just wondering whether there is a Guard or Filter that comes with the restlet
framework that will allow me to forward the original request to another server
after it has been processed by the application.
cheers
/jima
--
Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com
-Message d'origine-
De : Jim Alateras [mailto:j...@comware.com.au]
Envoyé : mardi 2 novembre 2010 20:59
À : discuss@restlet.tigris.org
Objet : Forwarding all requests
Just wondering whether
Apologies if this has already been asked but is there a maven repository that
is hosting v2.0.1 restlet libraries?
cheers
/jima
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2673736
Jerome,
I was wondering whether this change is on the 1.1.9 branch. I can see
that Application.start is called when ServerServlet.init is called but
cannot see the Application.stop is being called when
ServerServlet.destroy is called.
cheers
/jima
Begin forwarded message:
From:
Thanks Thierry, thought that may be the case.
cheers
/jima
On 06/04/2010, at 8:05 PM, Thierry Boileau wrote:
Hello Jim,
this is a good question. Actually, we were quite reluctant to update
the 1.1 branch, since it can modify the behaviour of existing
applications. Thus, the 1.1
Hi Jim,
it seems that the Spring engine is confused because there are 2
setAttachments methods declared in the class. However, as they don't
have the same parameters, this should not be a problem.
agreedquite surprised that i'm getting this error
cheers
/jima
Excellent Thierry all works as described.
Managed to deploy a GAE application based on Spring + Restlet. I am
seeing one warning message during startup (see below) but everything
else is working as expected.
Dec 16, 2009 9:37:15 AM
Jerome,
I'm also interested in this feature and look forward to having a play
with it next week.
cheers
/jima
On 14/12/2009, at 4:02 AM, Jerome Louvel wrote:
Hi Charlie,
Good timing, I have been intensively working on this feature this
week and
getting close to have a new default
Hi Jim,
Is there any reason why it's missing? Is it incompatible with GAE?
not at all...
Thanks a lot for your report, the SpringServerServlet is now part of
the gae edition!
thanks Thierry, where can i download it from?
cheers
/jima
Hey All,
Started working with GAE + Restlet by following instructions on the
wiki (http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/252-restlet.html
). I downloaded the gae enabled version of the restlet framework and
everything worked as outlined in the article. I now want to extend
~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
Jim Alateras a écrit :
I am having issues building the 1.1.6 version of the distribution
using the instructions on the developer's wiki
(http://wiki.restlet.org/developers/179-restlet/240-restlet.html
). The maven
Technologies ~ Co-founder ~ http://www.noelios.com
-Message d'origine-
De : Jim Alateras [mailto:j...@comware.com.au]
Envoyé : jeudi 29 octobre 2009 05:01
À : discuss@restlet.tigris.org
Objet : Re: http connection timeout and version 1.1.6
Thanks Jerome for getting back to me. I
do i need to enable something in build.properties to get this going?
cheers
/jima
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412551
my bad should've looked in build.properties
# Indicates if the Maven distribution should be regenerated.
maven: true
cheers
/jima
On 29/10/2009, at 10:01 PM, Jim Alateras wrote:
do i need to enable something in build.properties to get this going?
cheers
/jima
I have just fixed this issue in SVN 1.1 branch as well. Please try
again when 1.1.7 is released or try to build locally meanwhile.
apologies for the piecemeal emails but can you tell me when you reckon
1.1.7 will be available?
--
Gents,
What do you guys use to copy the stages files generated from ant stage-
maven-2 to a remote maven2 repository.
cheers
/jima
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2412585
Gents,
I am using the latest on 1.1 branch and am getting a whole lot of
SEVERE errors. while running my test cases but they seem to be benign.
SEVERE: For security reasons, don't pass the component context to
child Restlets anymore. Use the Context#createChildContext() method
the customized helper in the engine or use it when creating the Client
instance.
Hope it will help!
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
Jim Alateras a écrit :
Jerome,
I
Technologies ~ Co-founder ~ http://www.noelios.com
-Message d'origine-
De : Jim Alateras [mailto:j...@comware.com.au]
Envoyé : jeudi 15 octobre 2009 12:57
À : discuss@restlet.tigris.org
Objet : Re: UrlConneciton based HTTP client tiimeouts
We are using 1.1-M4 release when we stumbled
Jerome,
I notice that there seems to be a patch for the http timeout
connection problem some people are experiencing
(http://restlet.tigris.org/issues/show_bug.cgi?id=622
). Will this patch also be applied to the 1.1 branch? If not can you
point me to the patch submitted by Sanjay.
cheers
I am having issues building the 1.1.6 version of the distribution
using the instructions on the developer's wiki
(http://wiki.restlet.org/developers/179-restlet/240-restlet.html
). The maven build instructions don't seem quite right and the the ant
build gives the following error
We are using 1.1-M4 release when we stumbled across what seems to be a
similar problem (stack trace below). The thread basically blocks
indefinitely. If it is the same problem is there a fix for the v1.1.6.
We are currently in the process of upgrading to the latest stable
1.1.X version.
Rhett,
Thanks for the quick turnaround and suggestions
On 14/04/2009, at 2:19 PM, Rhett Sutphin wrote:
Hi Jim,
On Apr 13, 2009, at 7:56 PM, Jim Alateras wrote:
I am currently using s custom class to attach routes to a router but
am now looking at using the SpringBeanRouter but have
d'origine-
De : Jim Alateras [mailto:j...@comware.com.au]
Envoyé : jeudi 2 avril 2009 00:07
À : discuss@restlet.tigris.org
Objet : Re: Serving static content with the CLAP connector
I have also tried adding the following context parameter to my
web.xml but
am still getting '404'
context
I am currently using s custom class to attach routes to a router but
am now looking at using the SpringBeanRouter but have a couple of
questions.
1. In the example below if i also want to support the a query string
would i change the bean name to /studies?{query}
2. How do i specify a
com.noelios.restlet.component.ComponentHelper
checkVirtualHost
SEVERE: Unable to start the application null. Client connector for
protocol CLAP is missing.
Apr 2, 2009 7:29:37 AM com.noelios.restlet.ChainHelper handle
On 01/04/2009, at 9:36 PM, Jim Alateras wrote:
I am using 1.1.3 and am having an issue using the CLAP connector
I have also tried adding the following context parameter to my web.xml
but am still getting '404'
context-param
param-nameorg.restlet.clients/param-name
param-valueHTTP HTTPS CLAP FILE/param-value
/context-param
On 02/04/2009, at 7:32 AM, Jim Alateras wrote:
Abit more
cheers
/jima
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1328959
Hi,
I need to use the entity of a response to generate a digital signature in a
filter before it is passed to the Router. AFAIK you can only call
response.getEntity().getText() once. Is there way to do this from the
Request object.
cheers
/jima
Just wondering whether the restlet framework supports/intends to
support comet style interaction with a server
cheers
/jima
/2008, at 12:37 PM, Rhett Sutphin wrote:
Hi Jim,
On May 26, 2008, at 7:09 PM, Jim Alateras wrote:
Any reason why, i nthe restlet framework, a PUT expects to have an
entity. When i issue a PUT with an empty entity i get a 400 response.
Last time you asked this question ( http
I've noticed that if i do a PUT to a resource with an empty entity I
get a BAD_REQUEST status code. Is it part of the HTTP spec that the
PUT must contain a non-null entity.
cheers
/jima
I also sent this message about accept header yesterday and itt seems
that setting the ACCEPT header through the retlet HTTPRequest object
doesn't seem to work
cheers
/jima
Begin forwarded message:
From: Jim Alateras [EMAIL PROTECTED]
Date: 17 April 2008 10:20:18 PM
To: discuss
Thierry Boileau wrote:
Hello Jim,
I've made some tests that I suspect to be too simple.
I've just added a public updateRoute method on my application which
I call between 2 loops of client calls, but I am not able to reproduce
your case.
will put something together. What method on Router
Thanks Jerome.
BTW, the stop() method wasn't doing any clean-up. I just fixed this in SVN
trunk.
cool will check out and build
In your case, you want to replace an initial application by another one
later on. I suggest that you attach to new application on the component's
virtual host, taking
Hi,
What is the correct way to start, stop and destroy applications. I am
doing the following at the moment
class Application1 extends Application {...}
class Application2 extends Application {...}
// start a minimal version of the applicaton while i do some stuff
// i.e. migration etc
Once i do Application.setRoot(...) do i need to do anything else for it
to take effect.
cheers
/jima
handles a reference with a relative
part equals to /exchange.
best regards,
Thierry Boileau
On Wed, Feb 27, 2008 at 8:49 PM, Jim Alateras [EMAIL PROTECTED] wrote:
Thierry,
Just some additional info. I am getting this error in a test case
scenario so I may not be priming the 'request' with all
If i want to add context information to a request as it is processed by
the different filters and guards should i use
request.getAttributes().put(key, value)
cheers
/jima
Jerome Louvel wrote:
Hi Matthew,
None of this is code we are writing, its all internal to
Restlet, all we are doing is calling
EncodeRepresentation.getText() and that method call causes
all the other stuff to happen. I can't see how our code has
any impact on the closing of the stream and
Tim Peierls wrote:
On 10/17/07, *Jerome Louvel* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
In terms of end to end functionality, our use of GZip encoding
works fine and the encoded representations make it from client
to server OK, so the concern is simply that
Hi,
I am getting a whole lot of blocked threads when using the
EncodeRepresentation class (shown below). Has anyone else experience
such a problem
Daemon Thread [Thread-108] (Suspended)
Unsafe.park(boolean, long) line: not available [native method]
LockSupport.park()
);
}
}
On 16/10/2007, at 11:05 PM, Tim Peierls wrote:
In this case, as with a subsequent message from Jim Alateras, the
problem appears to be that the representation size exceeds the
capacity of the underlying pipe (1024), and no one is reading from the
input stream side of the pipe.
But who made
Hi,
When I attempt to get the encoded size of a representation (i.e. from
DecodeRepresentation) I get a value of -1. How can I retrieve the size
of the representation, before it is decoded?
cheers
/jima
?
cheers
/jima
Jim Alateras wrote:
I am trying use gzip for all my representations and use the tunnel
filter, on the application, to automatically decode the body before
passing it to the router.
This how i encode the rep
new EncodeRepresentation(Encoding.GZIP, new
StringRepresentation
), you have to turn off the
decoderService on your application.
* Note that in the future, we'd like to add a encoderService:
http://restlet.tigris.org/issues/show_bug.cgi?id=208
Best regards,
Jerome
-Message d'origine-
De : Jim Alateras [mailto:[EMAIL PROTECTED]
Envoyé : mardi 9
I am trying use gzip for all my representations and use the tunnel
filter, on the application, to automatically decode the body before
passing it to the router.
This how i encode the rep
new EncodeRepresentation(Encoding.GZIP, new
StringRepresentation(getXStream().toXML(records),
response.setStatus(Status.SUCCESS_CREATED);
response.setLocationRef(yourCreatedURIString);
Is the setLocationRef method part of 1.0.5 release?
cheers
/jima
I was trying to find how to manipulate http headers (standard or
extension) from a Resource class. I can't seem to get access to the
headers through the Response class.
My initial use case is setting the Location header on completion of a post
Any ideas?
cheers
/jima
Alex/Jerome,
I am also interested in incorporated APP client and server capabilities
in our application. I have a couple of questions more so for Alex than
Jerome.
1. From the little I've read on atomojo there seems to be a database
dependency on the component. Is this still the case?
2.
Stian Soiland wrote:
On 6 Jun 2007, at 10:46, Jim Alateras wrote:
I am not so sure of this.. in particular using /2003-03-03/2005-05-50
as it implies an hierarchy where there is something at /2003-03-03.
If you go for this approach, use , to separate the two dates as
they are tied together
I am interested in hearing how people use the query string to
constrain a GET.
For instance if i want to get a list of cars registered between
03/2000 and 09/2006
/cars?registeredDate$from=03-2000registeredDate$to=09-2006
/cars?registeredDate!from=03-2000registeredDate!to=09-2006
The offending code has been fixed in HttpClientHelper like this:
try {
HttpClientCall httpCall = getConverter().toSpecific(this,
request);
getConverter().commit(httpCall, request, response);
} catch (Exception e) {
getLogger().log(Level.INFO,
I've done the same but test through the the Router since i'm also
interested that the request gets routed to the appropriate resource.
Some of my resources talk to a DAO so i am thinking of using something
like EasyMock [1] to isolate my resource testing.
cheers
/jima
[1]
.
I want to see these in my own code so that I can do what's appropriate
with the exception.
Adam
Jim Alateras wrote:
Adam,
I came across the same problem and I believe the problem is more
around not setting the response status code on failure.
cheers
/jima
Adam Taft wrote:
Here's a test
Thierry,
It works nicely. I create a couple of routes for each resource. Does it
make sense to move some of this back to the core.
cheers
/jima
Jim Alateras wrote:
cool, i'll give it a go today.
cheers
/jima
Thierry Boileau wrote:
Hi Jim,
as a workaround, you can define 2 routes like
/show_bug.cgi?id=314
Best regards,
Jerome
-Message d'origine-
De : Jim Alateras [mailto:[EMAIL PROTECTED] Envoyé : lundi 28 mai
2007 15:15
À : discuss@restlet.tigris.org
Objet : URI matching question
I have a restlet application with a single resource mapped to
/version. I deploy
do what's appropriate
with the exception.
Adam
Jim Alateras wrote:
Adam,
I came across the same problem and I believe the problem is more
around not setting the response status code on failure.
cheers
/jima
Adam Taft wrote:
Here's a test case to look at...
public class TestClass
Hi,
I seem to have stumbled across a problem with Client. I am using the
following code to talk to my restlet application
Client client = new Client(Protocol.HTTP);
Response response = client.post(url, objrep);
logger.info(The response from the post is +
This is much cleaner than what I have done, which was simply to create
an instance of an Application class in the
FrameworkServletinitFrameworkServlet method and then to set the
application as the target of the converter in the doService method.
init
=
application = new MyApplication(
Adam,
I came across the same problem and I believe the problem is more around
not setting the response status code on failure.
cheers
/jima
Adam Taft wrote:
Here's a test case to look at...
public class TestClass {
public static void main(String[] args) {
try {
Irfan/Thierry,
I was just wondering whether you could explain why start() is always
called in the RestApplication.handle method, which is shown below.
try {
start();
} catch (Exception ee) {
ee.printStackTrace();
}
super.handle(request, response);
cheers
/jima
Jim Alateras wrote
Adam Taft wrote:
The biggest concern for me is that IOException is being eaten in the
client. So, for example, an illegal url or a host not found error is
being trapped, logged and then no other error is being thrown. Yuck.
There's no appropriate status code which can model a host not
At the moment I have a log of this type of code in my Resource class
if (entity.getMediaType().equals(MediaType.APPLICATION_GNU_ZIP)) {
} else if
(entity.getMediaType().equals(MediaType.APPLICATION_JAVA_OBJECT)) {
} else {
}
Just wondering whether there is any utility or class that will
Can I use one instance of org.restlet.Client across multiple (possible
concurrent) requests. (i.e. is it thread-safe).
cheers
/jima
Jerome Louvel wrote:
Hi Jim,
Client connectors are intended to be shared by multiple applications and
multiple concurrent requests. As a consequence, they are thread safe.
Jerome, I am getting deadlocks when sharing the Client across multiple
requests. Haven't had time to resolve but it seems
Are there any links to using the Amazon Web Services authentication
schemes.
cheers
/jima
I am able to use the client side code to post a gzip representation of a
resource. Fundamentally, it is an ObjectRepresentation wrapped in an
EncodeRepresentation. This all seems to work fine and gets routed to the
correct resource on my server. I am currently trying to find how to handle
the
great work guys..
cheers
/jima
Jerome Louvel wrote:
Hi all,
After 16 months of intense prototyping, refactoring and bug fixing, we
finally decided to release the final 1.0 version this morning!!
I am very grateful for all the feed-back, support and contributions made by
this community. The
I was looking for some guidance on how i would package a gzipped java
serialized object. Do I need to extend ObjectRepresentation class and
use content type application/gzip or is there some way I can use the
ObjectRepresentation class with some form of encoding.
cheers
/jima
Jerome Louvel wrote:
Hi Jim,
You can have a look at the
com.noelios.restlet.application.EncodeRepresentation class.
So i can use it to wrap an ObjectRepresentation. Will the Encoding i
pass across to it override the HTTP content-type header (i.e. if the
encoding is set to gzip then the
current.zip? I have updated it after my initial reply to you to fix a couple
of issues.
In any case, I have attached my test files.
Best regards,
Jerome
-Message d'origine-
De : Jim Alateras [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 28 mars 2007 05:52
À : discuss@restlet.tigris.org
Hi,
I have some questions on the relationship between Resources and
Representations.
1. Is there a mechanism to register Representations for a Resource
2. Is there a mechanism where a Representation is resolved for a
specific Resource, given a mediaType or do we need to code for this in
, you can either get the
latest from SVN or get this current.zip:
http://www.restlet.org/downloads/1.0/current.zip
Best regards,
Jerome
-Message d'origine-
De : Jim Alateras [mailto:[EMAIL PROTECTED]
Envoyé : lundi 26 mars 2007 13:24
À : discuss@restlet.tigris.org
Cc : [EMAIL PROTECTED
,
Jerome
-Message d'origine-
De : Jim Alateras [mailto:[EMAIL PROTECTED]
Envoyé : lundi 26 mars 2007 13:24
À : discuss@restlet.tigris.org
Cc : [EMAIL PROTECTED]
Objet : Re: spring and restlet
Jerome,
Thxs, this is great. I have a few more comments\questions inline
Jerome Louvel wrote:
3
77 matches
Mail list logo