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.
0
votes
0answers
11 views
How to read XML file and send it as a response in restlet
When a get request is invoked to my server, I'm trying to send an XML file as a response.
@Get
public Representation getRootDeviceXML() throws IOException {
File xmlFile = new ...
0
votes
1answer
25 views
restlet get is not sending done confirmation
Hi I have a simple restlet get method which returns a static string. It looks like the following:
@Get
public String represent() {
return "mystring\r\n";
}
A low level c app is ...
0
votes
1answer
30 views
Set HTTP code onException with Camel and Restlet
Using the Restlet component in an Apache Camel project, I am not able to set the HTTP status code on the response in onException.
Consider a Camel RouteBuilder configured like this:
...
1
vote
1answer
40 views
Camel Restlet GZIP Charset Encoding
I'm creating a camel web application exposing a REST endpoint via the camel-restlet component and am having some issues with character encodings of the compressed xml responses.
I have manually set ...
0
votes
0answers
19 views
GAE Restlet AJAX security
I'm planning on exposing REST services for Ajax calls using Restlet in a GAE application. I know the Azure Cloud automatically 'contain' or 'hide' WCF services, making them inaccessible to the outside ...
1
vote
1answer
39 views
+50
Restlet Router Relative Path Error
I am having an opposite error of what's written here.
I'm just trying to run a very simple sample application of Restlet in Eclipse.
MailServerApplication.java
public class MailServerApplication ...
0
votes
0answers
22 views
How to add HTTP Verb HEAD to my application
I am new to Restlet Framework and developing the Restful APIs for my Service. We need to support HEAD http Verb in addition to GET, POST, DELETE. I am able to add support for the GET, POST, DELETE but ...
0
votes
0answers
32 views
How to read images from POST call parameter
I am looking at consuming an image that has been passed along with a post request as a parameter.
I am unable to understand how to consume this image with java restlet.
I want to use this image and ...
0
votes
0answers
17 views
How to write a custom ConverterHelper class in Restlet 2.1
I can't seem to find a concrete example of how to write a custom converter for Restlet. I'm having an issue with an object containing an ArrayList of a base type. (ie List )
I've been able to ...
0
votes
1answer
19 views
API modularization in Restlet
I have developed a web application based on Restlet API. As I am adding more features over time, I need sometimes to reuse similar group of REST API under different endpoints, which provides slightly ...
0
votes
0answers
11 views
How to parse xml using Restlet
I want to parse below mentioned xml using Restlet. Can some one tell me how to do so
<Identity id="rajeev" version="2" archived="false" createdBy="mm" ...
0
votes
0answers
32 views
How to add session management to Restlet application?
I'm writing my own little web framework that is built on Restlet framework.
How to add session management to Restlet application?
I know Restlet is a stateless framework but I need the concept of a ...
0
votes
1answer
38 views
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 ...
0
votes
0answers
42 views
Authentication on GWT-Restlet
I want to use the Digest Authentication from Restlet for GWT but it does not work. The following code is for the Client with GWT:
ClientResource res = new ...
5
votes
1answer
132 views
Restlet with Simple connector dropping requests?
I'm running into a really weird issue where a browser's HTTP requests appear to be discarded by the Simple connector used by a Restlet server.
Server setup:
Restlet 2.1.2 server
Restlet-Simple ...