RE: Hanging StreamServerHelper stop() after serving huge XML files

2009-08-27 Thread webpost
Thank you so much for analyzing the problem! Calling the exhaust() method works for me and allows waiting a bit before switching to version 1.1.6. Regards, Martin > Hi Martin, > > Thanks for reporting your issue with a reproducible test, that helps a lot. > > I was able to reproduce the hang

Is mailing list workign properly ?

2009-09-01 Thread webpost
Seems there's some problems with this mailing list. I've posted few days ago some topics to gmane.comp.java.restlet and they still haven't appeared. I also was trying to post directly to Nabble site, there was success but my topics haven't appeared at tigris site. --

How to set Http header authorization

2009-09-01 Thread webpost
Hi. I started trying out the restlet library just today, and I feel like I'm hitting a brick wall when it comes to the http header "Authorization". The webservice I'm trying to write a client for, is secured by creating a signature based on some shared secret between client and service. This s

url encoded string in the path

2009-09-01 Thread webpost
I have a string like this FtDF91VSX/7AN6C39k51ZV510SW/ot6SIGstq8XGCcHfOfHbZOZLUD4u+GUNK0bBawVZ4GR5TgV7PtRbF+nm9abYJN6AWycdj9J6CLyU4D7Zou36KEjkel+0LtlGGhFPVrCvpBuqPy8V8o5IZ9tDys0Py6sXXAtEVbXBYeRYzOvIBzOZkIviIyceVCU+lYv/h9k7Fhlb1JGtKUCj3ZDg/vJ1Co7dOC1Ho3/e0Fup7k9qgTuCvZRSHcpizaEFPNLp in my url, after

how to get client ip using restlet jax-rs

2009-09-05 Thread webpost
I need to get client ip for loging in my restlet, I used jax-rs , not able to get client, please help -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2391078

url encoded string can not be used in the path

2009-09-05 Thread webpost
I have this string as authentication token : FtDF91VSX/7AN6C39k51​ZV510SW/ot6SIGstq8XG​ CcHfOfHbZOZLUD4u+GUN​K0bBawVZ4GR5TgV7PtRb​F+nm9abYJN6AWycdj9J6​ CLyU4D7Zou36KEjkel+0​LtlGGhFPVrCvpBuqPy8V​8o5IZ9tDys0Py6sXXAtE​ VbXBYeRYzOvIBzOZkIvi​IyceVCU+lYv/h9k7Fhlb​1JGtKUCj3ZDg/vJ1Co7d​ OC1Ho3/e0Fup7k

RE: Extracting POST parameters fails sporadically

2009-09-05 Thread webpost
Just as an update: I changed the Application Server (now using Jetty instead of Tomcat), and the problem is gone. So, it seems to be located somewhere in the interaction with Tomcat, or maybe even in Tomcat itself. Regards, Stefan -- http://re

RE: Re: Comprehensive Instructions for all things WADL

2009-09-05 Thread webpost
Thank you for the info. After successfully building the FirstResourceApplication for usage in Tomcat I tried to do this for WADL application. Immediately I got the problems. The web file (web.xml) I used is as follows: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLS

RE: Spring - Guard and Resolver

2009-09-11 Thread webpost
Hi I answer to my question (note the version used is 1.1) : -- web.xml org.restlet.application com.X.Y.application.mYApplication rservlet com.noelios.restlet.ext.spring.RestletFrameworkServlet targetRestle

Turn off access logging for a specific resource?

2009-09-16 Thread webpost
Hi Restlet Community, I'd like to surgically squelch access logging for just one of my Resources. I've figured out how to do this via external logging configuration, but it's a little ugly. It filters by parsing the already-formatted access log message and matching on the path. I'm able to appl

Resource Cleanup

