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:

1254 questions
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
  • 56,576
  • 33
  • 147
  • 165
6
votes
5 answers

Best Practice for creating Web Services

To preface I am new to web development. I am looking at creating a core set of RESTful web services around a valuable document library of sorts (initial CRUD abilities). In doing so I am theoretically creating a perfectly re-usable and scalable…
Holograham
  • 1,348
  • 1
  • 13
  • 34
6
votes
1 answer

Oauth2 Redirect URI for android application

I have created my own webservice which is protected by Oauth2. I am currently using restlet for this. It makes sense providing a redirect url when you are developing a javascript client on a certain url, but what redirect uri do you provide when you…
Slimmy
  • 71
  • 1
  • 1
  • 4
6
votes
2 answers

Restlet implementing post with json receive and response

First, what i wanted to know is what i am doing is the right way to do it. I have a scenario where i have will receive a json request and i have to update the database with that, once the db is updated i have to respond back with the json…
Rahul Juneja
6
votes
2 answers

any frameworks to handle REST Client server list?

The idea is that REST Client can be configured with list of REST Servers. So the servers list will rotate on the REST Client in a round robin fashion. e.g. REST Client Application. I'll be configuring server list (REST_SERVER1,REST_SERVER2,…
Njax3SmmM2x2a0Zf7Hpd
  • 1,354
  • 4
  • 22
  • 44
6
votes
2 answers

android restlet add non-standard header param

How I can add Header params in restlet android? I have following code: ClientResource clientResource = null; try { clientResource = new ClientResource(jsonRestHelper.getUrl()); for (Parameter parameter : jsonRestHelper.getParameters()) { …
ademar111190
  • 14,215
  • 14
  • 85
  • 114
5
votes
2 answers

Servlet class org.restlet.ext.servlet.ServerServlet is not a jakarta.servlet.Servlet

What could be causing this error? Caused by: jakarta.servlet.UnavailableException: Servlet class org.restlet.ext.servlet.ServerServlet is not a jakarta.servlet.Servlet at org.eclipse.jetty.servlet.ServletHolder.checkServletType…
quarks
  • 33,478
  • 73
  • 290
  • 513
5
votes
2 answers

Android Restlet HTTPS

When trying to get some data on my android client from my webservice (running on app-engine) with this code ClientResource cr = new ClientResource("https://myapp.appspot.com/restlet/service/"); IServiceResource res =…
Fredrik Widerberg
  • 3,068
  • 10
  • 30
  • 42
5
votes
1 answer

Using Freemarker with Restlet 2.0 in a Java EE server

I'm a bit confused with what is written in the documentation(s) for Freemarker and Restlet's freemarker extension. Here's the situation: The restlet engine serves an HTML representation of a resource (e.g. www.mysite.com/{user}/updates). The…
PhD
  • 11,202
  • 14
  • 64
  • 112
5
votes
3 answers

How to set HTTP Status code reason with Apache Camel REST DSL (Servlet/Restlet)

I have a web application built using Spring Boot with Apache Camel and I'm implementing a REST interface. Currently, using either Camel default Servlet or Restlet component, I'm not getting the HTTP Status code reason in the response. Here is an…
Tiago Ferreira
  • 255
  • 2
  • 5
  • 12
5
votes
1 answer

GAE/GWT: Error loading modules: Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml'

I am using Eclipse 3.5 with GAE SDK 1.3.7 and GWT SDK 2.1.0 and Restlet 2.0.3. When I run my app, the console log shows: Loading modules com.androidstartup.serialization.KPadProject [ERROR] Unable to find…
Damasia
  • 155
  • 2
  • 8
5
votes
3 answers

Reading the first part of a file using HTTP

I would like to determine the type of a file (generally UTF-8) by reading the first part of the file and analysing the content. (The type is specific to my community but not under my control and not covered by MIME/MediaType which is normally…
peter.murray.rust
  • 37,407
  • 44
  • 153
  • 217
5
votes
2 answers

Which framework should I use to run OData APIs on Android?

I am creating a program for Android mobiles which will query, retrieve and then process OData from an OData provider via a webservice. Please can you tell me which toolkit is best for this? I have seen these: odata4j restlet Thanks.
Techboy
  • 4,286
  • 5
  • 36
  • 45
5
votes
0 answers

Restlet Kerberos Authentication

I've followed this tutorial to implement different authentication mechanism into my application which uses Restlet: https://restlet.com/technical-resources/restlet-framework/guide/2.3/core/security/authentication I would like to implement Kerberos…
kamaci
  • 72,915
  • 69
  • 228
  • 366
5
votes
1 answer

No available client connector supports the required protocol: 'HTTP'

Greeting. I am playing with Restlet framework, when I am running following code getting and exception Internal Connector Error (1002) - No available client connector supports the required protocol: 'HTTP'. ClientResource cr = new…
jaxb
  • 2,077
  • 3
  • 20
  • 32