Tagged Questions
1
vote
0answers
36 views
When to use Restlet router v. Component with multiple routes
I've created multiple routes using this code with components:
Component component = new Component();
component.getServers().add(Protocol.HTTP, port);
...
0
votes
1answer
68 views
How to get HttpServletResponse object in restlet for GAE BlobStore serve
I'm using Restlet with GAE, and the GAE Blobstore API requires a HttpServletRequest object for uploading blobs and a HttpServletResponse object for serving them. Is there any way to get the ...
2
votes
1answer
101 views
How can I pass information from a servlet filter into a Restlet ServerResource subclass?
In a Jetty-hosted webapp, I use a servlet filter to pull information out of URLs and sometimes route requests to non-Restlet servlets. For Restlet servlets, I want to be able to pass information to ...
0
votes
0answers
125 views
Installing RESTlet plugin into Eclipse
I wanna install it as a plugin so that I can create Eclipse projects that automatically build war files with RESTlet apps in it.
Incredibly, both http://www.restlet.org/documentation/2.1/ and ...
0
votes
0answers
134 views
Nested URL-pattern in the web.xml in Java Servlet [closed]
My application is based on the Java Servlet. We used Restlet based framework.
we want to redirect all URI starts with /api/v1/* to Restlet Resource. I have following statements in the web.xml.
...
0
votes
0answers
84 views
Backbone History Push State with Google App Engine
My application is Backbone Single page App. It used Google App enginen as backend and RestLet Framework. It uses history push state for user friendly URL.
http://example.com/post/:id.
ABove link ...
0
votes
2answers
345 views
Create a Servlet Web application for Restlet
So I have been trying to learn the Restlet framework. The first tutorial is to create a simple RESTful resource and run it. The tutorial is short and easy until I get to the section
Run in a Servlet ...
0
votes
1answer
174 views
Restlet css and javascript files
WebContent
- resources
- css
- style.css
WEB-INF
- index.html
public synchronized Restlet createInboundRoot() {
Router router = new Router(getContext());
...
0
votes
2answers
530 views
Preventing Tomcat from appending charset to binary content types
We have a Restlet based service that returns the following response:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1, Restlet-Framework/2.0.7
X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: ...
2
votes
2answers
805 views
Using Freemarker with Restlet 2.0 in a Java EE server
I'm a bit confused with what is written in the documentation(s) for Freemarker and Restlet's freemarker extension.
Here's the situation: The restlet engine serves an HTML representation of a resource ...
0
votes
1answer
842 views
Any tutorial on Restlet with GWT and Tomcat
Do you know any tutorial on Restlet with GWT and Tomcat?
The official tutorial is for Restlet, GWT and App Engine. However, I wonder how to use Restlet RPC with GWT and Tomcat Servlet (I think Restlet ...
4
votes
1answer
1k views
Java accessing ServletContext from within restlet Resource
I am using Tomcat server in java and wanted to be able to access the ServletContext from the restlet Resource in order to access my cached DataSource object (to pool mysql connections). ...
0
votes
2answers
1k views
Configuring web.xml for webservices and servlet
I am new to Restlets. Trying to configure the web.xml (on JBoss). I have 2 entries, one for a servlet (got nothing to do with webservices) other for webservices, using Restlet. Here are the entries..
...
0
votes
2answers
728 views
RESTlet startup initialization deprecated?
I'm trying to use the restlet.org library to build a RESTful web interface, and I've noticed that unlike it's servlet counterpart, it has no complement to GenericServlet.init().
Short of building ...
2
votes
2answers
2k views
How To Read Context Parameters From a Restlet?
When using Restlets, how can I read configuration parameters passed in through web.xml? With servlets, context-param can be used. How do I read context parameters from within a Restlet?