Article on integrating Maven + Spring + Restlet

2010-11-10 Thread Jim Alateras
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 -- http://restlet.tigris.o

Re: Forwarding all requests

2010-11-03 Thread Jim Alateras
//www.restlet.o​rg > Noelios Technologies ~ http://www.noelios.com > > > > > -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 >

Re: Forwarding all requests

2010-11-02 Thread Jim Alateras
t; -- > Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg > Noelios Technologies ~ http://www.noelios.com > > > > > -Message d'origine- > De : Jim Alateras [mailto:j...@comware.com.au] > Envoyé : mardi 2 novembre 2010 20:59 > À : discus

Forwarding all requests

2010-11-02 Thread Jim Alateras
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 -- http://restlet.tigris.org/

Re: Getting 2.0.1 jars from a maven repository

2010-10-20 Thread Jim Alateras
it's okay i figured it out :-) cheers On 20/10/2010, at 6:46 PM, Jim Alateras wrote: > Apologies if this has already been asked but is there a maven repository that > is hosting v2.0.1 restlet libraries? > > cheers > > > ---

Getting 2.0.1 jars from a maven repository

2010-10-20 Thread Jim Alateras
Apologies if this has already been asked but is there a maven repository that is hosting v2.0.1 restlet libraries? cheers -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2673736

Re: Trouble with ServerServlet

2010-04-06 Thread Jim Alateras
Thanks Thierry, thought that may be the case. cheers 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 branch

Fwd: Trouble with ServerServlet

2010-04-06 Thread Jim Alateras
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 Begin forwarded message: > From: Jerome Lou

Re: Building GAE version of restlet

2009-12-17 Thread Jim Alateras
> 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 --

Re: Building GAE version of restlet

2009-12-16 Thread Jim Alateras
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 org.springframework.beans.GenericTypeAwarePropertyDescripto

Building GAE version of restlet

2009-12-13 Thread Jim Alateras
HI, Are there any specific instructions for building a GAE-enabled version of the restlet framework from 'trunk' cheers -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2430133

Re: Asynchronous Request Processing

2009-12-13 Thread Jim Alateras
Jerome, I'm also interested in this feature and look forward to having a play with it next week. cheers 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 HTT

Re: GAE + Restlet + Spring

2009-12-12 Thread Jim Alateras
> 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 -

GAE + Restlet + Spring

2009-12-10 Thread Jim Alateras
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 m

SEVERE: don't pass the component context to child Restlets anymore

2009-10-29 Thread Jim Alateras
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 instead.class

Deploying local staged repository to remote maven repository

2009-10-29 Thread Jim Alateras
Gents, What do you guys use to copy the stages files generated from ant stage- maven-2 to a remote maven2 repository. cheers -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2412585

Re: UrlConneciton based HTTP client tiimeouts

2009-10-29 Thread Jim Alateras
> 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? -- http://r

Re: ant stage-maven-2 is not working...

2009-10-29 Thread Jim Alateras
my bad should've looked in build.properties # Indicates if the Maven distribution should be regenerated. maven: true cheers On 29/10/2009, at 10:01 PM, Jim Alateras wrote: > do i need to enable something in build.properties to get this going? &g

ant stage-maven-2 is not working...

2009-10-29 Thread Jim Alateras
do i need to enable something in build.properties to get this going? cheers -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2412551

Re: http connection timeout and version 1.1.6

2009-10-29 Thread Jim Alateras
rome Louvel > -- > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noelios 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 >

Re: Building 1.1.6 with maven and ant

2009-10-29 Thread Jim Alateras
e code. 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 : I am having issues building the 1.1.6 version of the distribution using the instructions on the developer

Re: UrlConneciton based HTTP client tiimeouts

2009-10-28 Thread Jim Alateras
r ~ http://www.restlet.org > Noelios 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 base

Re: http connection timeout and version 1.1.6

2009-10-28 Thread Jim Alateras
you could set the > IdleConnectionTimeoutThread. Then you would need to manually register > 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 develope

Building 1.1.6 with maven and ant

2009-10-19 Thread Jim Alateras
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 verify-ant:

http connection timeout and version 1.1.6

2009-10-19 Thread Jim Alateras
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

