Questions tagged [restlet]

Restlet Framework is an open source framework for Java (and JavaScript) to expose and consume RESTful web APIs. It has editions for Java SE, Java EE, OSGi, GAE, GWT and Android.

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, HTTPS
  • SMTP, SMTPS
  • POP3, POP3S
  • FTP, SDC
  • FILE, RIAP, WAR pseudo protocols
  • XML, JSON, Atom, OData and WADL media types
  • etc.

For additional details:

1232 questions
8
votes
3 answers

Configure Restlet to Return JSPs on Google App Engine?

I have a developed a Restlet application. I would like to return a JSP file on a URL request through Restlet. How can I achieve this without using a redirect? i.e. Let's say I have the file "contact.jsp" on mydomain.com and I want people to be able…
JP Richardson
  • 35,950
  • 34
  • 117
  • 150
7
votes
3 answers

Sending binary data with the Restlet client

I'm trying to send a byte[] (using PUT) with Restlet but I can't find any info on how to do it. My code looks like this: Request request = new Request(Method.PUT, url); request.setEntity( WHAT DO I PUT HERE?, MediaType.APPLICATION_OCTET_STREAM); I…
Yrlec
  • 3,223
  • 6
  • 35
  • 72
7
votes
5 answers

RestKit in android?

I have used restkit framework in ios. Which is very powerful and provides features like caching and all. I am looking whether a similar framework is available in android? I came across a framework called restlet. But didnt find any samples to work…
Zach
  • 9,411
  • 18
  • 63
  • 102
7
votes
4 answers

Running a RESTlet Tutorial, I'm receiving java.lang.NoClassDefFoundError

I'm trying to run the first server tutorial on RESTlet docs but i'm getting errors even though i added the jars to my classpath. I added org.restlet.jar and org.restlet.ext.* The code for the server is : package test; import…
Mido
  • 484
  • 2
  • 6
  • 18
7
votes
1 answer

How do I use a custom SSLContextFactory in a Restlet application running on Jetty?

I'm trying to use Restlet's ClientResource to connect using HTTPS to a server that uses a self-signed certificate. I have this working using a stand-alone application that just uses ClientResource and my custom SSLContextFactory added as an…
user2919083
7
votes
6 answers

NoSuchMethodError: com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch

My app is throwing NoSuchMethodError: com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch error. Not sure why, because 16.0.1 do contain that class, I've checked. From what I have researched, it looks like this is a…
quarks
  • 29,080
  • 65
  • 239
  • 450
7
votes
2 answers

Fine-grained Authentication with RESTlet

I want to expose a resource using RESTlet with a fine-grained authentication. My ServerResource should be accessable via GET only for authenticated members (using BASIC Authentication). However, requests using POST should be available also for…
b_erb
  • 19,644
  • 8
  • 51
  • 63
7
votes
3 answers

Serve dynamic generated images using restlet

I have searched online for a while and almost all the questions regarding image serving using restlet are about static images. What I want to do is to serve dynamic generated image from restlet. I have tried serving static images using restlet,…
Lily
  • 5,542
  • 17
  • 53
  • 73
6
votes
3 answers

Add headers to request wrapped by ClientResource in Restlet

How do I add my own headers to a request wrapped by ClientResource in Restlet? For example, I've read that you can use the following when working directly with Client: Form headers = (Form)…
tacos_tacos_tacos
  • 9,687
  • 10
  • 65
  • 116
6
votes
2 answers

How to make Restlet client ignore SSL Certificate problems

I am currently working in a test environment where the server has a default Self signed SSL certificate. I am using Restlet 2.1-RC2 and instantiating client resource like this: Client client = new Client(new Context(), Protocol.HTTP); cr = new…
nwaltham
  • 1,957
  • 1
  • 19
  • 38
6
votes
4 answers

Repeated calls by Restlet client to Restlet server hangs

I am using Restlet to implement a web service. The client (also uses Restlet) makes many consecutive calls to the server, but after a small number of calls complete successfully, further calls hang the server, which shows the message: INFO: Stop…
user1062589
  • 177
  • 2
  • 11
6
votes
3 answers

What Java REST framework to use with App Engine and Android for students?

I'm teaching a college course on mobile application development and would like to introduce my students to a REST framework for use with App Engine, to help them with data storage for the Android apps they're building. Could anyone recommend a Java…
Ellen Spertus
  • 5,875
  • 9
  • 47
  • 82
6
votes
1 answer

What is the best JAX-RS library?

I've been trying to choose which technology to use for a REST application and have found 4 candidates: Jersey - jersey.java.net Apache Wink - incubator.apache.org/wink RESTlet - www.restlet.org RESTeasy - jboss.org/resteasy but haven't…
Nadav
  • 1,107
  • 2
  • 18
  • 36
6
votes
2 answers

Issue passing context attributes to ServerResource

My application attempts to set context attributes: final Router router = new Router(); router.attachDefault(HttpListener.class); org.restlet.Application myApp = new org.restlet.Application() { @Override public…
Chris Snow
  • 20,818
  • 29
  • 115
  • 263
6
votes
1 answer

Remoting from a Swing app to GWT server

To put it simple, I've written a JSE Swing app that needs to talk to a GWT server I've written earlier. I absolutely love the way GWT does remoting between it's javascript and server sides and wish I could utilize this mechanism. Has anyone managed…
yanchenko
  • 53,981
  • 33
  • 142
  • 163
1 2
3
82 83