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
1
vote
2 answers

Restlet 2.0.11 increase number of threads

I am trying to run a server using restlet 2.0.11 but the server gives up due to too many threads. Can somebody help me with increasing the number of threads for my server with an example? try { Server server = new Server(Protocol.HTTP, m_iPort,…
1
vote
0 answers

Local Google AppEngine instance with Restlet trowing "An exception occured writing the response entity" error

I have a Google Appengine/Java setup, with Restlet for appengine (2.0.11). The application runs fine when deployed but throws this error when trying to connect to any of the Restlet entry points locally (localhost). The full trace is pasted below. I…
oviroa
  • 1,079
  • 2
  • 12
  • 29
1
vote
1 answer

How to consume text/plain response with Restlet 2.1 from GWT client?

I have a GWT client that would like to query a RESTful service that returns text/plain. I created a proxy interface: public interface ConnectionStatusService extends ClientProxy { @Get("txt") public void getVersion(Result
jabal
  • 11,987
  • 12
  • 51
  • 99
1
vote
1 answer

how to get client's ip from jax-rs with restlet

How can i retrieve client's ip (the remote ip) of the http request? I'm using JAX-RS with Restlet and not using servlets. Thanks.
Sophie
  • 1,580
  • 3
  • 16
  • 20
1
vote
0 answers

Restlets 2.1-RC1- sample performant ClientResource code needed

We are trying to develop/tune a restlet client that will HTTP POST up to 10+ requests per second. The restlet website gives sample client code for consuming resources. Their example is ClientResource clientResource = new ClientResource( …
k1eran
  • 4,492
  • 8
  • 50
  • 73
1
vote
1 answer

how to achieve dynamic binding in Google-Guice?

I am trying to implement service façade into services to support backward compatibility. However, I am facing problem in Guise dynamic binding. I need to bind respective implementer class depending upon the version requested by client…
1
vote
1 answer

How to solve 400 bad request error in Netsuite Restlets?

I am working on a project where I am using restlest to communicate with Netsuite from my website. I am using OAuth 1.0. It was working fine. However, now I face 400 bad request error. I believed that there was some issue with my code but I tried…
1
vote
1 answer

How to construct message header for a HEAD response with restlet

I'm trying to create a HEAD response with restlet. Unfortunatly there is ony a @Get annotation, but the restlet author states, that you have to use a @Get, and then compare the Method. As the documentation/specification says, there can be no body,…
Dag
  • 10,079
  • 8
  • 51
  • 74
1
vote
1 answer

coding a server on using restlet 2.0

I am coding a server for a project of mine using restlet 2.0. I have a java class which starts the server (starting it on a port and all those stuff). I am stuck at a point where i need to map the uri's of different services i intend to offer. If i…
Veeraraghavan N
  • 839
  • 1
  • 10
  • 19
1
vote
2 answers

Custom SignIn & SignUp on RESTlet + GAE/J?

I am currently working on a small project using RESTlet on Google App Engine/Java. I was searching.. searching.. and couldn't find the exact or understandable solutions for my doubts. My question is that How am I suppose to implement my own SignIn…
jlc488
  • 1,051
  • 1
  • 8
  • 10
1
vote
1 answer

How to control the HTTP response code from a Restlets resource?

I am currently working with the Restlets framework, and I cannot find a way to manually set the HTTP response code within a service method. Consider the following snippet of code: public class MyResource extends ServerResource { @Post("json") …
Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360
1
vote
1 answer

Spring cannot find key store file

I have this file structure; Then on my beans xml config I have; But when I start the server up I get a FileNotFoundException /store/thestore.jks What am I missing? Thanks in advance.
Laazo
  • 467
  • 8
  • 22
1
vote
1 answer

org.restlet: Posting JSON content against webservice returns HTTP error 411 (length required)

Simplified code example: http://pastebin.com/9ZQxSXi9 Hi I wanted to experiment with the restlet 2.0 library and the gpodder webservice but somehow i reached a point where I can't see the wood for the trees. The service in the example requires HTTP…
mz_01
  • 495
  • 3
  • 13
1
vote
2 answers

Restlet basic HTTP Authentication : Help required

I am running Restful web service on 8182 port using restlet framework. I am trying to authenticate user to hit the service. i.g. I have a query string like this http://localhost:8182/api/service/customers/?key="XXXXXXXXX" My doubts are: How to get…
geekIndiana
  • 87
  • 4
  • 14
1
vote
1 answer

Restlet server on Android: client is getting a null object

I implemented a simple Android Restlet server demo that can provide the sensor values to a Restlet client. However, when the restlet client receives the object, it is null. I suppose there is not much missing because the transaction shows that it…
ForeverLearning
  • 413
  • 5
  • 25