Support for Expect and 100 Continue, or ways of faking it

2010-01-02 Thread webpost
Hi,

I'm writing an application to support some existing clients which use the 
Expect and 100 Continue HTTP mechanics to ensure a data PUT will be allowed 
before sending the data.

Looking around the site and archives I see this isn't currently supported in 
Restlet 2.0 and issue 413 has no identified milestone.

So first, am I missing something and is this supported somewhere in the current 
development branch?  I'm pretty tolerant to use bleeding edge code.

If though as I suspect this functionality isn't supported is there currently 
any way to bluff this at all via a custom connector or filter?  I really didn't 
see any mechanism to send back a response to the client at the point its 
pausing after sending the Expect header.

Any thoughts much welcomed.

Thanks,
Garry

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2434272


RE: How to REST in SpringFramework

2010-01-02 Thread Jenkins, Dustin
The bean name or id needs to be the path to the Resource.

bean id=/pollSystemResource
class=com.smartcrop.webapp.service.PollSystemResource autowire=byName/
/beans

Rather than:

bean id=pollSystemResource
class=com.smartcrop.webapp.service.PollSystemResource autowire=byName/
/beans

Then your Router need only be:

bean id=root class=org.restlet.ext.spring.SpringRouter /

Dustin


-Original Message-
From: gozfidan [mailto:gur...@resolution.com]
Sent: Thu 12/31/2009 11:59 AM
To: discuss@restlet.tigris.org
Subject: How to REST in SpringFramework
 
Hi,
I am new to REST and trying to integrate with my Spring application. I have
done
some searching bu got stuck. I have changed the web.xml and add
RestletServlet-servlet.xml
but not sure how to implement Resource?


web.xml
servlet
servlet-nameRestletServlet/servlet-name
   
servlet-classorg.restlet.ext.spring.RestletFrameworkServlet/servlet-class
/servlet


RestletServlet-servlet.xml

?xml version=1.0 encoding=UTF-8?
beans xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd;

bean id=root class=org.restlet.ext.spring.SpringRouter
property name=attachments
map
entry key=/poll
bean class=org.restlet.ext.spring.SpringFinder
lookup-method name=createResource
bean=pollSystemResource /
/bean
/entry
/map
/property
/bean

bean id=pollSystemResource
class=com.smartcrop.webapp.service.PollSystemResource autowire=byName/
/beans


and I have this PollSystemResource if I extend it with SpringResource
I get an error for  [cannot find symbol constructor SpringResource()]

If my steps are correct, how do I implement my Resources
thanks.
-- 
View this message in context: 
http://n2.nabble.com/How-to-REST-in-SpringFramework-tp4237720p4237720.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2434026

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2434317attachment: winmail.dat