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

Remove '@class' in XStream for Java primitive types

I have this field in a POJO that is serialized into JSON: @XStreamAlias("tags") List tags; My problem is that the output looks like this: "tags": [ { "@class": "linked-list", "string": [ "test", …
quarks
  • 33,478
  • 73
  • 290
  • 513
-1
votes
1 answer

Get IPv4 address of client

I have an android app that makes a simple REST call to my backend server (Google App Engine [GAE]). On my GAE, I am trying to extract the IPv4 address of the connection and I always get a IPv6 address. I'm using this to extract the ipAddress. In…
-1
votes
1 answer

unable to compile samples obtained from Restlet.org

When I try to compile the sample using sources.zip found at http://www.restlet.org/documentation/1.1/firstSteps Here is the detail C:\mwb\srvr\firstSteps10>javac -classpath "C:\Program Files\Restlet Framework\Edition Java…
abRao
  • 2,787
  • 1
  • 25
  • 37
-1
votes
1 answer

Restlet using Get and Post Methods

Hiiii, I am developing a small app using Restlet 2.0 API.. I want just to know how to create a URI which accepts more than one parameter for insert query. Ex: router.attach("/{patient}/insertpatient", insertpatient); I want to insert all the info…
-2
votes
2 answers

How to get the response data from cloud to string

I want to get the response to a string variable from the data from the cloud. ClientResource cr = new ClientResource("http://localhost:8888/users"); cr.setRequestEntityBuffering(true); try { try { …
Viz_Kid
  • 85
  • 1
  • 1
  • 7
-2
votes
1 answer

Jersey 2.x Restlets - apply governance control (like limit on number of requests allowed for restlet resource)

I have been reading the Jersey 2.17 user guide for possibities around applying governance limits on the exposed RESTLet resources. I am particularly interested in applying limits on incoming requests for a particular Jersey RESTLet resource for a…
-3
votes
1 answer

Write own Java logic on https://restlet.com

I tried learning things via tutorials on https://restlet.com but unable to figure out whether can I write my own custom Java logic on https://restlet.com API? All it allows is to download generated Java code. Appreciate if you can guide/help.
Nikhil Joshi
  • 817
  • 2
  • 12
  • 34
-4
votes
1 answer

Is there a standard way to package many Restlets into a single Restlet?

I have a situation where the application developers and the framework provider are not the people. As a framework provider, I would like to be able to hand the developers what looks like a single Filter, but is in fact a chain of standard Filters…
Niclas Hedhman
  • 584
  • 4
  • 14
-4
votes
2 answers

Have Restlet working alongside HTTP Servlets

In an existing Java SE project, my colleagues had implemented a bunch of web services in Restlet, relying on an internal server implementation. This turned out to be inadequate in the long run, so we migrated to a server engine based on jetty 9,…
E_net4
  • 27,810
  • 13
  • 101
  • 139
1 2 3
83
84