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

Restlet framework - Edit agent.properties file

I'm using the ClientInfo class from RESTlet to get the user agent from the browser used by the client. It works fine but it is kind of out-dated (the new Opera is detected as Chrome, and so on...) so I want manually insert my templates to the…
dazito
  • 7,740
  • 15
  • 75
  • 117
0
votes
1 answer

Transparent reverse proxying using org.restlet.routing.Redirector

I am trying to create a transparent reverse proxy using org.restlet.routing.Redirector. For the sake of simplicity let's say all I want to do is to redirect all HTTP requests pointing at http://localhost:80 to be dispatched to another unrelated…
PrimosK
  • 13,848
  • 10
  • 60
  • 78
0
votes
1 answer

RESTLET - chaining a validator and filter, why does it surpasses the filter?

I have a restlet in which i want to chain a validator and filter one after the other in the code. The code goes something like this @Override public synchronized Restlet createInboundRoot() { Router router = new Router(); Validator val =…
0
votes
1 answer

Restlet: Chaining multiple routers with different authentication methods

I have 2 ways to authenticate my user and multiple routes attached to my single router. And for security reasons, I want to split my router in 2 routers with their own authentication method. So far I have: Router router = new…
dbaq
  • 1,347
  • 14
  • 26
0
votes
0 answers

Resources in Spring/Restlet project instantiated twice per request

I have a Spring 3.1/Restlet 2.0 web application. I see that the beans for my resources are instantiated twice per request. I suspect that this is because an instance is created for both the root and servlet contexts, but I can't figure out how to…
gavinmh
  • 257
  • 4
  • 9
0
votes
1 answer

Restlet - how to update authenticator verifier map after a new user is created?

My quest to deal with a java restlet server continues. I was able to set-up my routing as desired, in particular there is a User resource which can be created with a POST call on an URL. When this happens, a new user is created on the Database. From…
T. Rossi
  • 465
  • 1
  • 6
  • 23
0
votes
1 answer

Custom Status Line Not Working in RESTLET

I am writing a REST application and i am using RESTLET. My service has a PUT method. As part of the response, i would like to return to the user Custom Status. For Example : 200 - Successfully Created and Data processing in progress. I tried to set…
Dinesh
  • 31
  • 2
  • 7
0
votes
1 answer

apache restlet connector overload

I use restlet in camel route in from("restlet:http/myLink") clause. When user's requests more then ten per second, I begin recieve errors processing request like a "org.restlet.engine.connector.Controller run INFO: Connector overload detected. Stop…
ZaptoS
  • 141
  • 1
  • 1
  • 9
0
votes
1 answer

How can I consume a JSON web service with Restlet?

I'm trying to consume a restful web service with Restlet. The service is giving me JSON, so I'm using a JsonRepresentation object to get it, but it's not working. I'm getting a null pointer exception when I call…
TomahawkPhant
  • 1,130
  • 4
  • 15
  • 33
0
votes
1 answer

How to access XML object in Restlet 2.0 thats wrapped inside a Representation object?

Hi I am developing an application with Flex for the GUI and Restlet for the webservices. I have a strange problem. I put my XML as a property on a generic object, and send it as part of a POST request. But in the Restlet webservice, this XML is…
Vatsala
  • 889
  • 1
  • 8
  • 22
0
votes
2 answers

RestLet Pagination

In iOS RestKit we have RKPaginator to implement paging. Do we have anything of that sort in RestLet to implement paging logic? Thanks.
Tushar Vengurlekar
  • 7,649
  • 8
  • 33
  • 48
0
votes
3 answers

RESTLET on Camel with Jetty

As far as I understand, Camel by default uses the default RESTLET engine. How can I tell Camel to use Jetty instead? I know there are ways to bundle your application and deploy it in Tomcat or Jetty. If I do that, however, the biggest question…
Klaus
  • 2,328
  • 5
  • 41
  • 62
0
votes
1 answer

Calling Camlet RESTLET Server with Apache HTTp Client

This one should be trivial but somehow it is not working for me. I am trying to make a call to a RESTLET server hosted on Camel. I get it working with Camel client but I am trying to get the same to work with a bare Apache HTTP Client. The Camel is…
Klaus
  • 2,328
  • 5
  • 41
  • 62
0
votes
0 answers

Why is it that RESTlet takes quite time to print the XML, sometimes

I am implementing REST through RESTlet. This is an amazing framework to build such a restful web service; it is easy to learn, its syntax is compact. However, usually, I found that when somebody/someprogram want to access some resource, it takes…
0
votes
1 answer

Possible bug in AwsVerifier in Restlet Framework

While trying to get Amazon S3 authentication working for my RESTful web service, my testing flushed out a possible bug in the Verifier for S3 auth. If you specify an access key that does not exist in the server secrets, the AwsVerifier throws a…
Snapman
  • 601
  • 5
  • 11