Questions tagged [restlet-2.0]

Restlet is a lightweight, comprehensive, open source REST framework for the Java platform. Restlet is suitable for both server and client Web applications.

Restlet is a lightweight, comprehensive, open source REST framework for the Java platform. Restlet is suitable for both server and client Web applications. It supports major Internet transport, data format, and service description standards like HTTP and HTTPS, SMTP, XML, JSON, Atom, and WADL. A GWT port of the client-side library is also available.

227 questions
2
votes
1 answer

Restlet Client 2.2 - Non-blocking asynchronous request with a callback

I'm just playing and testing a bit with the Restlet Client Api 2.2, but I don't get a non-blocking asynchronous request with a callback to work. I already have googled extensively but really not found an answer to a (working) non-blocking…
mueldajo
  • 21
  • 3
2
votes
1 answer

LDAP Authentication for Camel + restlet app

I have a Camel application which using camel-restlet for web service calls. now I want to add ldap authentication for restlet calls. tried couple of options with camel-restlet realm, LdapVerifier using ChallengeAuthenticator. can not make it…
Long Zhang
  • 51
  • 1
  • 5
2
votes
5 answers

org.hibernate.hql.ast.QuerySyntaxException: table not mapped

I know many people have asked this question but I just started Java so I couldn't figure out still. So here is my problem: I am writing RESTful webservices using Javarestlet. Here is the snippet of my DAO file. try { …
burning
  • 2,426
  • 6
  • 25
  • 38
2
votes
1 answer

Sending restlet response in zip format

I am trying to send my restlet response in zip format if it i slarger then a specific size. This is the link i got that help enabling the encoding service. But i still dont get the response in zip format. How can I enable GZIP compression of the…
Pankaj
  • 362
  • 3
  • 12
2
votes
1 answer

How to change 'Server' Header from Restlet 2.1

I'am using Restlet 2.1 with Spring 3 and I need to remove the header named Server with value Restlet-Framework/2.1.x. I know this information come from ServerInfo.agent. A solution I found is to change the value in the Response object, but it could…
2
votes
2 answers

java.lang.NoClassDefFoundError: org/restlet/engine/http/ServerCall

I am trying to write a web service in Restlet and i have included jars listed below; 1. json-simple-1.1 2. log4j-1.2.16 3. org.json-20120521 4. org.restlet.ext.fileupload 5. org.restlet.ext.json 6.…
user3336302
  • 21
  • 1
  • 3
2
votes
2 answers

Restelet routing: some resources require authentication, some don't. How to do it?

I've been workin on a RESTlet 2.1 project. I've figured out how to set up authentication for my Resources. Fact is.. not all of them need authentication! I am quite puzzled about how should I do it right. In the following code you can see the…
T. Rossi
  • 465
  • 1
  • 6
  • 23
2
votes
2 answers

Calling Restlet client resource from server resource causes HTTP 404 error

I have a Restlet server application that calls client resource for the purpose of hitting a google endpoint. When I get to the point in my code: ClientResource storeRoot = new ClientResource("http://googleendpoint"); String jsonString =…
Atma
  • 29,141
  • 56
  • 198
  • 299
2
votes
1 answer

Restlet 2.1 application has null context

I am running a JSE application with Restlet 2.1. I am attempting to use the application context, and am finding that it is always null in my application. Because it is null, I cannot seem to access anything -- including any attributes that I pass…
Factor Three
  • 2,094
  • 5
  • 35
  • 51
2
votes
1 answer

Generating REST API Documentation from Restlet annotations

The RESTful Web service APIs are implemented using Restlet. I need to generate the API documentation for these. Rather than starting with a separate document, I am evaluating if this can be generated from the source code annotations itself. I…
Srini
  • 56
  • 5
2
votes
1 answer

How do you implement Restlet Basic HTTP Authentication on a router?

I read the Restlet documentation on how to implement Basic HTTP Authentication but mine is not working when I make a request to a resource. Any reason why mine is not working? Application Context:
ColinMc
  • 1,238
  • 3
  • 16
  • 33
2
votes
1 answer

RESTlet 2.1 can't get client certificate

I recently updated restlet to version 2.1 and I'm no longer able to get the client certificate. I'm using the new way to get client certificate List r = getRequest().getClientInfo().getCertificates(); I'm using CURL to send my…
David
  • 21
  • 1
2
votes
3 answers

Redirect All URL to return index.html in App Engine Java servlet

The web application uses Java Restlet in the backend running on Google App Engine. I want to return index.html for all url (/*). Here, I don't want to use response.redirect, I mean, client should not aware of redirection. I used following code in…
Fizer Khan
  • 88,237
  • 28
  • 143
  • 153
2
votes
2 answers

Can I turn logging off in Restlet framework?

I have some code that is using the Restlet framework. It is writing an ERROR into my log4j log file: 2012-05-30 12:16:42,169 3278917 ERROR [STDERR] (Thread-97:) 30-May-2012 12:16:42 org.restlet.engine.http.connector.HttpClientHelper start INFO:…
user265330
  • 2,533
  • 6
  • 31
  • 42
1
vote
1 answer

Experience with using Java EE Restlet's TaskService in an application server?

Has anyone used Restlet's TaskService in a Java EE app (deployed in Tomcat, GlassFish, etc)? Is using it going against Java EE's specifications? How does Restlet deal with it when the server/container maintains the thread pool and NOT go against the…
PhD
  • 11,202
  • 14
  • 64
  • 112