Re: UrlConneciton based HTTP client tiimeouts

2009-10-15 Thread Jim Alateras
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. "O

Building the restlet modules in eclipse

2009-07-22 Thread Jim Alateras
Hey all, I've got a couple of questions 1. I am following the instructions on building restlet in eclipse (http://wiki.restlet.org/developers/179-restlet/216-restlet.html ) and am getting lots of these errors Access restriction: The constructor ByteArrayDataSource(InputStream, String) is no

Re: SpringBeanRouter

2009-04-13 Thread Jim Alateras
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

SpringBeanRouter

2009-04-13 Thread Jim Alateras
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

Re: Serving static content with the CLAP connector

2009-04-13 Thread Jim Alateras
logies ~ Co-founder ~ http://www.noelios.com > > > -Message 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 t

Re: Serving static content with the CLAP connector

2009-04-01 Thread Jim Alateras
I have also tried adding the following context parameter to my web.xml but am still getting '404' org.restlet.clients HTTP HTTPS CLAP FILE On 02/04/2009, at 7:32 AM, Jim Alateras wrote: > Abit more information. When I start the restlet application in my > Jetty

Re: Serving static content with the CLAP connector

2009-04-01 Thread Jim Alateras
nent.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

Serving static content with the CLAP connector

2009-04-01 Thread Jim Alateras
I am using 1.1.3 and am having an issue using the CLAP connector to serve static content in the classpath. Here is what I have web.xml === org.restlet.application au.com.observant.ringocore.application.RingoCoreApplication log4jConfigLocation /WEB-INF/classes/l

Is org.restlet.Client thread safe?

2009-03-15 Thread Jim Alateras
cheers -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1328959

Using the entity in a Filter

2008-08-27 Thread Jim Alateras
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

restlet and comert

2008-06-04 Thread Jim Alateras
Just wondering whether the restlet framework supports/intends to support comet style interaction with a server cheers

Re: PUT and entity

2008-05-28 Thread Jim Alateras
On 27/05/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://res

PUT requires an entity

2008-05-08 Thread Jim Alateras
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

Fwd: ACCEPT header in the restlet Request object.

2008-04-17 Thread Jim Alateras
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 Begin forwarded message: From: Jim Alateras <[EMAIL PROTECTED]> Date: 17 April 2008 10:20:18 PM

Re: changing the router's route list

2008-03-19 Thread Jim Alateras
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 act

changing the router's route list

2008-03-19 Thread Jim Alateras
I seem to be having a issue changing the routes on a Router after the Application.createRoot method is called. I am using an Application in the context of a Servlet. I set up a minimum number of routes during startup and then at some later stage I replace those routes with new ones doing somet

Re: advice on creating and destroying applications

2008-03-12 Thread Jim Alateras
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

calling setRoot

2008-03-11 Thread Jim Alateras
Once i do Application.setRoot(...) do i need to do anything else for it to take effect. cheers

advice on creating and destroying applications

2008-03-11 Thread Jim Alateras
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 Appli

Re: setting the location header

2008-02-28 Thread Jim Alateras
ce); By doing so, the application still 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

Re: setting the location header

2008-02-27 Thread Jim Alateras
ot;? best regards, Thierry Boileau On Wed, Feb 27, 2008 at 10:42 AM, Jim Alateras <[EMAIL PROTECTED]> wrote: Hi, I am trying to set the location header after a post to communicate the URL of the created resource. I basically use the following piece of code to set the location pas

setting the location header

2008-02-27 Thread Jim Alateras
Hi, I am trying to set the location header after a post to communicate the URL of the created resource. I basically use the following piece of code to set the location passing a relative uri getResponse().setLocationRef("sessionId"); but i get the following error java.lang.IllegalArgumentEx

Re: Restlet 1.0.6 released

2007-11-12 Thread Jim Alateras
Thanks guys, that's great news. cheers Jerome Louvel wrote: Hi all, The sixth maintenance release of Restlet 1.0 is available. It fixes several bugs found in version 1.0.5 and provides a few documentation clarifications. Thanks to Thierry for the hard work in pushing this release and for

Adding context info to a request

2007-11-01 Thread Jim Alateras
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

HttpClientHelper needs to be fixed