2009-09-17 Thread webpost
Hello, I am using a router and the attach method (attach(,) for my application. My question is: when I'm finished with the resource (and I know I no longer need it), what do I do to clean up? Is it as simple as calling router.detach? or must I also delete the resource somehow so that garba

RE: Re: adding headers to response via jaxrs

2009-09-22 Thread webpost
Thanks for the response. Maybe I'm reading the code wrong, but it looks like the call to org.restlet.ext.jaxrs.internal.util.copyResponeHeaders has code that does: === HttpClientAdapter.copyResponseTransportHeaders(headers, restletResponse); HttpClientCall.copyResponseEntit

how to Router.attach() a resource object

2009-09-22 Thread webpost
hi, I am trying to do: {{{ final Router router = new Router(); router.attach("/about", new DirectToTemplateResource("about.xml").getClass()); router.attach("/contact", new DirectToTemplateResource("contact.xml")); }}} DirectToTemplateResource will return StringRepresentation of HTML according t

problem with Variant.equals in 2.0m4

2009-09-23 Thread webpost
The implementation of equals in Variant.java of 2.0m4 seems to incorrectly cast the other object as a Variant... The problem is on line 329 where it defines otherVariant. In the case where result is false, the equals method should just return false... @Override public boolean equals(Obj

RE: Problem with SpringBeanFinder in Restlet 2.0m4

2009-09-25 Thread webpost
Hi, I need this fix so I just checked out the Restlet trunk from SVN and am trying to build the project by just running ant from the build/ directory. I get the following errors regarding a missing library dependency. I am using ant 1.7 on OS-X with Java 1.6. The script eventually gets a null p

RE: Tunneling Flex

2009-09-26 Thread webpost
Hi I am a restlet newbie, i am developing a restlet(gae) app with adobe flex client. Could someone provide an example, or a link to an example, of how to use restlet tunneling please, ive searched but ive only found javadocs (http://www.restlet.org/documentation/1.1/api/org/restlet/service/Tunn

Base 64 encoding

2009-09-30 Thread webpost
Hi there, The client wants base 64 encoded representation(html) from the server for a given resource. how do i accomplish that? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2402360

OPTIONS instead of POST on GWT

2009-10-05 Thread webpost
Hi, I'm a new user of Restlet. I want to call from a GWT client a REST service running on GAE. This is my client code: Client client = new Client(Protocol.HTTP); client.post("http://localhost:4040/ping";, getXMLCourseRepresentation(),new Uniform() { @Override

TemplateFilter with Restlet

2009-10-05 Thread webpost
Hello, I am looking for an example for using the TemplateFilter class of freemarker extension. If someone has a such example, it will great for me -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2403949

RE: HTTP/1.x 405

2009-10-05 Thread webpost
Hello Jerome, I seem to be experiencing the same behavior that is described in this post while using 2.0m5. Is this expected? Based on the changelogs it seems like this should be corrected. Perhaps this is a slightly different scenario. I have a ServerResource (source code below) where the

RE: Restlet GWT: Problem with HTTP POST request in Firefox

2009-10-05 Thread webpost
Hi, I'm using Restlet 2.0 M5, and also tried with the Restlet 2.0 snapshot and I've the same problem, Firebug shows that it calls the OPTIONS method instead of POST when using compiled mode in Firefox. Any ideas? This should be fixed on M5? Thanks! --

RE: Re: Representation passed in the resource method does not have jsonobject

2009-10-08 Thread webpost
Hi Thierry, I tried the example you had sent but I am getting a 500 error when I run the example. I am using Restlet 2.0 M5. What could I be doing wrong? Its the exact sample you had posted in your message. -- http://restlet.tigris.org/ds/vie

RE: tomcat stream closed exception using first restlet examples

2009-10-09 Thread webpost
Hi I have the same error on my Tomcat 5.5 I tried using Restlet 2.0M4 but nothing change. For information it just arrive with IE (firefox, safari, opera work fine). Any idea ? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMe

RE: Client Timeout on ClientResource post method

2009-10-11 Thread webpost
I tried the code you described, however it did not set a timeout to the http connection. I am using the android version of the client (2.05m) if that matters.. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2406377

Generic reflection based RESTlet

2009-10-13 Thread webpost
A generic reflection based RESTlet framework can expose any resource (table/view/procedure/function/io/filter on io/regular expression on io/xml) in DB/OS having CRUD based UI by just refering to the name/label of the resource. So, once we create such model driven framework then we can forget ab

Moving from 2.0M3 to M5 with SpringServerServlet

2009-10-13 Thread webpost
After changing my dependencies to M5 the following warning is put out trying to call one of my resources: WARNUNG: A filter was executed without a next Restlet attached to it. I defined the mappings like this: org.restlet.application myApplication

RE: spring context - webapplication context in restlet 2

2009-10-16 Thread webpost
No, it doesn't work. I have some spring beans I exported to the servlet context. In my debugger, I can see that the context.parentContext.attributes does contain my exported beans but I can't get to them through the api. -- http://restlet.t

Restlet + GAE JSON Object Conversion?

2009-10-18 Thread webpost
Hi Everyone, I have managed to get the basic Hello World sample going using Restlet and GAE. Now I am trying to present a simple Java POJO as a service and am stuck. I'd like to use the JAX-RS version of the object conversion mechanism, but I see no examples or documentation anywhere on how to

Problems when registering a simple Restlet resource under OSGi

2009-10-20 Thread webpost
I have problems in registering even a simple resource under OSGi and get the following warning: WARNING: A response with a 200 (Ok) status should have an entity. Make sure that resource "http://localhost:8080/alias/hello"; returns one or sets the status to 204 (No content). Any ideas why this c

NEW to RESTlet, need to know how to use ServletContextAdapter in Tomcat

2009-10-20 Thread webpost
I am NEW to RESTlet and facing many problems. I have a set of Servlets running in TOMCAT environment taht I am now porting to RESTlet. I use ServletContext (an xml file) and put a number of configuration parameters there. Now I am unable to get to taht file at run time. I looked around and figu

RE: query: howto gracefully do HTTP shutdown

2009-10-20 Thread webpost
Wonderful. Thank you very much. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2409149

RE: Problems when registering a simple Restlet resource under OSGi

2009-10-20 Thread webpost
Hi Vlatko, what OSGi implementation are you using? I am an OSGi newbie and tried to get restlet 1.1.6 working with equinox, but I got stuck with some errors I didn't get handled up to now. Sadly there was no response to my post (http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMess

how to register scheme with the Restlet engine?

2009-10-21 Thread webpost
I am using Restlet Version 2.0 Milestone 5 (testing). When i try to create ChallengeResponse and set in ClientResource i get the below warning: org.restlet.engine.security.AuthenticatorUtils format WARNING: Challenge scheme SID6 not supported by the Restlet engine. Below is the code:

RE: Re: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-21 Thread webpost
Absolutely brilliant! Seems to work perfectly. Thank you so very much. I'll throw this up on the wiki so the next person doesn't have to ask the same question again. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24

RE: CLAP - restlet-jee-2.0snapshot

2009-10-21 Thread webpost
Hi, is anyone there to help? Thanks! > Dear All, > I am using the restlet-jee-2.0snapshot, > jdk5.0 on Tomcat 5.5. > > I have an application.properties file: > WEB-INF/classes/application.properties > > But I keep getting the following error: > java.lang.IllegalArgumentException: Cannot access

Restlet 2.0 Security

2009-10-23 Thread webpost
I am trying to use the restlet model for my project where the client will be making requests from browser for manipulating the objects. I was wondering what kind of security model is available to me in that case which can allow me to protect clients from viewing only public objects while priva

RE: Re: Restlet 2.0 Security

2009-10-26 Thread webpost
Let me elaborate more about the my project. We are trying to build a content mngt system where there will be two fronts. 1. will be actual cms app which is only accessible to the administrators 2. the public view site which is available for all web users As cms and public view site both can have

Handling "100 - Continue" response

2009-10-26 Thread webpost
I'm using Restlet 1.1.5 to make POST requests to a C# web service. I post an XML message in the body of the request, and then the service sends a response that contains an XML message that I need to parse. It's working fine most of the time, but when the body of the request is too large, I don

Data services getting metadata error

2009-10-27 Thread webpost
Hello, I'm using restlet-jse-2.0m5 (under JRE 1.5.0_06) to generate classes with the following code : public static void main(String[] args) { String[] arguments = { "http://localhost:2870/Orders.svc";, "c:\temp" }; Generator.main(arguments);

RE: Re: Handling "100 - Continue" response

2009-10-28 Thread webpost
Hi Jerome, I was able to get it working using the HttpURLConnection extensions. Thanks for the suggestion. Mike P. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2412186

RE: Re: Data services getting metadata error

2009-10-29 Thread webpost
Sure, here is the file, attached. Regards, Vincent (from Paris ;) ) http://schemas.microsoft.com/ado/2007/06/edmx";> http://schemas.microsoft.com/ado/2007/08/dataservices"; xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; xmlns="http://schemas.microsoft.com/ado/2006

Restlet + WebObjects (WOLips) + Tomcat

2009-10-30 Thread webpost
I am currently starting a project with WebObjects and Tomcat. One of the major tasks to solve is to provide data with the RESTful architecture. I would like to use Restlet to solve this task. Is it possible to use Restlet in a WebObjects Project (WOLips)? Is there an example to use this things?

Restlet running on servlet api 2.3

2009-10-31 Thread webpost
Is there a version of Restlet that still run on the Servlet API Spec 2.3? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2413174

RE: custom authentication ??

2009-10-31 Thread webpost
After a bit more testing I have something working. I seem to have a couple simple mistakes in my last post. Instead of this: MyVerifier verifier = new MyVerifier(); guardMyApplication.setVerifier(verifier); application.setGuard(guardMyApplication); I just do this now (ignoring the verifier all t

firstResource 404 problem

2009-11-01 Thread webpost
Hi, I'm trying to run the firstResource example as a servlet but keep getting a 404. The example runs fine using a Component on localhost using Reference itemsUri = new Reference("http://localhost:8182/firstResource/items";); but when I deploy it to Glassfish2.1 and change itemsUri t

RE: Re: Data services getting metadata error

2009-11-02 Thread webpost
Thank you Jerome for taking care of this. However, I need to establish a POC between ADO.NET Data Services and Java, Restlet seems the best solution on the paper but I can't make it work. I'm following your tutorial : http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/287-restlet/288-restlet

RE: Re: RestletFrameworkServlet missing from M5 and snapshot builds

2009-11-02 Thread webpost
So, after a quick patch to the ServerAdapter class in ext.servlet, replacing references to ServletLogger with references to java.util.logging.Logger, I was able to get past this error. Unfortunately, now when I attempt to configure the SpringRouter, I get the following error: org.springframewo

RE: Restlet 1.1 and Restlet 2.0 coexistence

2009-11-02 Thread webpost
Jerome to illustrate the problem where one faces binary incompatibility, let me provide an example as well: // Uses 1.1.X of Restlet public class FooClient { private final Client client = new Client(Protocol.HTTP); public void foo() { Request request = new Request(Method.

RE: Restlet 1.1 and Restlet 2.0 coexistence

2009-11-02 Thread webpost
Jerome, sadly it is not so simple as one web app can have two separate service clients, one client that talks to a service Foo that was developed using 1.1.X and a second that talks to service Bar developed using 2.0. WebApp |_ Foo Client (talks to service Foo) uses Restlet 1.1 packages | |

Building URI for Spring MVC 3.0

2009-11-03 Thread webpost
Hi all, I am trying to build a URI to pass parameters using Restlet and Spring. I was trying to pass parameters as URI Templates like the following: @RequestMapping("/hotels/{hotelId}"). This would require me to create a request which i tried as follows: client.get("http://localhost:8080/g

RE: Building URI for Spring MVC 3.0

2009-11-04 Thread webpost
with GWT on the client side I used restlet as follows: client.get("http://localhost:8080/greet.json"+"/"+"test";, new Callback() using spring I have my controller setup as follows: @RequestMapping("/greet.*") public String list(@PathVariable String name, ModelMap modelMap) { log

problem with character slash contained in path parameter value

2009-11-04 Thread webpost
Hi, I am having following problem with RESTlet 1.1.6 (and even with the version 2 m5): if my path parameter value contains the slash (/) and even the value is URL encoded, my resource class isn't called. @Path("/supplemental/{doctype}/{entryid}") public class SupplementalResource { ...} Let say

RE: REST talk in Chicago, Nov 12

2009-11-07 Thread webpost
Wow, great to know this is happening. I'm in Chicago and wish I could make it on the 12th, but I have a prior engagement that day. Do you know if this talk will be recorded? Btw, I'm also giving a talk on REST in Chicago on December 3 at Google's offices on Kedzie. http://chigtug5.eventbrite

RE: Re: problem with character slash contained in path parameter value

2009-11-07 Thread webpost
Hi Stephan, I can't find your test class, but I have create following classes to show how I am using Restlet and the extension: import org.restlet.Context; import org.restlet.ext.jaxrs.JaxRsApplication; public class MdWebServiceJaxRsApplication extends JaxRsApplication { public MdWebServiceJ

DELETE goes to GET !!

2009-11-10 Thread webpost
Hi everyone, I have writed a simple resource that extend "ServerResource" and override "delete(Variant v)". When I do a DELETE request on this resource nothing happened. So I have overrided "get(Variant v)" and now when I do a DELETE request, the "get" method is called. I have added many breakp

RE: Restlet GWT: Problem with HTTP POST request in Firefox

2009-11-12 Thread webpost
Using GWT 1.7.0, all GET method calls work in Hosted mode and IE, but Firefox *still* uses OPTIONS. I suggest promoting this issue to blocker for the GWT version of Restlet. Using (taken from JAR manifest): Name: org.restlet.gwt Implementation-Title: org.restlet.gwt Implementation-Version: 2.0 S

RE: DomRepresentation and schema validation

2009-11-12 Thread webpost
Never mind, the problem is with the default XML parser in Java, not Restlet. I thought I had seen different behavior when using the Validator with a document that was not obtained from a DomRepresentation, but I was mistaken. -- http://restlet.

RE: DomRepresentation and schema validation

2009-11-12 Thread webpost
hi > I'm trying to validate a posted DomRepresentation and respond with an error > document that indicates which elements failed to validate. I have an > ErrorHandler set to capture the individual SAXExceptions, like so: > > Validator validator = messageSchema.newValidator(); > validator.setErr

RE: Re: DomRepresentation and schema validation

2009-11-12 Thread webpost
hi > Hi Jim, > > good! > > Best regards, > Thierry Boileau > > > > Never mind, the problem is with the default XML parser in Java, not > > Restlet. I thought I had seen different behavior when using the Validator > > with a document that was not obtained from a DomRepresentation, but I was

[RESOLVED] RE: DELETE goes to GET !!

2009-11-13 Thread webpost
Hum.. hu. I'm sorry. Now it works. The fault was in my "Application". I use Spring and I have extend "org.restlet.Application" to attach resources on the router. The attachment was done in the deprecated "createRoot()" method but this method is never called in the new version (restlet-jee-2.0m5

RE: DELETE goes to GET !!

2009-11-13 Thread webpost
Ok, Now I have retrieved the "restlet-jee-2.0m5". There was some changes since the previous version but no docs. Now it seems that my resourec is never acceeded (No logs nor system.out was displayed on my console and my breakpoints never match). Please can ypou help me to make it working ?

POST not working

2009-11-15 Thread webpost
Hi, i'm using Restlet 1.1.6 and I am new to both Java and Restlet, but have mostly had success so far over the past two months. My basic app was using only GET before, and now I wish to extend it to accept POST requests. Unfortunately I have not met with success yet. The Resource i am working

RE: Re: POST not working

2009-11-16 Thread webpost
Yes, thank you. Here is my test case. I apologize for not attaching it in my original message. It is essentially taken directly from the "first resource" tutorial yet stripped down to attempt to get it working, so I do not save an item or return a truly new identifier. The text is below and

RE: Re: POST not working

2009-11-16 Thread webpost
Being new to Java, the classpath concept is still uncertain to me... but I hope this answer covers it. >From a clean install of Windows 7, I installed the most typical package of >Eclipse for Java Developers in the default location. I installed restlet >1.1.6 from the www.restlet.org/downloads

RE: RestletGWTSimpleExample - Error while handling an HTTP client call

2009-11-16 Thread webpost
could anyone confirm running successfully the RestletGWTSimpleExample? thanks, josef -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2418609

RE: Re: POST not working

2009-11-16 Thread webpost
Thanks again, and my problem is solved. It turns out that there was a typo in the HTML form I was using to generate the POST request. So the request fell all the way through the router to my DefaultResource... and POST is not allowed by that resource. So the response I was getting was trying

RE: Re: POST not working

2009-11-16 Thread webpost
Thank you for the working test case. It ran the code you sent and it works. It is not essentially different from my own code so I am still confused about what is going on. The only thing I can think of at the moment is that your POST request is sent by a mini-client that you made for the test

RE: problem with character slash contained in path parameter value

2009-11-16 Thread webpost
Hi Stephan, thanks for your help, but that was a problem with Tomcat: it treats '%2F' as a slash. My coworker found the solution from this page: https://jira.jboss.org/jira/browse/JBSEAM-3990 Best Regards, Hoan-Vu Tran-Ho. -- http://restlet.tig

RE: Dependency injection in Restlet 2.0 with Guice

2009-11-22 Thread webpost
Hi there, I was looking for dependency injection with guice, as I found the post from Tim. The approach described there, seems to best for a standalone setup. As I'm currently developing an application using the Google AppEngine, I was looking for an integration with a servlet based setup. I de

Web Hooks

2009-11-22 Thread webpost
how can i use Web Hooks with Restlet? Thank you. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423068

Expires Header and Conditional GET with status Not Modified

2009-11-22 Thread webpost
I have written a Restlet Web Service and a (Restlet) Client and my own Cache solution on the client. The server is very simple, only example code from restlet.org My client does a GET for a resource, the server sends back a Representation and the "Expires" Header is set. My client use the Repre

RE: Re: Web Hooks

2009-11-23 Thread webpost
I have a client and a server. If an event happend on the server, i want to send a notification to the client. I don't want to poll the server. I don't want to use HTTP Push or Long Polling. information: http://webhooks.pbworks.com/ or http://webhooks.pbworks.com/RESTful-WebHooks

Client API for HTTP_DIGEST Auth in 2.0M6

2009-11-23 Thread webpost
I just migrated our client and server from 2.0m3 to 2.0M6. All of the changes were fairly easy to figure out except those related to adding ChallengeResponse for HTTP_DIGEST authentication. Our code was based upon the example in the user guide (which is still the example in today's version. W

RE: Re: Expires Header and Conditional GET with status Not Modified

2009-11-23 Thread webpost
Hello, yes, i know. The behaviour, you described, works fine, but I want more. I want to send back always a "Expires" Header! If the client does a Conditional GET, the server can send back a new representation with a new "Expires" header OR say "Not Modified" without "Expires" header, but if i

RE: RE : Client API for HTTP_DIGEST Auth in 2.0M6

2009-11-23 Thread webpost
Jerome, Thanks for the reply. Unfortuanately, I already have org.restlet.ext.crypto.jar on my classpath. Do you have any other ideas? Thanks Rich > Hi Rich, > > You should add the org.restlet.ext.crypto.jar to your classpath. > > Cheers, > Jérôme > > Le 23 nov. 2009, 7:20 PM, a écrit :

Restlet 2.0 Best Practices

2009-11-23 Thread webpost
Hi, I am evaluating Restlet 2.0 vs. Spring 3.0 for a new project that is starting soon. I have done a lot of reading on the website and have written a couple of small programs with Restlet 2.0M6 to get the feel for it. I am looking to hear from people who have been using it into production abou

FirstResource Example - What is Item

2009-11-23 Thread webpost
>From the FirstResource example I can't resolve 'Item'. Should this be >specified from one of the imports? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423562

RE: Re: RestletGWTSimpleExample - Error while handling an HTTP client call

2009-11-24 Thread webpost
hello thierry, thanks, i just tested the current example code and ... it worked!! ;) maybe it is because this time i didn't use the ant-script (it is missing this time), but directly imported the eclipse project file. well unfortunately i ran into troubles again. on the server-side i am using t

RE: Re: RestletGWTSimpleExample - Error while handling an HTTP client call

2009-11-24 Thread webpost
i just saw, that internally an exception is thrown: Internal Connector Error (1002) - The URL http://localhost:1234/messages is invalid or violates the same-origin security restriction this seems to be the problem. it might not be specific to restlet, anyways maybe you know a way to bypass the

RE: Re: FirstResource Example - What is Item

2009-11-24 Thread webpost
I was coding it from the documentation web page: http://www.restlet.org/documentation/2.0/firstResource It seems to be missing the Item.java class. I figured it out though (just a simple class with a Name and Decription fields) and associated gets/sets and constructors. All is working now. T

RE: Re: RE : Client API for HTTP_DIGEST Auth in 2.0M6

2009-11-24 Thread webpost
Thierry, Thanks for the update. After restructuring to match your new example, everything almost worked. I was still missing the DigestHelper. But I found a post about Engine.setUserClassLoader which fixed that (I'm running in an eclipse plugin/OSGI environment). THe changes really simplify u

Setting HTTP Headers without using a Representation

2009-11-25 Thread webpost
I want to set the "Expires" Header in a Response WITHOUT a representation.(because after conditional GET with Status.REDIRECTION_NOT_MODIFIED (304) there is no Representation. Setting the header with getResponseAttributes.put(...) gives me a WARNING, that Expires Header must be set with Restlet

EncodeRepresentation in Restlet 2???

2009-11-26 Thread webpost
where is the com.noelios.restlet.application.EncodeRepresentation (exists in Restlet 1) in Restlet 2 ?? or how do i use compression (e.g. gzip) in Restlet 2? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2424641

Automatic generation of documentation for Restlet based HTTP APIs

2009-11-27 Thread webpost
Hello, Is there a recommended way of automatically generating documentation for Restlet based HTTP actions not unlike what JavaDoc does for regular Java APIs? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2424943

JAXRS - methodNotAllowed vs resourceMethodNotFound?

2009-12-06 Thread webpost
Hi, I have a resource say, GetOnlyResource which only supports the get GET method. When my client calls the GetOnlyResource with PUT method there's no hooks for me to handle this Exception. I was under the impression that the above situation would be resourceMethodNotFound and would subsequent

Object exchange between Android and AppEngine

2009-12-06 Thread webpost
Hi, I have my business model on AppEngine and now like to use Android as a client to communicate via http. I'd like to keep my beans structure and simply transfer objects between client and server and then call servlets for method calls. a) Do you think this is a good approach? (Or are there n

GAE 2.0m6 org.restlet.ext.httpclient.jar broken

2009-12-10 Thread webpost
Hello, I'm using org.restlet.ext.httpclient.jar in my GAE project only for localhost unit testing (via http localhost calls). In 2.0m5, since the org.restlet.ext.httpclient.jar was not included in the gae zip, I was using the one in jse or j2ee (don't remember). It was working well. In 2.0m6,

RE: Re: GAE 2.0m6 org.restlet.ext.httpclient.jar broken

2009-12-11 Thread webpost
Thanks for your work! Sebastien -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2429767

Asynchronous Request Processing

2009-12-13 Thread webpost
Hey all, So I've been searching for some information on Restlets support for async requests and am unsure of where Restlet is in this regard. Restlet states in its features that it supports "Asynchronous request processing". What does this mean exactly? To me I thought this means it has the abi

Component() constructor broken in M6?

2009-12-14 Thread webpost
I just started experimenting with Restlet and I am getting a StackOverflowError on new Component(), the first statement in FirstResourceServerMain... I switched back to m5 and the StackOverflowError disappeared. - Rob. -- http://restlet.tigri

GWT-RESTLET: API to check the current browser instance is already "basic authencated".

2009-12-15 Thread webpost
Hello, I am using RESTLET-GWT client to talk to restlet backend using basic authentication. It's working fine. I am looking for an api in GWT-RESTLET client side to check if the current browser is already authenticated, based on the I would provide a custom-popup to the user to provide the cre

FirstStepsApplication as standalone java app doesnt work

2009-12-15 Thread webpost
Hey everybody, I tried the firstSteps-tutorial in both ways - in a servlet container and as a standalone Java application. Inside the servlet container everything works fine. The pure java application doesn't work.I downloaded the source at http://www.restlet.org/documentation/2.0/examples/fi

how to set up client certificate in restlet 1.1.4 for HTTPS?

2009-12-16 Thread webpost
Hi, I'm trying to use the Simple HTTPS library to set up a HTTPS connection with mutual PKI authentication, after successful server-only authentication. For the server-only authentication, I created a JKS keystore and modified the client/server samples in src\org.restlet.example\org\restlet\ex

RE: how to set up client certificate in restlet 1.1.4 for HTTPS?

2009-12-16 Thread webpost
I found a way to work around this, after some searching and testing. The workaround is to use the SAME password for both keystore and its key, i.e. keytool -keypass and -storepass shoud have the same arg. After that, the following code will work on the client side (there is no change to the ser

RE: Re: need some help with my project design

2009-12-19 Thread webpost
I figured out the problem: It is called cross site issue :) At the moment my project looks like this: http://dl.dropbox.com/u/1266822/problem.jpg I tried to do an ajax request to an absolute url (the dyndns url thats routes back to my pc) but this doesnt work, because it is a cross site request

RE: Re: need some help with my project design

2009-12-19 Thread webpost
Hi, no I used the newest version. Firebug also says that it is an OPTION request. (see here: http://dl.dropbox.com/u/1266822/firebug.JPG ) Could be a jquery problem? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24

RE: Re: need some help with my project design

2009-12-19 Thread webpost
Hey Thierry, thanks for your answer! I tried to receive the text from the hello world example with ajax. The js code (using jquery): $.ajax({ type: "GET", url: "myurl/hello", data: "", success: function(data){ $("#ajaxcontent").html(data);

simple usermanagment

2009-12-21 Thread webpost
hey! i want a simple login with username & password. the user has his own directory on the server, where files are stored. is there a good tutorial on that? i want it as simple as possible :) thank you very much! -- http://restlet.tigris.org/

Registering a custom authentication scheme

2009-12-22 Thread webpost
Hi Guys, I've trolled the forums and searched the wiki, but i've yet to find anything substantial on this. Preferably looking for an example of how one goes about writing one's own security scheme and plugging this into restlet. Does anyone have a basic example lying about of this? Right now i'

RE: Registering a custom authentication scheme

2009-12-22 Thread webpost
Hi KD, The Restlet Security schema is highly extensible and very adaptive. Kudos to the team. You can easily write your own authentication scheme. We have a 'Component' which has several 'Applications' in it. We needed custom authentication and authorization for one of these applications. This

<    1   2   3   4   5   6   >