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
12
votes
4 answers

Restlet javax.net.ssl.SSLHandshakeException: null cert chain

I am testing SSL communication between client and server locally. So I generated certificate using OpenSSL commands. Added this certificate in cacert file. Also generated .p12 file. I am using the same .p12 file in server and client. This is the…
vikas27
  • 551
  • 5
  • 12
  • 35
12
votes
2 answers

using RESTlet, XStream annotations seem to have no effect

Using @XStreamOmitField in my POJO seems to have no effect whatsoever. the annotated field still gets exposed in the xml or json representation. @XStreamAlias("Pojo") @Entity public class Pojo { private String name; @Id …
chaos0815
  • 812
  • 16
  • 25
12
votes
6 answers

Restlet POST using JSON

How do I implement Restlet function which accepts JSON post? And how do I test this using curl? Thanks
Porton
  • 8,243
  • 19
  • 73
  • 122
11
votes
1 answer

Restlet streaming data

I have this task that I'm undertaking where I would be reading data from a device and make it available over a web service. The data is read 4 times a second. I want the web clients to be have an open HTTP connection and get the device readings as a…
Professor Chaos
  • 7,900
  • 7
  • 33
  • 52
11
votes
4 answers

How popular is restlet?

I'm selecting a framework for restful service. Restlet looks promising. However, I'd like to pick something that's mainstream enough that it won't go out of support/development too soon. I know restlet has been around for quite some years.…
user1923152
  • 121
  • 1
  • 2
  • 6
11
votes
2 answers

Streaming data from client with HTTP Post

I would like to stream data from the client to the server. My application streams audio data to the server. I do not know how long the audio will be when I begin streaming it. I want to reduce latency by transmitting the data as it is being…
opus111
  • 2,436
  • 3
  • 20
  • 38
10
votes
2 answers

Restlet server resource with constructor parameters needed

Getting this error in restlet: ForwardUIApplication ; Exception while instantiating the target server resource. java.lang.InstantiationException: me.unroll.forwardui.server.ForwardUIServer$UnsubscribeForwardUIResource And I know exactly why. It's…
djechlin
  • 54,898
  • 29
  • 144
  • 264
10
votes
2 answers

Standalone Java Implementation for extracting values in URI Template (RFC 6570)?

Is there a Java standalone implementation to extract values ​​of parameters in an URI as defined by an URI-Template (RFC 6570)? The best implementation I've found is a ruby implementation ( https://github.com/sporkmonger/addressable ) Via…
JYC
  • 193
  • 1
  • 7
9
votes
2 answers

Python's urllib2.urlopen() hanging with local connection to a Java Restlet server

I'm trying to connect to a local running Restlet server from python, but the connection hangs infinitely (or times out if I set a timeout). import urllib2 handle = urllib2.urlopen("http://localhost:8182/contact/123") # hangs If I use curl from a…
Dolan Antenucci
  • 13,952
  • 16
  • 65
  • 96
9
votes
1 answer

How to enforce 'sessions' in RESTful web services using RESTlet?

I am new to RESTful web services and RESTlet. WE only have experience building servlet based web applications (Servlet/JSP on JBoss/Apache). Now, we are building a RESTlet based application where the server side API would be used by two types of…
DG.
  • 503
  • 3
  • 12
  • 20
9
votes
3 answers

Jax RS Authorization

I have an existing code at a class which is extended from javax.ws.rs.core.Application ... Context childContext = component.getContext().createChildContext(); JaxRsApplication application = new…
kamaci
  • 65,625
  • 65
  • 210
  • 342
8
votes
2 answers

What is the best way to write a test case for RESTLET web services?

I have a JAX-RS web service implemented with Restlet library and now I want to test it. In order to do that I'd like to host this service in my test by preinitializing it with mocked services. What is the best way to host such a service and execute…
IgorM
  • 1,068
  • 2
  • 18
  • 29
8
votes
7 answers

Error with Restlet sample project

I downloaded the sample Restlet project and opened it in Eclipse. I instantly get this error: Errors occurred during the build. Errors running builder 'Google WebApp Project Validator' on project…
Nick Heiner
  • 108,809
  • 177
  • 454
  • 689
8
votes
1 answer

Why does Restlet on GAE says Component is NULL

On every request made to the Restlet resources, I see the following logs in Google App Engine Logs 21:38:50.059 javax.servlet.ServletContext log: ExampleAPIs: [Restlet] ServerServlet: component class is null 21:38:51.568 javax.servlet.ServletContext…
Abhishek Nandi
  • 4,185
  • 1
  • 28
  • 42
8
votes
1 answer

Restlet path param does not work

Below is my routing public Restlet createInboundRoot(){ Router router = new Router(getContext()); router.attach("account/profile",UserProfile.class); Following is the Resource class UserProfile.java @post @path("add") public void addUser(User…
Débora
  • 5,390
  • 21
  • 84
  • 159
1
2
3
82 83