Newbie needs help with @Post

2012-04-10 Thread Geoffrey Speedy
Hi All, I am a Java & Restlet newbie, and I want to create a restlet that does a roundtrip to a database, presents the results in HTML Text boxes in a HTML Table and stores any changes back to the database. I am on Exclipse and Restlet 2.1 My code below extends the ServerResource example, but

Restlet Framework 2.1 RC4 and 2.0.12 released

2012-04-10 Thread Jerome Louvel
Hi all, We have released another 2.1 release candidate and 2.0 version including bug fixes and few API changes. All changes are logged here: http://www.restlet.org/documentation/2.1/jse/changes http://www.restlet.org/documentation/2.0/jse/changes Note that a security fix in FreeMarke

Re: Internal HTTP request

2012-04-10 Thread Hendrik Schwartke
Thanks for your reply. Unfortunately your example throws an exception in my application. My (simplified) application looks like this: package test; import java.util.HashSet; import java.util.Set; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.c

Re: How send object from client to server

2012-04-10 Thread Sultan Kosaev
Thank you very much. Now I began to understand. If I have questions, I'll write more -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/How-send-object-from-client-to-server-tp7451974p7453312.html Sent from the Restlet Discuss mailing list archive at Nabble.com. --

Re: How send object from client to server

2012-04-10 Thread Tim Peierls
I'm probably misunderstanding your question, but here goes: You can't really "send" objects in Restlet, you can only send representations. The client resource proxy machinery makes it look as though you are sending an object by calling a method that looks like the target method on the server side,

Content Range with Output Representation

2012-04-10 Thread Bjorn Roche
I posted this message yesterday, but it never appeared on the discussion list online, so I am reposting. Apologies if you are getting it twice: I am trying to output large files with support for the Content-Range header. It seems like I need to use org.restlet.representation.OutputRepr

Re: How send object from client to server

2012-04-10 Thread Sultan Kosaev
Alright. But for example, when you want to send an object of any class of the server, how do you do it? Through Serializable interface? Or how? For example, you can tell me the link, the book and i had read about it. I just don't know where i can still read about restlet, except book "RESTlet in t

Re: How send object from client to server

2012-04-10 Thread Tim Peierls
On Tue, Apr 10, 2012 at 9:37 AM, Sultan Kosaev wrote: > I don't understand. I modified your example on this page > > http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-restlet/303-restlet.html > , but I can not send an object of Authentication class from client to > server > Not *my* exa

Re: How send object from client to server

2012-04-10 Thread Sultan Kosaev
Yes. Server-side resource is implement the AuthorizationResource interface. /**On the Server side**/ Intranet Application class: package kz.univer.intranet.server; import org.restlet.Application; import org.restlet.Restlet; import org.restlet.routing.Route

Re: How send object from client to server

2012-04-10 Thread Tim Peierls
Does your server-side resource implement the AuthorizationResource interface? There are all sorts of things that could be going wrong besides this. I suggest that you start with the example in the Restlet wiki and adapt it to your needs. --tim On Tue, Apr 10, 2012 at 12:59 AM, Sultan Kosaev wro

RE: Unsupported Media Type (415)

2012-04-10 Thread Dalia Sobhy
I really have the same problem sooo any help plz -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Unsupported-Media-Type-415-tp5963113p7451060.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -

RE: Unsupported Media Type (415)

2012-04-10 Thread Dalia Sobhy
I really have the same problem sooo any help plz -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Unsupported-Media-Type-415-tp5963113p7451061.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -

How send object from client to server

2012-04-10 Thread Sultan Kosaev
Hello. I don't understand how server can take an object sent by the client. For example. I have such an interface on the client side: /* public interface AuthorizationResource { @Post public void login(Authentication auth); } **/ then i send to server the object of Authen