Re: JDBCClient

2006-11-23 Thread thierry boileau
with a REST approach. This refactoring will be done in a few days. So, you can wait for this or ask for a patch of the current behaviour. Feel free to tell us your needs. Best regards, Thierry Boileau On 11/23/06, Kyrre Kristiansen [EMAIL PROTECTED] wrote: Hello, again. I think I might have found

Re: Restlet 1.0 beta 21 released

2006-11-26 Thread thierry boileau
Hello Piyush, you're right, the correct download link is : http://www.restlet.org/downloads/restlet-1.0b21.zip Best regards, Thierry Boileau On 11/26/06, Piyush Purang [EMAIL PROTECTED] wrote: hi Jerome, shouldn't that be b21 in the download link?

Re: Bug in Reference.getHostPort() ?

2006-12-06 Thread Thierry Boileau
Jeff, I've downloaded the beta21 and reproduced the issue. We will quickly fix it. Thierry On 12/6/06, Thierry Boileau [EMAIL PROTECTED] wrote: Hello Jeff, I don't reproduce the issue. I copy/paste the demo code with port 80 in my Eclipse JDE and can test the demo with no NPE. I'm trying

Re: Bug in Reference.getHostPort() ?

2006-12-06 Thread Thierry Boileau
Hello Jeff, can you get the latest source code from SVN and tell us if it fixes the problem? Best regards, Thierry Boileau On 12/6/06, Thierry Boileau [EMAIL PROTECTED] wrote: Jeff, I've downloaded the beta21 and reproduced the issue. We will quickly fix it. Thierry On 12/6/06, Thierry

Re: Returning 406 when serving text/css + en-(upper case country)

2006-12-08 Thread Thierry Boileau
Hello Jeff and Andrew, you're right, there was a bug due to case sensitive comparison (though it should not be, cf RFC 1766 http://www.faqs.org/rfcs/rfc1766.html) . This has been fixed in SVN. Jerome will update the restlet site as soon as possible. Best regards, Thierry Boileau On 12/8/06

Re: Returning 406 when serving text/css + en-(upper case country)

2006-12-08 Thread Thierry Boileau
available at: http://www.restlet.org/downloads/current.zip Let us know if that fixed the issue with IE7. Best regards, Jerome -Message d'origine- De : Thierry Boileau [mailto:[EMAIL PROTECTED] Envoyé : vendredi 8 décembre 2006 15:25 À : discuss@restlet.tigris.org Objet

Re: Returning 406 when serving text/css + en-(upper case country)

2006-12-08 Thread Thierry Boileau
Hi again, the current algorithm behaviour respects strictly HTTP as you said, Jerome. I had a look to the Apache implementation of content negotiation and they faced the same issue. They decided to enter another parameter allowing (or not) the Apache server to provide a document that does not

Re: Handler.handle*() needs Allow header setting

2006-12-09 Thread Thierry Boileau
Hi John, you're right, something is missing. The implemented handlers have to update the ALLOW header in the response each time they are requested but are unable to do so. I'm not sure the Rest API should change (Handler class is part of the Rest API) but at least the implementation should (all

Re: Handler.defaultHandle() 501 vs 405?

2006-12-09 Thread Thierry Boileau
would like to ask the following question : if the response status is 405, is it possible to define the allowed methods for the resource though the resource cannot be handled? I wonder if status 404 should be used instead in this case. Regards, Thierry Boileau On 12/9/06, John D. Mitchell [EMAIL

Re: Colons as characters in relative part of the URI

2006-12-13 Thread Thierry Boileau
); Handler trace = new Trace(); router.attach(/trace, trace); You will get 2 attributes : PID and VALUE. I hope it will helps Thierry Boileau PS : This behaviour will change in a very short time (end of the week) because Jérôme is updating this part of the project. As mentionned earlier

Re: Tutorial, cleanup

2006-12-20 Thread Thierry Boileau
Dave Pawson a écrit : Section 3. Unable to run twice; Error reported, java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at

Re: Testing Application problems

2006-12-20 Thread Thierry Boileau
Hello Alex, I think that the application need to be instantiated at least with the container's context (or maybe with the container itself - I don't remember if such constructor existed in b20). Container con= new Container(); con.getServers().add(Protocol.HTTP,TEST_PORT);

