Hi,

I am currently in the need of serving a single static file from a Resource.
Lets say at / I want to return the file index.html located in WEB-INF that
basically describes 
my Service. 
I found the examples on the restlet site but they attach a Directory to the
/.
If I specify in the Directory constructor "index.html" then it tries to acct
as if it was a folder (obviously).
As far as I have searched there is no File object in Restlet.
How can I return the file instead of pasting the content of it inside a
Resource and return it on GET request? Because that is harder to maintain
then editing a html file.

mastricker
-- 
View this message in context: 
http://n2.nabble.com/Resource-returning-single-static-file-tp2827289p2827289.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to