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 package static files needed by my Android Restlet server?

I'm using Restlet 2.3.2. I'm building an Android Activity running a Servlet Server. I would like to package some files (the keystore and the static web files directory) with the resulting APK and make them accessible to Restlet. Right now, I put…
slaadvak
  • 4,611
  • 1
  • 24
  • 34
0
votes
1 answer

How can I add a token to Challenge Based Authenticator in Restlet?

I am developing a Restlet API. I have the server running and a test client code that authenticates itself using HTTP_BASIC under Challenge Based Authentication mechanism. After a user has provided the correct credentials(username & password), I…
Excite
  • 484
  • 1
  • 5
  • 19
0
votes
1 answer

Restlet ServerResource method parameters with special characters

.../address?street=2767 Pembroke St #979 When i get this url's parameter as Form queryParams = getReference().getQueryAsForm(); String street = queryParams.getFirstValue("street"); I can't get with special character("#"). got as(2767 Pembroke St…
Rajavelu
  • 35
  • 1
  • 6
0
votes
1 answer

Apache Camel Restlet - Unable to set Authorization parameter in Header

We are trying to initiate a REST webservice call Using Apache Camel Restlet Component and it was successful. But we are not able to retrieve the Authorization header property value from request object which we have set in Apache Camel Exchange…
Vikash B
  • 945
  • 12
  • 26
0
votes
1 answer

Route Restlet logging to log4j2

I want to bridge the restlet logging to log4j2, so the LogServices is logged correctly. Currently I have full qualified classnames in my log pattern, eg: [org.restlet.Component.InternalRouter], but the LogService is logged as [.Logservice] (which is…
Dag
  • 10,079
  • 8
  • 51
  • 74
0
votes
1 answer

Why does Status.CLIENT_ERROR_UNAUTHORIZED in Restlet returns an EmptyRepresentation when post

The Post method in Restlet 2.x returns an EmptyRepresentation when Status.CLIENT_ERROR_UNAUTHORIZED, it does not do so in Get-method. Why is that?
Bert Verhees
  • 1,057
  • 3
  • 14
  • 25
0
votes
1 answer

Restlet- Send custom status code and message in Ajax response

I have created an application in RestLet and now I want to create a custom status code message e.g. 10001 - Give Account Detail how can I create this? As I check there are 2 status libraries available in RestLet one is org.restlet.resource.Status…
0
votes
1 answer

Restlet HTTP Connection Pool

I am fairly new to Restlet and wrote small piece of code to make a HTTP call. It is working but I was wondering how can I add HTTP Connection pooling (apache) into it. I am not able to find any tutorial or reference code for it. Client…
Ashu
  • 1,703
  • 4
  • 16
  • 23
0
votes
1 answer

Restlet Studio Error 422 when generating sample client and server

Hi I'm using the restlet studio to generate a client and server from your sample pet store API . Here are my steps: Generate Java Server (JAX-RS) Edit pom.xml to make a war file mvn package Deploy to jetty server as webapp Verify it works by going…
0
votes
1 answer

how to log request and response body and headers with reslet?

I would like to log all request and response bodies and the headers for a restlet service. For example, the following java options allow you to configure detailed logging on an Axis2 service: JAVA_OPTS= …
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
0
votes
2 answers

Retrieve URI attached to ClientResource

When I create a new ClientResource, I usually do the following ClientResource cr = new ClientResource("URI string"); Is there a way to recover the URI string later in time from cr?
tigerjack
  • 1,158
  • 3
  • 21
  • 39
0
votes
1 answer

Code generation for a secured web service using Restlet Odata extension

I am trying to create object model (java classes) using Restlet Odata extesnion for my secured webservice. As part of this process, I wrote below code to generate the code. import org.restlet.ext.odata.Generator; import…
0
votes
1 answer

Restrict the access of REST URL's in browser

How to restrict the access of REST urls in browser, can any one please guide me what are the necessary changes to made in security.xml. My web app runs on spring MVC framework.
rsr
  • 13
  • 1
  • 5
0
votes
0 answers

Restlet Reference scheme reverts to http when using https

I have a simple Restlet application using the embedded org.restlet.Server in restlet-jse-2.2.3 which worked fine with HTTP. Following the Restlet book, I converted it to use HTTPS instead. However, within my ServerResource instances, getReference()…
0
votes
1 answer

How to restrict access to some restlet resources

I'm trying to figuring out what is the best way to restrict access to some resources using the restlet framework. In my case, I have a POJO object public class User { private Integer id; private String password; private boolean enabled; …
tigerjack
  • 1,158
  • 3
  • 21
  • 39