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

Resteasy throws exception at getEntity() method

My server code is as follows (it uses resteasy). Response came from my nexus oss app which uses restlet. This response is being processed by the following method which throws exception private T get(String path, Class responseClass) throws…
Harish Kayarohanam
  • 3,886
  • 4
  • 31
  • 55
0
votes
1 answer

how to change standard header value in restlets?

I have the following get: @Get public String represent(Variant variant) throws ResourceException { String text = "returntext"; text+="\r\n"; return text; } The response from invoking this service: CFG - HTTP/1.1 200 OK Accept-Ranges:…
Atma
  • 29,141
  • 56
  • 198
  • 299
0
votes
1 answer

restlet get not sending close response

I have the following get in my restlet app: @Get public String represent(Variant variant) throws ResourceException { String text = "returntext"; text+="\r\n"; return text; } When checking the response from invoking this service, I get…
Atma
  • 29,141
  • 56
  • 198
  • 299
0
votes
1 answer

Does SSI support restlet SE version

I am looking to avoid using iframes and was wondering, if anyone knows if server side includes are supported in restlet se?
0
votes
1 answer

Restlet 1001 after adding Header

I was trying to add some headers to allow for CORS, it worked pretty well before, but this time it gives me an Restlet1001 connector error with the identical code Form responseHeaders = addHeader((Form)…
Matthew Yang
  • 605
  • 1
  • 13
  • 23
0
votes
1 answer

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 invoking this get by going into a read loop. It never…
Atma
  • 29,141
  • 56
  • 198
  • 299
0
votes
2 answers

How to reusing org.restlet.resource.ClientResource

I am currently using Restlet 2.1.2 on Android, and I'd like to know how to reuse the instance Clientresource in my application. Here is the code I use: Client client = new Client (new Context (), Protocol.HTTP); ClientResource clientResource…
0
votes
1 answer

Can We call Jersey Web Service server from a client implemented in restlet framework?

My Web Service have been implemented in Jersey Framework. I want to call this web service ( server) from client which I want to implement in restlet framework. Is it possible ? Regards,
Avinash Kumar
  • 73
  • 1
  • 3
  • 6
0
votes
1 answer

How do I add javadocs for restlet using Maven?

I've created a maven project using m2eclipse plugin, I'am able to import dependencies through the following code, maven-restlet Public online Restlet repository
Harshal Kshatriya
  • 5,630
  • 11
  • 44
  • 60
0
votes
2 answers

Restlet GWT Client and Requests Cross Domain

Is it possible perform cross domain requests in the GWT version of Restlet Client? I need to consume Rest resources (GET, POST, PUT, DELETE) from an external API with JSON Data. I know about Same Origin Policy (SOP) of GWT, but maybe a workaround…
Gabriel Volpe
  • 101
  • 1
  • 8
0
votes
1 answer

Restlet: Pass Java interface as @Put parameter

I'd like to pass a java interface to a @Put call: public interface IMyInterface { ... } public class MyClass implements IMyInterface, Serializable { ... } public class Service extends ServerResource { @Put public void f(IMyInterface a) { …
0
votes
2 answers

Restlet getIdentifier() Error

When I tried to execute the "FirstResource" Example : http://restlet.org/learn/2.0/firstResource I have an error in this line caused by getIdentifier(): itemResource = new ClientResource(r.getIdentifier()); How can I resolve this error? Thanks…
Yanni
  • 71
  • 8
0
votes
1 answer

how to handle request other than POST in restlet framework

I have one class that extends org.restlet.Application class. Various requests are handled using this class, say: /register /login /listitem I perform all operations using POST request and manage all org.restlet.resource.ServerResource classes…
Hardik Bhalani
  • 863
  • 2
  • 8
  • 24
0
votes
2 answers

Configuring Restlet with App engine

I am using google app engine to develop my software's backend using java along with Restlet framework. I have index.jsp under my war directory which I want to treat as default page when somebody goes to my website(e.g. example.com). So I have…
mabicha
  • 337
  • 2
  • 7
  • 16
0
votes
2 answers

RESTlet ClientResource hangs after calling a remote host several times

I am using the RESTlet ClientResource to call a google places endpoint from a server resource. Specifically, a REST request calls the RESTlet ServerResource which calls the ClientResource and returns Google Places results. This runs in Tomcat as a…
Atma
  • 29,141
  • 56
  • 198
  • 299