Does restlet support the EXIST operation on HTTP GET?

2011-06-05 Thread AJ
Hi everyone,

Does restlet support the EXIST operation on HTTP GET like the one described 
here?

https://serviceregister.overheid.nl/soa/systinet/platform/doc/html/rest.interface.html#operation.exist

TIA!

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2757956


RE: Getting Restlet resources injected with Guice

2008-12-21 Thread AJ Barnes - National Poisons Centre
Hi Brian,

I've been using Guice for a while now. Was a bit tough getting started, but now 
is working quite well. I didn't go down the path of using finders. With our set 
up we generally have collections of items and then their entities (as is pretty 
standard). 

I started by creating an abstract resource class (imaginatively called 
AbstractResource) than extended the Restlet Resource class. This included a 
static Injector field. Below this are the Collection and Entity resource 
classes. All of the resource classes will extend one of these three classes, 
and all have their own Interfaces.

When the program starts it creates the injector, and then explictly sets the 
Injector for AbstractResource, so that this is available on the other side of 
Restlet creating Resources. Whenever Restlet creates the new instance of a 
resource class one of the first things done by AbstractResource is to 
injectMembers into itself using the static injector. Ie Guice is used to set up 
the environment and start the Restlet Server running, then Restlet handles 
creating the correct resource, and then Guice continues with the work by using 
the original Injector.

The advantage is I can use then standard @ImplementedBy and @Inject 
annotations, and testing is just as easy as ever.

If you want to see some code (or some clarification on these ramblings), I can 
send some through (working on some tidying up now).

AJ

National Poisons Centre,
New Zealand

-Original Message-
From: Brian Williams [mailto:bwilli...@archer-group.com]
Sent: Sat 12/20/2008 5:41 AM
To: discuss@restlet.tigris.org
Subject: Getting Restlet resources injected with Guice
 
Hi Everyone.

I'm attempting to use Guice with Restlet to inject session beans from EJB3
so that unit and module testing will be easier down the road. I found this
helpful site with some code examples for getting started on this:

http://tembrel.blogspot.com/2008/07/resource-dependency-injection-in.html

 

However, now I'm at the part where I want to attach multiple routers to
different paths of my app. So my application looks something like:

 

FinderFactory factory = RestletGuice.createInjector(new
DelegateModule()).getInstance(FinderFactory.class);

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=988546attachment: winmail.dat

RE: Mention proxy in tutorial

2010-09-15 Thread AJ Barnes - National Poisons Centre
Lucy, 

 

It also means that we could close up the FTP ports again!

 

AJ

 

A.J. Barnes, B.Sc., B.N.

Poisons Information Officer

National Poisons Centre / Te Pokapū Mātauranga Tāoke

Ph: +64 3 479 7250

Fax: +64 3 477 0509

===

CAUTION: This e-mail message may contain information that is confidential and 
subject to privilege. It is intended solely for the addressee. If you are not 
the intended recipient, you are notified that any use, distribution or copying 
of this message or data is prohibited. If you received this e-mail in error, 
please notify me immediately and delete all material pertaining to this e-mail. 
Thank you.



From: Jerome Louvel [mailto:jerome.lou...@noelios.com] 
Sent: Wednesday, 15 September 2010 20:34
To: discuss@restlet.tigris.org
Cc: araic...@gmail.com
Subject: RE: Mention proxy in tutorial

 

Hi Alejandro,

 

The org.restlet.ext.net connector only allows a system wide proxy setting. 

 

In other case, you can use several instances of the Apache HTTP Client or of 
the internal HTTP client and configure their “proxyHost” and “proxyPort” 
parameters:

http://www.restlet.org/documentation/2.0/jse/engine/org/restlet/engine/http/connector/BaseClientHelper.html

http://www.restlet.org/documentation/snapshot/jee/ext/org/restlet/ext/httpclient/HttpClientHelper.html

 

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg 
http://www.restlet.org/ 
Noelios Technologies ~ http://www.noelios.com http://www.noelios.com/ 

 

 

 

De : Alejandro Raiczyk [mailto:araic...@gmail.com] 
Envoyé : mercredi 7 juillet 2010 06:02
À : discuss@restlet.tigris.org
Objet : Re: Mention proxy in tutorial

 

What about proxy authentication? 
The only way to setup a proxy is using system properties? Can't it be done 
programatically? I know I could set the system properties programatically, but 
what if I don't want other classes running in the same vm use the value of 
those system properties?

2010/6/18 Jerome Louvel jerome.lou...@noelios.com

Hi John,

We are refactoring the documentation for Restlet Framework 2.0.0 release.

Here is the new table of contents:
http://www.restlet.org/documentation/2.0/

This user guide includes a First client example:
http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/320-restl
et.html 
http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/320-restl%0Aet.html
 

It now contains a warning about running behind a HTTP proxy, which leads to
this page on the Net extension and the arguments to be passed on the
command line as you suggested:
http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/79-restlet.html

Hope this looks better.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com



-Message d'origine-
De: John Simmons [mailto:drjwsimm...@yahoo.com]
Envoy頺 vendredi 14 mai 2010 00:50
: discuss@restlet.tigris.org
Objet: Mention proxy in tutorial

I am just learning Restlet and trying the examples given in the tutorial. I
am working from behind a corporate firewall. I was not able to get the
first example Part02a to work until I discovered, by searching the source
code, that I needed to set two system properties by putting arguments like
this on the java command line:

-Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=3128

To help new users, I suggest that the tutorial should mention this. It
would also be helpful to mention it in the javadoc, say for class
ClientResource.

Thanks,
John

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=26087
89

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2623461




-- 
Alejandro DamiᮠRaiczyk

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2660439