2007-10-17 Thread Jim Alateras
The checked-in version of HttpClietHelper on the trunk needs to be fixed @Override public void handle(Request request, Response response) { try { HttpClientCall httpCall = getConverter().toSpecific(this, request); getConverter().commit(httpCall, request,

Re: EncodeRepresentation.write leaving blocked threads around?

2007-10-17 Thread Jim Alateras
Tim Peierls wrote: On 10/17/07, *Jerome Louvel* <[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

Re: EncodeRepresentation.write leaving blocked threads around?

2007-10-17 Thread Jim Alateras
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 sh

Re: EncodeRepresentation.write leaving blocked threads around?

2007-10-16 Thread Jim Alateras
} } 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.

threads blocking on EncodeRepresentation

2007-10-16 Thread Jim Alateras
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() li

DecodeRepresentation.getSize returns -1

2007-10-09 Thread Jim Alateras
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

Re: problems using gzip encoding

2007-10-09 Thread Jim Alateras
entation (GZIP), 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 Al

Re: problems using gzip encoding

2007-10-09 Thread Jim Alateras
().setEnabled(false); before starting the application. Best, Jerome 2007/10/9, Jim Alateras <[EMAIL PROTECTED]>: Okay this is my problem. I was assuming that i would get the wrapped representation once it hits my resource by i get the DecodeRepresentation instance instead. Can I config

Re: problems using gzip encoding

2007-10-09 Thread Jim Alateras
? cheers 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

problems using gzip encoding

2007-10-08 Thread Jim Alateras
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), Med

Re: setting the location header

2007-09-06 Thread Jim Alateras
response.setStatus(Status.SUCCESS_CREATED); response.setLocationRef(yourCreatedURIString); Is the setLocationRef method part of 1.0.5 release? cheers

Re: setting the location header

2007-09-06 Thread Jim Alateras
Rob, Thanks for all the information. for the use case you describe. From the Javadoc (which is copied from RFC 2616, HTTP/1.1): "Redirects the client to a different URI that SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a P

setting the location header

2007-09-05 Thread Jim Alateras
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

Resources and Representations

2007-09-04 Thread Jim Alateras
A couple of questions regarding Resource and Representation. 1. I am thinking of creating an AtomFeedRepresentation by extending StringRepresentation. Is this the best approach? 2. When Resource.post(Representation) is called on my resource instance how does the restlet framework work out th

support for apache abdera

2007-07-31 Thread Jim Alateras
Just wondering whether anyone has integrated aspects of Apache Abdera using the restlet framework. cheers

Re: Atom Support

2007-07-31 Thread Jim Alateras
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.

Re: GET method and Query String

2007-06-06 Thread Jim Alateras
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 the

Re: GET method and Query String

2007-06-06 Thread Jim Alateras
Stian Soiland wrote: On 5 Jun 2007, at 06:51, Jim Alateras wrote: I guess its personal preference but I feel it is more readable, expressive and consistent using the query string since in most cases the result set will be constrained by a date range and some other resource property like

Re: GET method and Query String

2007-06-04 Thread Jim Alateras
Adam, Thanks for the information I use basically the first form. What's with the $ and ! in there?? I just name my variables what they are, generally using common java naming conventions, or hyphen/underscore if need be. I'm using the $ or ! as qualifiers on a resource property for instance

GET method and Query String

2007-06-04 Thread Jim Alateras
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-2000®isteredDate$to=09-2006 /cars?registeredDate!from=03-2000®isteredDate!to=09-2006 /cars?registeredDat

Re: Problem with org.restlet.Client

2007-06-02 Thread Jim Alateras
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,

warning instantiating one of my resources

2007-05-31 Thread Jim Alateras
Can someone pls provide some information on this exception. I am running outside the Neolios Restlet Engine. Everything works fine but wondering whether I actually need to implement this constructor and the purpose of it. 16:30:32,578 WARN [/procmgr] procmgr: [Noelios Restlet Engine] - The S

Re: URI matching question

2007-05-31 Thread Jim Alateras
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 Jim Alateras wrote: cool, i'll give it a go today. cheers Thierry Boileau wrote: Hi Jim, as a workaround, you can define 2 routes like

Re: Please Don't Eat Exceptions

2007-05-31 Thread Jim Alateras
s poorly formed (like, without a leading protocol scheme). Anyway, my point is, there are many reason which a request could fail. 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

Re: Can I call my Restlet classes without a Web container?

2007-05-31 Thread Jim Alateras
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 [1] http://www.easymock.org/

Re: Please Don't Eat Exceptions

2007-05-30 Thread Jim Alateras
ail. 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 Adam Taft wrote: He

Re: URI matching question

2007-05-30 Thread Jim Alateras
y should be taken into account during the URI template matching: http://restlet.tigris.org/issues/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 match

Re: Problem with org.restlet.Client

2007-05-28 Thread Jim Alateras
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 foun

Re: Problem with org.restlet.Client

2007-05-28 Thread Jim Alateras
Anyway, if you want, you could grab the patch files from the following bug. Alternatively, if you don't want to patch the source code, I'd be happy to send you the jars I compiled with these changes. http://restlet.tigris.org/issues/show_bug.cgi?id=311 Once you have this, the client will thro

Re: Content type via URL parameters?

2007-05-28 Thread Jim Alateras
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 Jim Alateras wrote: This is

Re: Please Don't Eat Exceptions

2007-05-28 Thread Jim Alateras
Adam, I came across the same problem and I believe the problem is more around not setting the response status code on failure. cheers Adam Taft wrote: Here's a test case to look at... public class TestClass { public static void main(String[] args) { try {

Re: Content type via URL parameters?

2007-05-28 Thread Jim Alateras
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(

URI matching question

2007-05-28 Thread Jim Alateras
I have a restlet application with a single resource mapped to /version. I deploy the application in jetty and can access the resource correctly by entering the uri localhost:6080/appcontext/version but I also end up with the same resource when i enter localhost:6080/appcontext/versionbah. I h

Problem with org.restlet.Client

2007-05-28 Thread Jim Alateras
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 " + response.getStatus().getNam

Re: using org.restlet.Client

2007-05-17 Thread Jim Alateras
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

using org.restlet.Client

2007-05-17 Thread Jim Alateras
Can I use one instance of org.restlet.Client across multiple (possible concurrent) requests. (i.e. is it thread-safe). cheers

Resource to Representation routing

2007-05-17 Thread Jim Alateras
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 autom

using the AWS authentication schemes

2007-05-14 Thread Jim Alateras
Are there any links to using the Amazon Web Services authentication schemes. cheers

Working with encoded object representations

2007-04-17 Thread Jim Alateras
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 repr

Re: Restlet 1.0.0 released!

2007-04-16 Thread Jim Alateras
great work guys.. cheers 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 Restlet

Re: a gzip representation

2007-04-12 Thread Jim Alateras
Thierry, Thanks for the information. It helps enormously cheers Thierry Boileau wrote: Hi Jim, I want to precise that the EncodeRepresentation automatically sets the "content-encoding" header and keep intact the "content-type" of the wrapped representation. It allows Firefox to decodes on t

Re: a gzip representation

2007-04-12 Thread Jim Alateras
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 cont

a gzip representation

2007-04-12 Thread Jim Alateras
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

Re: New FAQ on Spring integration

2007-03-28 Thread Jim Alateras
Note that the ServletConverter class is only available in the SVN trunk or in the latest snapshot: http://www.restlet.org/downloads/1.0/current.zip it seems that the source in current.zip is slightly out of sync with the jars. Resource.java is a case in point. cheers

Re: spring and restlet

2007-03-27 Thread Jim Alateras
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

Re: spring and restlet

2007-03-27 Thread Jim Alateras
/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] Objet : Re: spring and restlet Jerome, Thxs, this is great. I have a few more comments\qu

Re: spring and restlet

2007-03-27 Thread Jim Alateras
about this. For now, 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.ti

Resources and Representation

2007-03-27 Thread Jim Alateras
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 the

Re: spring and restlet

2007-03-26 Thread Jim Alateras
Jerome, Thxs, this is great. I have a few more comments\questions inline Jerome Louvel wrote: 3) Embedded mode B: lighter version where Spring and the Servlet container are not masked by the concept of Restlet Application. This requires the creating of a special Servlet (maybe a Spring's HttpB