Questions tagged [restlet]

Restlet Framework is an open source framework for Java (and JavaScript) to expose and consume RESTful web APIs. It has editions for Java SE, Java EE, OSGi, GAE, GWT and Android.

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, HTTPS
  • SMTP, SMTPS
  • POP3, POP3S
  • FTP, SDC
  • FILE, RIAP, WAR pseudo protocols
  • XML, JSON, Atom, OData and WADL media types
  • etc.

For additional details:

1232 questions
-1
votes
1 answer

Send lastmodified/Etag/Cache headers in restlet for GET request

I couldn't find simple example that sends lastmodified/Etag/Cache headers in restlet for GET requests. Thanks
Vjy
  • 1,956
  • 3
  • 18
  • 31
-1
votes
0 answers

How to disable the folding http headers

How to disable the folding of http headers fields with JDK http apis ( like java.net.URLConnection ), restlet jar api request. PS: General info from https://en.wikipedia.org/wiki/List_of_HTTP_header_fields regarding folding. General format The…
GKM
  • 19
  • 3
-1
votes
1 answer

How to convert a servlet request to a JSON request

I had an application that is running with servelets. I want to test that application using REST services or POSTMAN. So, I want to know, whether it could be possible to convert a servelet application's request and response into JSON for testing it…
E V N Raja
  • 80
  • 3
  • 17
-1
votes
1 answer

HttpServletResponse won't stream bytes to client

I've been trying to figure out why the Servlet won't return the bytes to the client with this code (although the bytes is read based on the logs): Redirector redirector = new SelfInjectingRedirector(getContext(), targetPattern, …
quarks
  • 29,080
  • 65
  • 239
  • 450
-1
votes
2 answers

best approach to consume third party restful webservices with jboss fuse

I am using JBoss FUSE for integration. I am new to it. I want to consume/call third party restful webservices. Please can anyone tell me what will be the best approach to create endpoint (like cxf, restlet, etc.). Also if there is any working…
Java User
  • 21
  • 2
-1
votes
2 answers

How to convert ResultSet to json object in Restlet framework?

I have a ResultSet object as a result of request to a table: ResultSet result = stat.executeQuery("SELECT * FROM Greetings"); I need to return it to browser in json format. Is it possible to use some Restlet tool to convert the variable of…
vitaliy4us
  • 253
  • 1
  • 12
-1
votes
2 answers

Java Restlet gets 503/504 error, stops running

I have a Java program set up to make a request to a server every second, using Restlet, but every week during the same time they do some maintenance for about a minute within the hours that I'm running my program. As a result, I get a couple of 504…
Beez
  • 361
  • 4
  • 6
  • 16
-1
votes
1 answer

Remove '@class' in XStream for Java primitive types

I have this field in a POJO that is serialized into JSON: @XStreamAlias("tags") List tags; My problem is that the output looks like this: "tags": [ { "@class": "linked-list", "string": [ "test", …
quarks
  • 29,080
  • 65
  • 239
  • 450
-1
votes
1 answer

Get IPv4 address of client

I have an android app that makes a simple REST call to my backend server (Google App Engine [GAE]). On my GAE, I am trying to extract the IPv4 address of the connection and I always get a IPv6 address. I'm using this to extract the ipAddress. In…
-1
votes
1 answer

unable to compile samples obtained from Restlet.org

When I try to compile the sample using sources.zip found at http://www.restlet.org/documentation/1.1/firstSteps Here is the detail C:\mwb\srvr\firstSteps10>javac -classpath "C:\Program Files\Restlet Framework\Edition Java…
Abhi
  • 2,758
  • 1
  • 22
  • 37
-1
votes
1 answer

Restlet using Get and Post Methods

Hiiii, I am developing a small app using Restlet 2.0 API.. I want just to know how to create a URI which accepts more than one parameter for insert query. Ex: router.attach("/{patient}/insertpatient", insertpatient); I want to insert all the info…
-2
votes
2 answers

How to get the response data from cloud to string

I want to get the response to a string variable from the data from the cloud. ClientResource cr = new ClientResource("http://localhost:8888/users"); cr.setRequestEntityBuffering(true); try { try { …
Viz_Kid
  • 85
  • 1
  • 1
  • 7
-2
votes
1 answer

Jersey 2.x Restlets - apply governance control (like limit on number of requests allowed for restlet resource)

I have been reading the Jersey 2.17 user guide for possibities around applying governance limits on the exposed RESTLet resources. I am particularly interested in applying limits on incoming requests for a particular Jersey RESTLet resource for a…
-3
votes
1 answer

Write own Java logic on https://restlet.com

I tried learning things via tutorials on https://restlet.com but unable to figure out whether can I write my own custom Java logic on https://restlet.com API? All it allows is to download generated Java code. Appreciate if you can guide/help.
Nikhil Joshi
  • 801
  • 1
  • 8
  • 31
-4
votes
0 answers

How to fetch list of items from netsuite using restlet script

How to fetch list of items, inventory, catalog and category from netsuite via restlet api script.Im unable to fetch can anyone please help me in this ??
1 2 3
82
83