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
117
votes
6 answers

RESTful on Play! framework

We are planning a project primarily serving content to mobile apps, but need to have a website. My question is whether is makes sense to use Jersey or Restlet to develop REST APIs for our mobile apps, and then use Play! to serve the website. Or…
Gary
  • 1,179
  • 2
  • 8
  • 4
90
votes
5 answers

Is it ok by REST to return content after POST?

I am using RESTlet and I have created a resource. I handle POST by overriding acceptRepresentation method. The client should send me some data, then I store it to DB, set response to 201 (SUCCESS_CREATED) and I need to return some data to the…
del-boy
  • 3,351
  • 2
  • 24
  • 38
83
votes
10 answers

RESTful application on Google App Engine Java?

I would like to create a RESTful app on Google App Engine. I would like to provide XML and JSON services. I have briefly experimented with Restlet, Resteasy, and Jersey. I haven't had much success with any of them, other than some simple examples in…
JP Richardson
  • 35,950
  • 34
  • 117
  • 150
40
votes
1 answer

Restlet, CLAP, Ajax, and chunk timeouts

We're using RESTlet to do a small little REST server for a project we have. We set up a bunch of routes in a class inheriting from Application: public static void createRestServer(ApplicationContext appCtx, String propertiesPath) throws Exception…
MarcWan
  • 2,873
  • 3
  • 25
  • 40
29
votes
2 answers

A url resource that is a dot (%2E)

I have a resource that is a . This means my url looks like this: http://myapp/index/. And i need to add query parameters so that it looks like this: http://myapp/index/.?type=xml I use Freemarker for the presentation of my resources and made a…
cuh
  • 3,544
  • 4
  • 27
  • 45
29
votes
10 answers

Easiest frameworks to implement Java REST web services

What are the best frameworks for implementing both client and server REST frameworks in Java? I've been struggling a little to find an easy to use solution. Update: Both Jersey and Restlet seem like good options. We'll probably use Restlet but…
Marcus Leon
  • 50,921
  • 112
  • 279
  • 413
27
votes
5 answers

RESTFul Service Framework for AppEngine

I am working on a project that involves mobile and web clients with Google's AppEngine PAAS. I would like to use RESTFul webservices with my AppEngine app. I have looked over Stackoverflow for references to RESTFul service frameworks that can be…
Saad Farooq
  • 12,612
  • 9
  • 64
  • 94
23
votes
6 answers

How do I interact with OData from Java?

OData is Microsoft's repackaging of its Astoria (now WCF Data Services) RESTful query/update protocol. If I want to use Java to create an OData compatible data source, how do I do that? Similarly, if I want to consume an OData data source from Java,…
user280638
20
votes
1 answer

What is JAXB and JAXRS ? How are they related?

Sorry for this blunt question . But many use these 2 terms day in and day out yet I don't know .I did some study on this and knew what it is separately . But don't understand how it is related . I will share what I understood about these two first…
Harish Kayarohanam
  • 3,556
  • 2
  • 23
  • 53
18
votes
4 answers

Restlet Maven Dependencies

Does anyone know what the RESTLET maven dependencies are? None of the entries on the site work. I had to end up installing jars to make it work.
Atma
  • 25,661
  • 50
  • 173
  • 276
17
votes
2 answers

fix java.net.SocketTimeoutException: Read timed out

I have a RESTful server which takes an http POST input from client to vote up songs on server. I have used Apache HTTPClient for client. public boolean vote() { HttpClient client = new DefaultHttpClient(getHttpParameters()); …
asok Buzz
  • 1,706
  • 3
  • 22
  • 49
16
votes
3 answers

How to serve static content with JAX-RS?

I have a self hosted JAX-RS REST service implemented with the JAX-RS Restlet extension. Now I have to serve static content and I was wondering how to do it with JAX-RS. Note, that I do not know the physical directory structure at compile-time. So,…
mark
  • 49,076
  • 65
  • 227
  • 485
15
votes
3 answers

RESTful authentication - resulting poor performance on high load?

For a RESTful web service we say that that the server shouldn't store any state. Now for every request the 'user' must be authenticated and must have an authorization for the action(s) he/she wishes to carry out. Now every request will contain…
PhD
  • 10,410
  • 12
  • 56
  • 102
14
votes
2 answers

Get HTTP GET parameters from Restlet request

I am trying to figure out how to get the parameters from a Restlet request object. my request comes in as /customer?userId=1 and I want to grab the parameter to pass to my DAO for the query. public class CustomerResource extends ServerResource { …
Holograham
  • 1,348
  • 1
  • 12
  • 34
12
votes
2 answers

REST: Mapping 404 HTTP Status codes

Our team is developing RESTFul applications...we are debating the "BEST PRACTICE" approach. Should 404 status code response be returned for a filter-like query? Say my GET URL is .../1/service/startsWith/a.json and it returns all values that start…
Jeryl Cook
  • 1,118
  • 16
  • 36
1
2 3
82 83