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
0
votes
2 answers

How to implement server confidentiality HTTPS in Restlet 2.0.0

I am trying to implement Rest web service(Server) with https protocol. I am getting Warning while starting server: WARNING: No available server connector supports the required protocols: 'HTTPS' . Please add the JAR of a matching connector to your…
vikas jha
  • 1
  • 1
0
votes
1 answer

Is there a Java database framework that supports remote data management on iOS and Android

I am currently using RESTlets to field REST requests and JDBC to enter that data into a mysql database. As my mobile app is growing JDBC is becoming unmanageable. Is there a Java database framework that will work well to manage requests coming…
Atma
  • 29,141
  • 56
  • 198
  • 299
0
votes
2 answers

android restlet get json array

I have the json return from server like this: [{"id":1,"group":[{"id":1,"subGroup":[{"id":1,"item":"X"}]}]}] how to I get the arrays group and subgroup? I'm using restlet on Android Client. thanks all.
ademar111190
  • 14,215
  • 14
  • 85
  • 114
0
votes
1 answer

Restlet Java Framework - does Client need to be closed in some way?

I've just inherited some code that uses the Restlet framework - must admit I'd never even heard of it until now. The pattern seems to be to do: Request request = new Request(method, uri); Client client = new Client(protocols); Response response =…
user265330
  • 2,533
  • 6
  • 31
  • 42
0
votes
1 answer

restlet post method parameter is always null

I have a simple form:
It goes to the handlePost method in my resource. However Representation entity is always passed…
Decrypter
  • 2,784
  • 12
  • 38
  • 57
0
votes
2 answers

Prevent css going through restlet

I have been looking for an answer for this for ages and can't find it anywhere. Really hope someone can help My structure: WebContent - resources - css - style.css - WEB-INF - web.xml template.html web.xml
Decrypter
  • 2,784
  • 12
  • 38
  • 57
0
votes
1 answer

Debug/Handle Java/Restlet application SEGFAULT

I have a application service use Restlet framework. But after running 1-2 days. I caught it stopped unexpected. Checked the application directory, I found a log file said: A fatal error has been detected by the Java Runtime Environment: # SIGSEGV…
Yoshi
  • 563
  • 1
  • 6
  • 17
0
votes
2 answers

Challenge with Android communicating to GAE using restlet

I'm using Eclipse to (try to) build an Android client to get reuse a restlet service I developed using GAE and GWT. My service is running at http://127.0.0.1:8888/abc/audits I can test this by going directly to this url, and by using my GWT…
0
votes
2 answers

Unmarshalling XML using JAXB in restlet's acceptRepresentation method

I've created an XML schema by annotating an existing Java domain model class, now when I try to use JAXB to unmarshall the representation received within my restlet webservice I'm getting a host of errors no matter what I seem to try. I'm new to…
robbo
  • 93
  • 3
  • 7
0
votes
0 answers

iOS client for Restlets

We like Restlets' approach to RESTful web services and its Android client library works great. We also know that there are superb REST client APIs for Ruby on Rails and we are expecting someone out there on the net has come up with a REST client as…
Sandah Aung
  • 6,156
  • 15
  • 56
  • 98
0
votes
1 answer

Restlet css and javascript files

WebContent - resources - css - style.css WEB-INF - index.html public synchronized Restlet createInboundRoot() { Router router = new Router(getContext()); router.attach("/", IndexResource.class); return…
Decrypter
  • 2,784
  • 12
  • 38
  • 57
0
votes
1 answer

Getting the restlet Template Representation to work

I am having a problem getting the Template Representation working in Restlet. I am using the Template Representation because I have 3 pages that are similar apart from thecontent (I.e header, navigation and footer are the same): index.html,…
Decrypter
  • 2,784
  • 12
  • 38
  • 57
0
votes
1 answer

How to have a persistent array in RESTlets for multiple requests to access

I'm using Restlets for a REST architecture. The REST classes accesses a database and returns the results as JSON. I have an instance where I only want to go to the database once and store the results in an arraylist so that every subsequent REST…
Atma
  • 29,141
  • 56
  • 198
  • 299
0
votes
1 answer

How to get value and Return values from Restlet?

I am using restlet in java. I want to send data to the restlet service and perform some operation on that and then return the result to the client, receive on client side. I am not getting any tutorial for this. Please can anybody provide me any…
Deepu
  • 2,590
  • 19
  • 52
  • 74
0
votes
1 answer

Restlet consume post webservice, add json-string as representation

I want to consume a rest webservice using restlet. This will be done with a post. What do I need to add to the following code: ClientResource resource = new ClientResource("url"); resource.setChallengeResponse(ChallengeScheme.HTTP_BASIC,…
KwintenP
  • 4,637
  • 2
  • 22
  • 30