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
3
votes
3 answers

Why is Restlet unable to Register the JSON Converter?

I'm at my wit's end here - never seemed to have faced this problem. I find it relatively easy to set up quick HelloWorld applications to ensure Restlet 2.0 is up and running. However, I'm facing a strange exception which I've never encountered…
PhD
  • 11,202
  • 14
  • 64
  • 112
3
votes
1 answer

Getting the full HTTP Accept header string in restlet?

Apologies for the newbie question, but I am struggling a way to get the full contents of the HTTP Accept header received from the client web browser out of restlet (v 2.3.5) ? This : this.request.getHeaders().getFirstValue("Accept",true); Does not…
Little Code
  • 1,315
  • 2
  • 16
  • 37
3
votes
0 answers

Server-Sent Events in Restlet 2.3 Framework - Is It Possible?

Good day everyone! I'm trying to use Restlet 2.3 framework to provide RESTful API in a standalone JavaSE application. The problem is that RESTful API I have to provide contains a resource that is represented by a server-sent events stream. I am a…
Hatter
  • 773
  • 1
  • 6
  • 12
3
votes
3 answers

Restlet converts JSON to LinkedHashMap instead of List?

This is what my Rest endpoint looks like @Post("json") public List addLogProcessorExpression( final List expressions) throws LPRestletException { if (expressions == null ||…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
3
votes
2 answers

Restlet Client :: how to add filters?

I suffering of a lack of documentation on the use of Restlet at the client side. I am getting a resource on server via a ClientResource: new ClientResource(url).get(); But the server can return an ETag header. To handle this I want to save the ETag…
Antoine Wils
  • 349
  • 2
  • 4
  • 21
3
votes
1 answer

Android - First run of Restlet 2.2 server - No available server connector

I´m trying to run my first Restlet server with this code: import org.restlet.Server; import org.restlet.data.Protocol; import org.restlet.resource.Get; import org.restlet.resource.ServerResource; public class WebServer extends ServerResource…
Pepa Zapletal
  • 2,879
  • 3
  • 39
  • 69
3
votes
2 answers

How can I pass information from a servlet filter into a Restlet ServerResource subclass?

In a Jetty-hosted webapp, I use a servlet filter to pull information out of URLs and sometimes route requests to non-Restlet servlets. For Restlet servlets, I want to be able to pass information to my ServerResource subclasses, and I think I should…
Steve Rowe
  • 136
  • 4
3
votes
3 answers

Retrieve an image from RESTlet API

I am creating a REST API in JAVA using RESTlet 2.0. I want to create an API call that will return an image from the database in a similar way as Facebook is doing in its Graph API. Basically, I will do a GET to e.g. …
kvheerden
  • 77
  • 6
3
votes
1 answer

Spring Application Context: How do you set a constructor argument of a class to a class static member variable?

In the application context XML file, how do you set a constructor argument to a static class member? For example, I am using Restlet and one of Restlet's classes called ChallengeAuthenticator receives a challenge scheme member variable. // Normal…
ColinMc
  • 1,238
  • 3
  • 16
  • 33
2
votes
1 answer

RESTLET-HELLO WORLD in GWT

I worked out a simple hello world application using Restlet in GWT, but it throwed out me with "No available client connector supports the required protocol: 'HTTP'" in client side and in server side "No available server connector supports the…
Rangesh
  • 728
  • 2
  • 12
  • 27
2
votes
1 answer

Restlet Internal 500 error

I'm building a jUnit test case for my GAE hosted service and one of the methods is having issues. Here is the Resource interface: public interface BasketItemResource { @Delete public void removeBasketItem(String id); @Get public…
Piers MacDonald
  • 563
  • 1
  • 5
  • 18
2
votes
1 answer

What is the status of org.restlet.ext.guice?

Looking for the guice support in restlet I have come across this article - http://wiki.restlet.org/developers/172-restlet/257-restlet/284-restlet.html But neither version 2.0 (stable) nor 2.1 (release candidate) contains…
mark
  • 59,016
  • 79
  • 296
  • 580
2
votes
1 answer

Does anyone have the restlet samples from the "RESTful Web Services" book by Leonard Richardson and Sam Ruby updated to restlet 2.0?

I would like to run the samples, but they use deprecated API of Restlet and non existing API of db4o. In short, does not compile. I am new to Restlet (and Java), so I really do not want to waste my time trying to fix the code. My hope is that…
mark
  • 59,016
  • 79
  • 296
  • 580
2
votes
1 answer

Restlet RIAP protocol deployed in Java App server

I have deployed our Restlet services to a Jetty Java Application server using the ServerServlet mechanism. Some of the services are called from the GWT front-end, but I would also need to call them directly from our server logic. The Restlet RIAP…
JanRavn
  • 1,002
  • 8
  • 12
2
votes
1 answer

Is Restlet still a viable Java Framework to use?

The Restlet website defines the framework as the Leading Java Framework for building APIs (if I remember that correctly) and for a time Restlet was very much active in the community. After the acquisition of Talend, it seems the direction of Restlet…
quarks
  • 33,478
  • 73
  • 290
  • 513
1
2
3
15 16