Questions tagged [restlet-2.0]

Restlet is a lightweight, comprehensive, open source REST framework for the Java platform. Restlet is suitable for both server and client Web applications.

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 and HTTPS, SMTP, XML, JSON, Atom, and WADL. A GWT port of the client-side library is also available.

227 questions
0
votes
1 answer

how to request another api as Client in ServerResource method in Restlet

I have created a API in Restlet 2.4.2 java everything is working fine. I get this error when I try to call another API as a client in my ServerResource file. here is my calling API as client code: Client client = new Client(new Context(),…
Mahmood Sanjrani
  • 108
  • 3
  • 19
0
votes
1 answer

Writing Standalone server which can serve multiple clients simultaneously using reslet framework

I am trying to do a project (virtual classroom) which contains a server and multiple clients. From server I should be able to handle video streaming,authentication,chat etc.. when multiple instances of clients send requests. Please guide me how can…
yogesh
  • 1
  • 1
0
votes
1 answer

Adding Authorization Header with Camel restlet component

I've been using restlet camel component to communicate with endpoints fine for a couple of weeks now, but after I had the need to add an Authorization header to my requests, that's when I kept getting this warning: WARNING: Addition of the standard…
Sari Alalem
  • 870
  • 7
  • 18
0
votes
1 answer

What Restlet(Java) libraries are needed for JSON GET/POST?

This is a duplicate of this question, which was written in 2010. Now that things may have changed in 2017, I think this is a great opportunity to re-ask the question. What libraries are needed? Using org.restlet.jee 2.3.10, I have noticed that…
krismath
  • 1,879
  • 2
  • 23
  • 41
0
votes
2 answers

unable to get JSON data from Restlet Client using Node Js

(I am totally new to Restlet client and Server scripting) I am trying to get JSON Data from response body of the Restlet client using below code but I could not get that var http = require('http'); var options = { host: 'staging.api.pearson.com', …
0
votes
1 answer

How can I add an image to Restlet template?

I created a resource: /accounts/{accountId} which uses classes AccountServerResource.class, AccountPage.class and template accountPage.ftl. Just for testing purpose I created a very simple template containing just one string:

Hello…

vitaliy4us
  • 483
  • 5
  • 21
0
votes
1 answer

RESTLET response time getting too slow when deployed in server

I created a Restlet-based web service which uses POST/Json. Problem is that when testing it on local machine, it works perfectly well. But when it is deployed on a server, it takes about 10 seconds more than when tested on my local…
Calia Kim
  • 65
  • 14
0
votes
1 answer

Request Accept media type in RESTlet 2

How can I identify the resource media type in RESTlet2, I tried following in my class extended from ServerResource @Get public Object onGET(){ System.out.println("================="); …
MaX
  • 1,334
  • 13
  • 26
0
votes
2 answers

RESTlet 2.0 tutorial application does not work on appengine

I have been playing with the source code available from the following tutorial. The GWT/GAE application works in development mode, however when its deployed, the server always returns the response in the JSON format. I am using the Restlet 2.0…
Nick Siderakis
  • 1,961
  • 2
  • 21
  • 39
0
votes
0 answers

How do I find the target function name?

How can I find the target method/function name invoked by an URI in RESTFul webservices? I have defined a filter which has before and after methods/functions, I want to find the target method/function which will be invoked by a certain URI to do…
s2s
  • 33
  • 1
  • 6
0
votes
1 answer

Apache camel restlet not working when integrated with servlet engine

i Am trying to integrate restlet with servlet engine so that i do not spawn a new server process. I have made the following configuration in web.xml spring-rs
niky
  • 1
  • 1
0
votes
0 answers

How can I make a restlet bean match the an empty path?

I cannot figure out how to use the an empty path from the servlet. The servlet I am working with is at /items/* my-rest org.restlet.ext.spring.RestletFrameworkServlet
Solx
  • 4,611
  • 5
  • 26
  • 29
0
votes
1 answer

CookieAuthenticator restlet

I have built some RESTful api's with REstlet 2.3.4. I've been using HTTP_BASIC which let the browser prompt for credentials but it's time for a proper login form. I figure the easiest way to implement this is CookieAuthenticator. I can't find…
Ray Garcia
  • 66
  • 8
0
votes
2 answers

Get Request Attributes in Restlet 2.0

I'm using Restlet to make a RESTful platform. I haven't used it before, but I decided to use 2.0 because it is better to start with the latest and greatest technology, right? The key thing I am looking for is the ability to have someone to put in a…
Travis Gockel
  • 26,877
  • 14
  • 89
  • 116
0
votes
1 answer

New Connections are not accepting by Restlet Server

I am using Restlet to implement a web service. From the PHP Client making many consecutive calls to the server, but after a small number of calls complete successfully, further calls hang the server, which shows the message: INFO: Worker service…
user1829110
  • 23
  • 1
  • 1
  • 4