Re: New committer - Thierry Boileau

2006-12-22 Thread Thierry Boileau
Thanks Yuri!! Yuri de Wit a écrit : Congratulations, Thierry. Jerome Louvel contact at noelios.com writes: I'm pleased to officially announce that Thierry Boileau is a new committer on the project.

Re: Using Virtual Hosts

2006-12-27 Thread Thierry Boileau
Hi Sean, I will not give you a lot of explanation but a single example taken directly from the restlets. The following sites are served from only one machine : 1- www.restlet.org 2- search.restlet.org The first one serves static files such as the Restlet API javadocs, the Noelios Restlet

Re: Bug in Directory handler

2007-01-02 Thread Thierry Boileau
Hi Sean, thanks for the report, your fix has been integrated in svn. Best regards, Thierry Jerome Louvel a écrit : Hi Sean, Thanks for the report, I was able to simply reproduce it by creating a test directory: http://www.restlet.org/downloads/test/ We'll integrate your fix to 1.0 RC2.

Re: Multipart Form Media Type Problem

2007-01-02 Thread Thierry Boileau
Hi Randy, Thanks for the report. The issue 236 has been created in order to answer your question. Best regards, Thierry Randy Layman a écrit : When I send a multipart form upload to a restlet, I'm trying to verify that I received an actual multipart upload with: if

Re: Adding http headers to a Request

2007-01-05 Thread Thierry Boileau
Hello Alex, I think that the component must not take directly in charge the request. You need to create a real HTTP client, such as follow : Client client = new Client(Protocol.HTTP); client.handle(request, response); Best regards, Thierry Alex Combs a écrit : I am trying to

Re: StringIndexOutOfBoundsException

2007-01-19 Thread Thierry Boileau
Hello Vincent, the SVN repository has been updated with the fix! Thanks for your report. Best regards, Thierry Boileau Jerome Louvel a écrit : FYI, I have moved this thread into a bug report at: http://restlet.tigris.org/issues/show_bug.cgi?id=249 Thanks for reporting it Vincent. Best

Re: SSL problems

2007-01-19 Thread Thierry Boileau
, because of NullPointerExceptions that seem to be badly managed. - if I provide right passwords, the server hangs, but I don't know if it is the consequence of my request, of if the server is stille starting. Best regards. Thierry Boileau Nick a écrit : Jerome, I only get this problem

Re: Problem with multiple virtual hosts

2007-01-24 Thread Thierry Boileau
I don't intend to make any excuses for my inability to read JavaDoc correctly, but this does beg a question. Should Directory and FileRepresentation constructors be consistent since they are dealing with similar things. Should they both take a URI or should they both take a File/path? I

Re: PatternSyntaxException when a variable is used more than once in a template

2007-01-25 Thread Thierry Boileau
Hello Vincent, thanks for reporting this issue. Actually the capturing index starts from 1, not 0. Best regards, Thierry Boileau Vincent a écrit : When you reuse a variable in a template (e.g. router.attach(/{p1}/{p1}/foo,MyResource.class);), you get this exception when you try to GET

Re: When Query is null (URL parameter parsing/escaping error?)

2007-01-25 Thread Thierry Boileau
Hello David, Are you using the AsyncWeb connector? Best regards, Thierry Boileau David Rauschenbach a écrit : I've been unable to access parameters from my Handler. Request.getResourceRef().getQuery() returns null, and Request.getResourceRef().getQueryAsForm() returns a Form with a null

Re: When Query is null (URL parameter parsing/escaping error?)

2007-01-25 Thread Thierry Boileau
the original query string. A mail has been send to the AsyncWeb team. Best regards, Thierry Boileau David Rauschenbach a écrit : I've been unable to access parameters from my Handler. Request.getResourceRef().getQuery() returns null, and Request.getResourceRef().getQueryAsForm() returns a Form

Re: RC4 bug in create*

2007-01-29 Thread Thierry Boileau
Jérôme, I noticed also that the style tag seems to be deprecated and should be replaced by xslt in macrodef checkstyleModule. Thierry Hi Thierry, I tried to build from the SVN repository and got the following error: [checkstyle] Running Checkstyle 4.2 on 84 files [style] DEPRECATED -

Re: Context logging removed?

