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 "trailing slash" behavior

I have a nice restlet application whose component attaches the following: cmp.getDefaultHost().attach("/mycmd",ProcessReq.class); And when the request URL is http: ///mycmd/, the ProcessReq class returns an index.html that has links…
Factor Three
  • 2,094
  • 5
  • 35
  • 51
0
votes
1 answer

Using Restlet with Apache2

I'm a newbie here..I'm trying to build a simple single page web application for now I am using apache 2 http server to serve the front end stuff(html/js/css/imgs..) and using a jar that uses Restlet2.0 on port 8015 to provide APIS for Ajax calls…
Matthew Yang
  • 605
  • 1
  • 13
  • 23
0
votes
0 answers

Restlet Server not returning proper responses

I have a ServerResource object that is running within a component. Its purpose is to act in many ways like a basic HTTP server. It uses a Representation to acquire a file and return the file's contents to a browser. The active function for this…
Factor Three
  • 2,094
  • 5
  • 35
  • 51
0
votes
1 answer

Thread safety AND static subclasses

To Start: I am a novice in opensource software. (Apache-Tomcat / Java / Restletframework) Here is my question: I am building a application with the Restlet framework. I do not know if my coding/methody is Thread-safe!? Can somebody tell me if I am…
0
votes
2 answers

An interesting Restlet Attribute behavior

Using Restlet 2.1 for Java EE, I am discovering an interesting problem with its ability to handle attributes. Suppose you have code like the following: cmp.getDefaultHost().attach("/testpath/{attr}",SomeServerResource.class); and on your browser…
Factor Three
  • 2,094
  • 5
  • 35
  • 51
0
votes
2 answers

Restlet 2.1 How do you change the logging to log4j

I have a Restlet webservice and I want to remove the debug statements in the log that Restlet creates when a request is made. Currently I am using this code to redirect the Restlet logging to my log file instead of console output by doing…
ColinMc
  • 1,238
  • 3
  • 16
  • 33
0
votes
1 answer

odata, Noclassdeffounderror

Below is the code of android trying to retrieve data using odata. OdataWebNorthwindModelService is name of proxy class(auto generated)... I followed http://weblogs.asp.net/uruit/archive/2011/09/13/accessing-odata-from-android-using-restlet.aspx for…
user98239820
  • 1,411
  • 2
  • 16
  • 30
0
votes
1 answer

how to develop my own protocol

In order to experiment with a new routing algoritm I've been developing, I would like to implement my own communication protocol within the Restlet framework (e.g., to replace the standard HTTP). Could you tell me how to extend the framework in…
mauro
  • 1
0
votes
1 answer

Disable Restlet loggings

How to disable Restlet loggings to catalina.out, I tried to set Logger "org.restlet" level to SEVERE in RestletApplication but it didn't work. static { // Install logging bridge (JUL -> LOG4J) SLF4JBridgeHandler.install(); Logger logger…
Arouri
  • 48
  • 5
0
votes
1 answer

netbeans 7.2 gives option to run but not to deploy

I have create a webservice in netbeans. When I right-click on the project, I see the run option but not the deploy option. When I pick up a simple Hello World example on the Restlet website, theirs shows both deploy and run options. The difference…
kasavbere
  • 5,873
  • 14
  • 49
  • 72
0
votes
1 answer

Reading JSON thru web service into POJOs annotated for Hibernate

I am reading the following json through a web service. Is there a way to read the json into three appropriate POJOs? The POJOs are generated by hibernate and are used to communicate to the database. Basically I need to read the person json into a…
kasavbere
  • 5,873
  • 14
  • 49
  • 72
0
votes
1 answer

How to add a filter in in the "middle of the URL" using Restlet?

I have the following routes: /projects/{projectName} and /projects/{projectName}/Wall/{wallName} Now I'd like to have that all GETs be allowed but PUT, POST, DELETE should only be allowed by project members i.e. users members of that project. I…
PhD
  • 11,202
  • 14
  • 64
  • 112
0
votes
1 answer

Path directory in Tomcat using Restlet

I have my restlet.Component deployed in Tomcat, in this, i read a configuration file of my app: this.properties.load(new FileInputStream("config/conf.properties)); I have got a java.io.FileNotFoundException My webapp structure is: /mi-webapp …
Kalamarico
  • 5,466
  • 22
  • 53
  • 70
0
votes
1 answer

Setting a custom Content-Range Header using Restlet

I'm using restlet 2.0.11 to provide data for a Dojo-based web application via a REST-Web-Interface. According to the documentation of dojo, pagination is realized using the "content-range" header of HTTP, thus dojo expects a header like:…
Robert Metzger
  • 4,452
  • 23
  • 50
0
votes
2 answers

How to implement server confidentiality HTTPS in Restlet 2.0.0

I am trying to implement Rest web service(Server) with https protocol. I am getting Warning while starting server: WARNING: No available server connector supports the required protocols: 'HTTPS' . Please add the JAR of a matching connector to your…
vikas jha
  • 1
  • 1
1 2 3
15
16