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
2
votes
1 answer

Force Restlet client to use "text/xml"

I have to send some data using POST to a backend that checks the content type and forces "text/xml". I'm using this code: final ClientResource resource = new ClientResource(url); String data = "
Steven Mohr
  • 1,167
  • 6
  • 19
2
votes
1 answer

How to solve error 49 in Pardot (api version 4) after receiving an API_Key and User_key

after sending callout for login i get an api_key "POST https://pi.pardot.com/api/login/version/4 *email=&password=&user_key=" *setting them as parameters with urlencode getting the: but when sending a callout to create a list or any other operation…
2
votes
2 answers

Caching InitialContext and DataSource in a Java EE web-app

In the following Connector/J reference for JDBC/MySQL it suggests we cache the instances of InitialContext and Datasource. Would just making it a private static instance solve the caching? Shouldn't one have to be concerned with thread-safety (if at…
PhD
  • 11,202
  • 14
  • 64
  • 112
2
votes
1 answer

Sending File and JSON from Angular to Restlet

I have a form that includes an object bound to the html with ng-bind. The same form includes a fileupload widget: . I'm submitting this to a Java Restlet. I am able to get the File in the…
Eddy
  • 3,533
  • 13
  • 59
  • 89
2
votes
6 answers

How can I disable logging in Restlet 2.0?

I simply want to disable Restlet's logging to stdout/stderr in my project and forward all Restlet logging through the SLF4J facade provided by org.restlet.ext.slf4j. Is there an easy way to do this?
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
2
votes
1 answer

How to diagnose "org.restlet.data.Parameter cannot be cast to org.restlet.data.Header" error in Restlet 2.3.5?

I'm using Restlet 2.3.5 in my application. When the GET request handler of a certain server resource is invoked, I get the following error: [10:26:04] [Restlet-860541310/WARN]: Nov 29, 2015 10:26:04 AM org.restlet.engine.adapter.ServerAdapter…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
2
votes
2 answers

How to use Restlet API with Android app

I have spent way too much time just trying to figure out how to use a restful API. There is a lot of information online on how to use the service after it has been implemented but very little in terms of how to actually start to use the services. I…
subcan
  • 2,021
  • 2
  • 18
  • 21
2
votes
1 answer

Restlet RAML extension error

I have a project using Restlet 2.3.1 (JSE). We are using maven as per the Restlet website: 2.3.1 maven-restlet Public online…
tarka
  • 5,289
  • 10
  • 51
  • 75
2
votes
2 answers

How to register Jackson Jdk8 module in Restlet

Is it possible to register the jackson-datatype-jdk8 module in the Restlet org.restlet.ext.jackson extension package? I need to take advantage of the new Optional feature. My guess is that it should be accessible through the converter services…
tarka
  • 5,289
  • 10
  • 51
  • 75
2
votes
1 answer

Restlet in OSGI can not find com/sun/net/httpserver/HttpHandler

I am trying to use Restlet in embedded OSGi environment. I have added the org.restlet.jar version 2.3.0 in the class path of my restlet test bundled. But it kept giving me the following error. java.lang.NoClassDefFoundError:…
Excite
  • 484
  • 1
  • 5
  • 19
2
votes
1 answer

Reading config files within Web-INF in RESTLET

I'm trying to read a config file placed inside the root path of WEB-INF. The application is using RESTLET framework. I read in the official RESTLET doc that its possible to read files via a WAR connector ("war:///WEB-INF/web.xml") using…
Srikanta
  • 1,145
  • 2
  • 12
  • 22
2
votes
1 answer

Restlet: How can I retrieve DTO with setting custom MediaType?

How can I send GET request for entity with custom MediaType? For example I want to retrieve MyUserDTO and set MediaType to application/user+yml. For now I have two separated actions. I can retrieve entity: resource.get(MyUserDTO.class); and can…
barbara
  • 3,111
  • 6
  • 30
  • 58
2
votes
1 answer

Unresolved `restlet` sbt dependency

I am trying to add the blueprints-sail-graph (located here) dependency via sbt, and it is having trouble resolving one of the sail dependencies. I am new to Java/Scala development and will really appreciate your help! The following is my build.sbt…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
2
votes
1 answer

Android Restlet framework - Get list of the Files and download file

I have in my app Restlet server and If I open the server address in the browser then the server should return list of files in some folder and If the user click on the file then it should download the file. I looked at this tutorial. Part 6 Serving…
Pepa Zapletal
  • 2,879
  • 3
  • 39
  • 69
2
votes
1 answer

Trying to make a login authentication page using Restlets on Google App Engine

I am currently trying to use a REST interface to create a login authentication service in the Google App Engine. After a bit of searching around, I decided I would use Restlets, and have managed a static string to deploy to the GAE, but as I am…
1 2
3
15 16