2007-01-31 Thread Thierry Boileau
Hello Alex, the logService has been moved to the Component class (i.e. this service is shared between all applications of the component), and the getter/setter is called get/setLoggerName. Best regards, Thierry Boileau Hi, I'm upgrading my codebase from beta 20 to RC4, and I've noticed

Re: RC4 bug in create*

2007-01-31 Thread Thierry Boileau
The deprecated tag has been removed. Best regards, Thierry Boileau Jérôme, I noticed also that the style tag seems to be deprecated and should be replaced by xslt in macrodef checkstyleModule. Thierry Hi Thierry, I tried to build from the SVN repository and got the following error

Re: [patch] Guard.authenticate refactor

2007-02-01 Thread Thierry Boileau
Wow! Thank you very much Valdis! Do you mind if the delegate method is renamed to checkSecret? Best regards, Thierry Boileau I've attached a simple patch for org.restlet.Guard which breaks out the checking of identifier.equals(secret) to a separate method. We use Acegi Security

Re: Response status codes

2007-02-13 Thread Thierry Boileau
CLIENT_ERROR_FAILED_DEPENDENCY + 507 SERVER_ERROR_INSUFFICIENT_STORAGE Thanks for this report. The javadocs will be updated soon. Best regards, Thierry Boileau Chuck Hinson a écrit : I notice that Status defines the following codes: CLIENT_ERROR_UNPROCESSABLE_ENTITY CLIENT_ERROR_LOCKED

third snapshot of 1.0.0

2007-02-16 Thread Thierry Boileau
Hi all, There is a new snapshot available, including the add of comments describing status codes and methods (from HTTP, Webdav RFC). Note that is this not the official 1.0.0 release as more bugs might be fixed before that. It is available for testing at:

Re: Directory problems again

