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
1
vote
1 answer

Getting the user principal in Restlet over Tomcat

I have a web application deployed on Tomcat, which uses Tomcat's form authentication. When writing a new servlet, this allows me to find a request's user via HttpServletRequest#getUserPrincipal. I would like to use Restlet in this app, and I was…
user154940
  • 11
  • 1
1
vote
1 answer

Restlet : Use converter service in filter

I am using spring and restlet in a project. I have added a filter which checks whether the request URI is valid or not and returns the list of valid URIs (resource discovery mechanism). I have to return the response in json/xml using converter…
1
vote
2 answers

Restlet routing - Route being overtaken by another route

I've come up to a strange routing problem in restlet. I'm using android. This class extends Router This is my routing code: this.attach("/contacts", contactListRestlet); // To list all contacts this.attach("/contacts/{uid}", contactRestlet);…
dazito
  • 7,740
  • 15
  • 75
  • 117
1
vote
1 answer

Looking for a camel-restlet sample with no Spring

Please help, looking for a camel-restlet sample with no Spring to expose POST rest API.
bmk1977
  • 141
  • 3
  • 10
1
vote
1 answer

Get values by POST in Restlet framework

I'm tring to get the parameters sent by POST using the Restlet framework but I can't find the way. Here's what I have working with GET: @Get public StringRepresentation represent() { String search = getQuery().getValues("search"); …
Alvaro
  • 40,778
  • 30
  • 164
  • 336
1
vote
1 answer

Set relative location header with Restlet

When trying to set a relative location header using something like the following code: setLocationRef(getReference().addSegment(MyItem.getId()).getPath()); Restlet seems to always make the Location header an absolute URL no matter what I do. It…
Mafuba
  • 603
  • 6
  • 19
1
vote
0 answers

Root Cause for ClientAbortException for tomcat 6.0

I have a set for staging server with Apache configured on one machine and my setup for application and web-service hosted on other machine with two separate tomcat 6.0 instances . The App was working perfectly since last 6 month however i am facing…
csk
  • 566
  • 1
  • 5
  • 15
1
vote
1 answer

How to debug Restlet?

When I POST to a Restlet, it says 415 Unsupported Media Type, but there are no stack traces, nothing in the log, no errors returned, nothing. I tried setting a breakpoint on the first line of the method and restarting the server in debug mode, but…
Chloe
  • 25,162
  • 40
  • 190
  • 357
1
vote
1 answer

making multiple network calls at a time from android application

Is it good design to have multiple services running at a time to do multiple network calls from android application? In my application, when user logs in, there are several fields that needs to be populated from the response received from network…
Kaps
  • 2,345
  • 2
  • 26
  • 37
1
vote
1 answer

Restlet Post Request does not provide JSON data passed

I am using Restlet 2.1.2 and am having an unusual problem of my request Representation text being null. I have looked at the forums and read that the entity is transient and will be destroyed if not cached correctly but while I have a guard…
ars265
  • 1,949
  • 3
  • 21
  • 37
1
vote
1 answer

Restlet HTTP_DIGEST authorization in android

Got following problem with HTTP_DIGEST authorization via Restlet framework on Android. 05-20 18:39:14.623: W/System.err(4584): Challenge scheme HTTP_DIGEST not supported by the Restlet engine. 05-20 18:39:17.498: W/System.err(4584): Couldn't find…
mrtworo
  • 13
  • 3
1
vote
1 answer

Creating a Restlet Authorizer for fine grained authorization

I'm attempting to implement a RESTful API using Restlet and have found very little on anything more than the basic Role and Method Authorizers. I have stored in a database the routes and methods for those routes that a user can access. The issue I'm…
ars265
  • 1,949
  • 3
  • 21
  • 37
1
vote
1 answer

Restlet client freezing on HTTPS requests

I'm trying to create a client-server application in Java using HTTPS and XML posts with Restlet. I've followed various tutorials, and managed to run the server side without problems (it responds correctly if I connect to it with a browser), but as…
Satto
  • 51
  • 1
  • 6
1
vote
1 answer

Handling slashes in parameters for URI using Restlet 2.1.1

I have a URI like this: http://localhost:8111/myService/{Param1}/{Param2}/Param3 Param1, Param2, Param3 may or may not contains special characters such as #, &, @, / I am having the clients encode these special characters such as using %2F for…
Micho Rizo
  • 1,000
  • 3
  • 12
  • 27
1
vote
1 answer

simple restlet login

I am playing with restlet and i want to create a login mechanism that passwords and usernames are store in a MysqlDatabase. public class zeus extends Application { @Override public Restlet createInboundRoot() { // Δημιουργία του…