2007-02-21 Thread Thierry Boileau
Hello Sean, could you please check the snv repository? I think this issue has been fixed. Sorry for this trouble. Best regards, Thierry Boileau It seems the Directory behavior has changed again. Used to be I could do this: Application application = new Application(component.getContext

Re: Directory problems again

2007-02-22 Thread Thierry Boileau
Hi Sean, Do you want to say that it's written : Listing of //directory? Thierry Sean Landis a écrit : Hi Thierry, The directory traversal seems to work great. There is a bug in the banner of the current path though. The path begins with // instead /. Sean

Re: StackOverflowError when submitting a very long string as a parameter

2007-02-23 Thread Thierry Boileau
. Best regards, Thierry Boileau Here is the StackOverflowError I get when supplying a very long string as a request parameter. Although this particular request comes from a test case, there is nothing that would make such a request invalid in the real world. Certainly nothing preventing the use

Re: How to set useragent as jakarta Commons HttpClient

2007-02-24 Thread Thierry Boileau
Hi Daniel, I think you can use request.getClientInfo().setAgent() Best regards, Thierry Boileau Daniel a écrit : Hi, when I use jakarta commons HttpClient, I can use System.getProperties().setProperty(httpclient.useragent, Mozilla/4.0); Thanks! Daniel

Re: GET query parameters

2007-03-01 Thread Thierry Boileau
: Form form = request.getResourceRef().getQueryAsForm(); and ask for the value of parameter includeGizmoDetail just as follow : form.getFirstValue(includeGizmoDetail); Best regards, Thierry Boileau I'm using Restlets mainly for read-only access to domain objects, which

Re: user-agent required?

2007-03-01 Thread Thierry Boileau
and no Exception seems to be launched (and I've checked that on server side that the user-agent is null). However, as I use the current release (http://www.restlet.org/downloads/current.zip), this issue may have been fixed. Could you tell us more about the context? Best regards, Thierry Boileau 1.0RC3

Re: Problems running Restlet on OSX

2007-03-01 Thread Thierry Boileau
. I don't know if I really answer your question. Let us know what troubles you! Best regards, Thierry Boileau Hi there, I wanted to try Restlet (1.0b23) on OSX (Intel, 10.4), and run into some problems. At first, the restlet.sh has DOS line encodings that the shell does not like at all

Re: Problems running Restlet on OSX

2007-03-01 Thread Thierry Boileau
Ooops, sorry if my answer sounds a bit condescending, because that was really not my intention. Thierry Boileau Hi Thierry, First, I know what Restlet is, and am very familiar with Web framework, having developed one myself (in Python). I came to restlet because I was (happily !) surprised

Re: mapping domain objects to resources

2007-03-06 Thread Thierry Boileau
that you can get the base of the Url from the request object, as it allows you to have access to the host reference with the attribute hostRef. Best regards, Thierry Boileau Hi all- This may really be more of an OOP question rather than a Restlet question, but I'm curious as what people are using

Re: is this sensible ?

2007-03-09 Thread Thierry Boileau
with your code is attached to this mail. Best reards, Thierry Boileau Hi, At the moment i would like to use restlet without the transport 'attached'. I think I'm not using the correct terminology. An example follows which maybe makes it clearer ... So, actually, everything works fine

Re: New Restlet web site

2007-03-13 Thread Thierry Boileau
Hello John and Jonathan, some of your remarks have been taken into account : - no more table for the general layout - paragraph line height increased - index line height increased - rounded corners enhanced (zoom should be better, I hope) - code examples blocks improved (clearer background, text

Re: Bug in bookmark example

2007-03-14 Thread Thierry Boileau
Hello Sean, the example code has been updated in the SVN repository. Thanks for reporting this issue. Best regards, Thierry Boileau There's a bug in the bookmark example. If I create a user, say 'scl', and add a bookmark, say 'artima.com', all is well. I browse to http://localhost:3000/v1

Re: Client class used as a generic Web client?

2007-03-15 Thread Thierry Boileau
- org.apache.commons.codec.jar It should work!! Best regards, Thierry Boileau Hello I've been using Restlet for a couple of month to set up a REST based web application, and that's a great framework. I switched to RC5 a couple of days ago, and right after that I tried to use Restlet to build

Re: Client class used as a generic Web client?

2007-03-15 Thread Thierry Boileau
I wouldn't have thought too... Thierry Boileau Hello Matthieu, I succeed in lauching this tutorial example with the following jars in the classpath : - org.restlet.example.jar - org.restlet.jar - com.noelios.restlet.jar - com.nelios.restlet.ext.httpclient_3.1.jar

Re: Router and URLs with extra stuff at the end

2007-03-20 Thread Thierry Boileau
, Thierry Boileau PS : [1] 6 modes are available : * Best match (default) * First match * Last match * Random match * Round robin * Custom If I have a router with two Restlets attached as follows: /foos == FooListFinder /foos/{fooId} == FooFinder ... then, as expected

Re: Router and URLs with extra stuff at the end

2007-03-20 Thread Thierry Boileau
Ooops, I forget : you also need to set the equals mode when routing to fooListFinder, otherwise this route will catch the garbage URLs. Best regards, Thierry Boileau Hello Stokes, The routing mechanism is based on Template objects (http://www.restlet.org/documentation/1.0/api/index.html?org

Re: Router and URLs with extra stuff at the end

2007-03-22 Thread Thierry Boileau
, otherwise change it to TYPE_URI_QUERY. Best regards, Thierry Boileau Thierry Boileau thboileau at gmail.com writes: Ooops, I forget : you also need to set the equals mode when routing to fooListFinder, otherwise this route will catch the garbage URLs. Best regards, Thierry Boileau

Re: Bug: Oversized messages cause erroneous behavior

2007-04-03 Thread Thierry Boileau
Hello Alex, Could you precise your environment? I've tested with the Simple connector, and I get back 404 status which is not so bad but may be improved. Best regards, Thierry Boileau If you do a GET on a URI that is too big (4k by default), the response status will be 'null (-1)'. A quick

Re: can't integrate restlet with tomcat

2007-04-04 Thread Thierry Boileau
Hello Ai Li, I tried the war sample [1] available on the faq page [2] and it succeed with no error. It may come from your Tomcat configuration, did you try to launch a sample servlet with Tomcat? Please follow this link [3] and particularly this one [4]. Best regards, Thierry Boileau [1

Re: Representation getText() encoding problem

2007-04-04 Thread Thierry Boileau
character set applies (see class InputStreamReader). Best regards, Thierry Boileau Hi Ozgun, Excellent point. This is clearly a bug that we will fix by using an InputStreamReader instead of a raw InputStream. We will also add the character set of the parent representation as a parameter

Re: setting Client timeout

2007-04-04 Thread Thierry Boileau
will find a way to fix that point in the Restlet documentation site. Best regards, Thierry Boileau [1] http://www.restlet.org/documentation/1.0/ext/com/noelios/restlet/ext/httpclient/HttpClientHelper.html Hi, Is there a way to set connection timeout or read timeout parameters to our Client

Re: NPE with a simple Directory example

2007-04-04 Thread Thierry Boileau
Hello Jeff, your application has been instantiated with its parent context, i.e the one of the component. You should proceed like this component.getDefaultHost().attach(, new TestApplication(component.getContext())); Best regards, Thierry Boileau Hey All, I'm trying simply

Re: AWS authentication on Macs

2007-04-05 Thread Thierry Boileau
Hello Justin, the patch has been updated and applies only to the JVM delivered by Sun. You can check the SVN repository, or get the current snapshot at this URL : http://www.restlet.org/downloads/1.0/current.zip Best regards, Thierry Boileau From a previous discussion (link below), I note

Re: How to use the javamail connector?

2007-04-07 Thread Thierry Boileau
Hi Matthieu, I've just re-generated the current.zip file (http://www.restlet.org/downloads/1.0/current.zip), as it misses the activation.jar file... You can find the latter in the /lib/javax.activation_1.1 subdirectory. I hope this can help you. Best regards, Thierry Boileau Hello Matthieu

Re: Routing and Applications - Slash vs no Slash

2007-04-09 Thread Thierry Boileau
(/admin/, new AdminApplication(...)); route.getTemplate().setMatchingMode(Template.MODE_EQUALS) By doing so, an exact match is required (the default routing mode is Template.MODE_START_WITH). I hope this will help you, Thierry Boileau I add my admin application to a router at the URL /admin/' via

Re: How to use the javamail connector?

2007-04-10 Thread Thierry Boileau
for pointing the issues with the javamailclienthelper. Best regards, Thierry Boileau Hi Matthieu, Some thoughts: 1) Would it be possible that you have two applications/WARs/EARs deployed to the same JBoss instance? 2) Maybe you have some older Restlet JARs in a JBoss common or shared directory? 3

Re: Reference not resolving

2007-04-11 Thread Thierry Boileau
to give your feeling, ideas. Best regards, Thierry Boileau Actually, Reference seems to have some odd behavior in general when constructed with baseRef. Depending on the construction one may end up with null values, odd values, wrong URIs, NullPointerExceptions, and infinite loops resulting

Re: Classpath or config?

2007-04-12 Thread Thierry Boileau
Hello Chuck, thanks for this good point. A link to the connectors page has been made from part #2 of the tutorial. Best regards, Thierry Boileau Given the number of times I've seen this question asked (both on this list and here at my company), it seems to me that the configuring

Re: a gzip representation

2007-04-12 Thread Thierry Boileau
!, MediaType.TEXT_PLAIN)); representation.setMediaType(MediaType.APPLICATION_GNU_ZIP); representation.getEncodings().clear(); I hope this will help you. Best regards, Thierry Boileau Hi Jim, You can have a look

Re: Request for change to Representation

2007-04-13 Thread Thierry Boileau
understandable. Also, we are ready to consider additional methods (maybe a validate method) that would help developpers be confident of the completeness and resolvability of a reference. Best regards, Thierry Boileau Gentlemen, Currently, a Reference instance may be in any state from empty

Maven Repository available

2007-05-03 Thread Thierry Boileau
in the main public Maven repository. It will be automatically refreshed on the 1st and on the 15th of each month. Best regards, Thierry Boileau

Re: Maven Repository available

2007-05-04 Thread Thierry Boileau
to globally use a certain mirror, however, as written on Maven's site, it seems common for a project to customise the repository in their pom.xml. Best regards, Thierry Boileau We listened to your feed-back and decided to launch dedicated Maven repository. It is freely accessible from http

Re: Restlet lifecycle question

2007-05-10 Thread Thierry Boileau
Hello Evgeny, I've updated the benchmark page (http://www.restlet.org/documentation/1.0/benchmark). Please feel free to tell us if it answers your questions. best regards, Thierry Hi Evgeny, Restlet instances are intended to be multi-threaded. Some may require synchronization of access

Re: Some source jars in maven repository don't match binary jars

2007-05-11 Thread Thierry Boileau
Hello Mark, Thanks a lot for reporting this issue which is fixed. The other source jars were also wrong... Best regards, Thierry Hi, I've noticed that some of the source jars in the maven repository do not contain the source for the corresponding binary jar. The

Re: multipart form authentication

2007-05-18 Thread Thierry Boileau
with the credentials. The PutMethod seems to not comply with this behaviour and does not send the request again. best regards, Thierry Boileau [1] http://restlet.tigris.org/issues/show_bug.cgi?id=301 Sorry if this is double post, I had some problems with signup. Here goes again: I'm trying to do

Re: How does client indicate it wants the representation in a particular MediaType

2007-05-18 Thread Thierry Boileau
Hello Jon, You need to set the clientInfo attribute of the request object, just like this: request.getClientInfo().getAcceptedMediaTypes().add(new PreferenceMediaType(MediaType.TEXT_XML)); Best regards, Thierry Boileau Disclaimer... I'm a noob here. Just starting using this very helpful

Re: Can't call Representation.getText() or getStream() twice?

2007-05-18 Thread Thierry Boileau
Hello Philip, the getText() method reads entirely the underlining stream in order to build a String object. That means that you can only call this method once. However, I don't know if this behaviour is expected or appropriate. I hope I answer your question. Best regards, Thierry Boileau

Re: Content type via URL parameters?

2007-05-23 Thread Thierry Boileau
. Best regards, Thierry Boileau [1] http://restlet.tigris.org/issues/show_bug.cgi?id=147 [2] http://restlet.tigris.org/servlets/ReadMsg?list=discussmsgNo=559 [3] http://www.restlet.org/documentation/1.0/api/org/restlet/service/TunnelService.html [4] http://www.restlet.org/documentation/1.0/nre

Re: 2-way SSL authentication

2007-05-23 Thread Thierry Boileau
Hi Chuck, you can find the current binary at this URL: http://www.restlet.org/downloads/1.1/current.zip best regards, Thierry Boileau I'm going to need this in a day or two. Can I get this in a binary, or do I have to build from trunk? --Chuck -Original Message- From: Toby Thain

Re: Serious problem with ServletConverter

2007-05-24 Thread Thierry Boileau
Hello Ryan, thanks a lot for reporting this issue. I've entered an issue for this point (http://restlet.tigris.org/issues/show_bug.cgi?id=312). Best regards, Thierry Boileau The ServletConverter example has the following code: public void init() throws ServletException

Re: Sending i18n JSON data

2007-05-25 Thread Thierry Boileau
(MediaType.APPLICATION_JSON, true)) { which allows to test the equality between 2 media types by ignoring the parameters... I hope this wil help you. Best regards, Thierry Boileau Of course, this does not suit you because your string needs UTF-8. Hi all, I have trouble sending internationalized JSON

Re: Character encoding truncation for XML PUT

2007-05-26 Thread Thierry Boileau
=get_messagemview=0ID_Message=627LastModified=4675624182723210897 best regards, Thierry Boileau Hi I am a colleague of Sreenivas Reddy, and thus have been owkring on the same application which utilises the restlet framework. We have recently started to utilise the application in an international sense i.e

Re: Content type via URL parameters?

2007-05-26 Thread Thierry Boileau
Hello Matthew, you can find a sample application that provides integration of Spring into a servlet container at this URL: http://wiki.restlet.org See the sample code section. Best regards, Thierry Boileau Thanks for the clear explanation. Yes I would like to use Application. We are using

Re: DomRepresentation problem

2007-05-30 Thread Thierry Boileau
Hello Lee, This problem has been fixed (see http://restlet.tigris.org/issues/show_bug.cgi?id=316) and is available in the svn repository. best regards, Thierry Boileau I'm not sure if this is a bug or a feature but... In the org.restlet.resource.DomRepresentation class, the write method

Re: Content type via URL parameters?

2007-05-30 Thread Thierry Boileau
. . best regards, Thierry Boileau Irfan/Thierry, I was just wondering whether you could explain why start() is always called in the RestApplication.handle method, which is shown below. try { start(); } catch (Exception ee) { ee.printStackTrace(); } super.handle(request, response

Re: How to use TunnelFilter

2007-05-30 Thread Thierry Boileau
-1252, new CharacterSet(windows-1252, Windows character set)); + application.getMetadataService().addExtension(rar, new Encoding(rar, rar compression algorithm)); I hope this will help you. Thierry Boileau [1] http://www.restlet.org/documentation/1.0/api/org/restlet/service

Re: URI matching question

2007-05-30 Thread Thierry Boileau
://localhost:6080/appcontext/version?nam1=value1... route = route = [...]attach(/version?{MyQuery}, ...); route.getTemplate().getVariables().put(MyQuery, new Variable(Variable.TYPE_URI_QUERY, , false, false)); best regards, Thierry Boileau Hi Jim, From an URI specification point of view

Re: Please Don't Eat Exceptions

2007-05-31 Thread Thierry Boileau
a status code: - Status.CONNECTOR_ERROR_XXX (where XXX stands for CONNECTION, COMMUNICATION and INTERNAL) for all errors detected before the request is sent. This is the current behaviour. - HTTP status received from the server. What do you think about? best regards, Thierry Boileau [1

Re: warning instantiating one of my resources

2007-06-02 Thread Thierry Boileau
Hello Jim, there may be a problem with the web.xml configuration file. If ProcessManagerApplication is not a Restlet application, you should not have to implement such constructor, and this kind of error should not happen... Could you send us your configuration file? Best regards, Thierry

Re: Keep Alive Problem with Simple Framwork

2007-06-05 Thread Thierry Boileau
Hi Adam, I'm not sure too that this stack trace shows a real problem. I've seen it when debugging on server side when I killed the client. Thierry By the way, I mentioned I was getting connection resets while doing this test. I ended up with a stack trace. I'm not sure if it helps, but

Re: Keep Alive Problem with Simple Framwork

2007-06-05 Thread Thierry Boileau
extension must work after a successful session has been completed. Thierry Boileau wrote: Hello Adam, I didn'tt reproduce your problem. Here is the requests/response headers as shown with the LiveHttpHeaders extension, could you send yours? ** http://localhost:8182/ POST

Re: Keep Alive Problem with Simple Framwork

2007-06-07 Thread Thierry Boileau
6. What are you? I think I'm using the more recent restlet binaries, but maybe I'll pull from SVN just to make sure. Adam Thierry Boileau wrote: Hi Adam, Actually, I sent the post ten times, and it didn't fail. Hum, I don't know what can happen. Thierry The first post's http headers

Re: (hopefully) silly question about HTTPS

2007-06-20 Thread Thierry Boileau
-password); component.getContext().getParameters().add(keyPassword, your-password); component.getServers().add(Protocol.HTTPS, 8182); I hope this will help you. Best regards, Thierry Boileau [0] http://www.restlet.org/documentation/1.0/connectors [1] http://www.restlet.org

Re: (hopefully) silly question about HTTPS

2007-06-20 Thread Thierry Boileau
Bjørn, if you plan to use the Jetty connector, as it seems that this connector is still a beta release, the Restlet Jetty connector will use the Basic IO in SSL mode by default (see http://restlet.tigris.org/issues/show_bug.cgi?id=250) and not the NIO. Best regards, Thierry Boileau Hello

Re: REST client and browser handle 404 differently

2007-06-21 Thread Thierry Boileau
Hello Jim, could you install the livehttpheaders mozilla extension (http://livehttpheaders.mozdev.org/) and give us the reponse headers sent by both servers when using Mozilla as a client? best regards, Thierry Boileau * * I am using Restlet 1.0.1. It is being used in Tomcat 6 with Spring

Re: JXTA support?

2007-06-24 Thread Thierry Boileau
Hi Fred, I'm not sure the JXTA extension is completely achieved. You can get more information by following this link http://restlet.tigris.org/issues/show_bug.cgi?id=248 best regards, Thierry Boileau I saw some JXTA files in the repository. Is there any documentation about the JXTA 2.5

Re: REST client and browser handle 404 differently

2007-06-25 Thread Thierry Boileau
that corresponds. Best regards, Thierry Boileau Thanks for the LiveHeaders link, it seems quite useful. When I set status in my Restlet to Status.CLIENT_ERROR_NOT_FOUND, Mozilla gets the following header: http://localhost:8080/crsc/Crop-record/1 GET /crsc/Crop-record/1 HTTP/1.1 Host: localhost

Re: REST client and browser handle 404 differently

2007-06-26 Thread Thierry Boileau
well done Jim! best regards, Thierry Boileau My code is not a Component or Application. It just a Plain Old Restlet. Because it is invoked by a ServletConverter, I thought that if I set the status to 404, that it would magically behave like a Servlet. When a Servlet raises a 404

Re: Content-length and UTF-8

2007-06-26 Thread Thierry Boileau
Hello Svilen, good analysis! This problem has been solved a fews days ago (24/05/2007), you can check the svn repository or download the last release: http://www.restlet.org/downloads/ Thanks a lot for using and promoting the Restlet! Best regards, Thierry Boileau I think I found

Re: form submission fails to redirect on success

2007-06-29 Thread Thierry Boileau
, Thierry Boileau On 6/28/07, Michael Vogel [EMAIL PROTECTED] wrote: Hello, I'm new to using restlets and have been experimenting with simple test pages to make sure i understand how to use it (and so that i can write some examples to help my coworkers learn it). I wrote a simple form

Re: access local file in tomcat container

2007-07-02 Thread Thierry Boileau
= adapter.getServletContext(); Please feel free to ask for more details. Best regards, Thierry Boileau [1] http://www.restlet.org/documentation/1.0/ext/com/noelios/restlet/ext/servlet/package-summary.html

Re: HTTP Connection Error

2007-07-04 Thread Thierry Boileau
Hello Caroline, Do you get this error on the client side or in the server side? I know that sometimes asyncweb generates some error trace, but with no consequence on the client/server communication. Are you in this case? best regards, Thierry Boileau Hi i'm new to restlets and I

Re: Posting form data using the client data

2007-07-05 Thread Thierry Boileau
this will help you, Thierry Boileau [1] : http://www.restlet.org/documentation/1.0/connectors Hi I can successfully process a form that is POSTED by a Web browser using the Restlet API, however it is unclear how to create a form and post it using the API. I have tried the following code

Re: How to send files using Restlet

2007-07-05 Thread Thierry Boileau
Content-Encoding header). I hope this will help you, Thierry Boileau Hi, I'm trying to upload files using Restlet as client and server. For the server, I am using RestletFileUpload and it works. However, for the client, I have no clue how to put files. All I have achieved so far

Re: HTTP Connection Error

2007-07-06 Thread Thierry Boileau
Carolina, you can change your server connector and check if this error happens again (see http://www.restlet.org/documentation/1.0/connectors). Best regards, Thierry Boileau The error is posted on the server side. It does seem to simply be an error generated when the client program ends

Re: Unable to access servletContext?

2007-07-10 Thread Thierry Boileau
Hello Tammy, does your application implements the following constructor? public MyApplication(Context parentContext) { super(parentContext); } best regards, Thierry Boileau Hi, I need access to the servletContext in order to get the root of my webapplication when running

Re: representation.getText() blocks indefinitely

2007-07-12 Thread Thierry Boileau
media type = application/x-www-form-urlencoded best regards, Thierry Boileau I'm using restlet 1.0.2 with the default connector. GET works fine. POST and PUT exhibit the same blocking behavior. I set a breakpoint in my Resource and drilled down into the restlet code, so yeah I know

Re: How to send files using Restlet

2007-07-12 Thread Thierry Boileau
header is sent to the server which is required (if it knows the encoding) to recover the wrapped representation. best regards, Thierry Boileau

Restlet 1.0.3 released

2007-07-15 Thread Thierry Boileau
-1.0.3.zip http://www.restlet.org/downloads/1.0/restlet-1.0.3.exe Best regards, Thierry Boileau

Re: Client, Request, Method.Post and HTML form-style key-value params

2007-07-16 Thread Thierry Boileau
Hello Christopher, I send you another sample code. ;) What kind of server are you using? best regards, Thierry Boileau I need to send an HTTP POST containing an HTML form-style set of key-value pairs in the body ... ... I'm embarrassed to say, I can't see how to do this! Can someone point

Re: Setting Content-length in http client request?

2007-07-16 Thread Thierry Boileau
Hello Erik, your code seems ok, I just wonder if your classpath is correctly set. I am able to reproduce your problem (with same post request with netcat) when my classpath does not contain the httpclient extension archive. best regards, Thierry Boileau Hi all, I am having trouble sending

  1   2   3   4   5   6   7   8   9   10   >