I would tend to disagree. A bulkdeleter is a thing. It's a virtual thing but
so are most other resources. And putting the links of the resources to be
deleted in the body seems to me to follow the HATEOAS precepts of REST.
Paul Morris
On Jul 29, 2013, at 2:22 PM, Stephan Koops
stephan.ko
I'm passing in an org.restlet.application param to the ServerServlet and the
application doesn't load until the first request actually comes in. That is
what I would expect of course and the source code shows that lazy
initialization is what the authors were trying to achieve. But for my
gets a 200 back with an empty application/pdf
envelope
} catch (IOException e) {
setStatus(Status.SERVER_ERROR_INTERNAL,
e.getMessage());
}
}
};
return representation;
}
Paul Morris, Software Developer
Northwestern Memorial Physicians Grouphttp
Sure. In the meantime is it possible to use the file protocol with a path
relative to the context path or something along those lines?
Paul Morris
On Jan 7, 2013, at 2:54 PM, Jerome Louvel
jlou...@restlet.commailto:jlou...@restlet.com wrote:
FW: I'm resending this email from 01/04 due
Hi there-
Here's what I'm trying to do:
Redirect GET calls to root to a static directory with an index.html file in it.
I thought I could redirect to the folder containing the index.html and then use
the setIndexName of Directory to serve up the index.html file once the user
gets redirected
Yes it looks like it does with getApplicationInfo(Request, Response).etc…
Thanks Tim.
Paul Morris, Software Developer
Northwestern Memorial Physicians Grouphttp://www.nmpg.com
773.469.4330 | 312.926.6674 | pmor...@nmh.org
[cid:9D02970D-9665-4E2E-8E2B-3D2F6275AFCF]
From: Tim Peierls t
I'm trying to figure out a way to at runtime get each ServerResource and its
URI route from the org.restlet.Application API but can't seem to figure it out.
Below is an example. So again I need the relative ref and the object (or even
just its class).
router.attach(/, tracer);
Not exactly sure if this is what you're after but I would still set your
message string in the setStatus method and and then use
Status#getDescription in your catch block or wherever…
--
Paul Morris, Software Developer
Northwestern Memorial Physicians Group http://www.nmpg.com
773.469.4330
Thanks Tim. Yes Stephen I missed that in your snippet... Use getResponse()
Paul Morris
On Sep 2, 2012, at 12:32 PM, Tim Peierls
t...@peierls.netmailto:t...@peierls.net wrote:
Why set the request entity rather than the response entity?
On Sun, Sep 2, 2012 at 9:46 AM, Stephen More
stephen.m
/api/org/restlet/data/MediaType.html
mediaType)
Sets a textual entity.
Paul Morris
On Sep 1, 2012, at 6:35 PM, Stephen More
stephen.m...@gmail.commailto:stephen.m...@gmail.com wrote:
I have a ServerResource that has:
throw new org.restlet.resource.ResourceException
Also forgot to mention that I do have the XML extension on the classpath and
debugging indicates that the Source object is the null object in the
transform method (in case that wasn't obvious enough).
I saw a related thread about OSGi bundles not being able to find the
wadl2html.xslt file but I
I just now saw a duplicate of this issue here:
http://restlet-discuss.1400322.n2.nabble.com/NullPointerException-when-using-WADL-HTML-representation-td7526952.html
I hadn't seen that earlier when I posted but it appears to be the same exact
issue.
In a similar vein, I saw a comment from some
I did some more testing and it looks like the issue here is the Spring
extension. I removed the dependency on Spring and just used the
ServerServlet class in the servlet ext package and calling OPTIONS works. I
found this discussion from a few years back
=org.restlet.ext.spring.SpringComponent
property name=name value=My Component /
property name=author value=Paul Morris /
property name=defaultTarget ref=myApplication /
/bean
bean id=resource class=com.quietbus.test.MyResource /
bean id=router class
Thanks for your comments Thierry.
From: Thierry Boileau
thierry.boil...@noelios.commailto:thierry.boil...@noelios.com
Reply-To: discuss
discuss@restlet.tigris.orgmailto:discuss@restlet.tigris.org
Date: Wed, 7 Dec 2011 05:58:52 -0600
To:
Trying to implement some sort of versioning for an enterprise API. It could
interface with external APIs eventually so I want to do it right.
Resources will likely be grouped into war files (or maybe even JSE apps at some
point who knows) that will be deployed on the server and the idea is to
@restlet.tigris.org
Cc: Paul Morris pmor...@nmh.orgmailto:pmor...@nmh.org
Subject: Re: Sessions in web applications using RESTlet ?
Does anyone have any experience with authenticating RESTlet against OpenAM?
On Monday, October 10, 2011 09:50:58 Paul Morris wrote:
OpenAM is one such session server
Deep,
I haven't tried building a RESTful e-commerce site and I'm not sure I
would but...
REST says state should be maintained on the client side so if you were
going to build a RESTful e-commerce site you'd have to keep the cart on
the client side. Storing it in a cookie would maintain state
The entity size of the request is unknown (-1), thus the -. Not sure
what's happening without seeing everything that you can see but maybe you
could try manually setting the Content-Length header to zero before the
redirect (request.getEntity.setSize(0);) and see what happens. I'm not
saying this
Here's the code that's logging the second value after the status code…
// Append the received size
sb.append('\t');
if (request.getEntity() == null) {
sb.append('0');
} else {
sb.append((request.getEntity().getSize() == -1) ? - : Long
A high-level design question: I would like to send an email representation from
Restlet-GWT to a Restlet Service on the back-end for processing (sending). I'm
thinking of using the JavaMail extension on the server side. I'm also thinking
of POSTing a MessageRepresentation from the client side
Thanks Thierry.
I have a handful of methods that depend on the raw value of a custom
ChallengeScheme. It doesn't seem that Restlet will extract this value on the
fly as in:
@Get
public Representation getAttributes(ChallengeResponse token) {
// do stuff with token.
}
Right?
If not, what
, and you can verify that it works without
any special configuration.
--tim
On Mon, Aug 8, 2011 at 10:18 AM, Paul Morris
pmor...@nmh.orgmailto:pmor...@nmh.org wrote:
It's a publicly exposed HTTP call so I won't be getting an
org.restlet.data.Form passed in. I'll be getting an entity body with params
Subject: Re: Spring inject a Form constructed using the requestEntity
On Mon, Aug 8, 2011 at 2:38 PM, Paul Morris
pmor...@nmh.orgmailto:pmor...@nmh.org wrote:
Unfortunately, in the case I mentioned, I am implementing an abstract method
that takes a Representation as the argument and since Form
nice automatic
conversion.
--tim
On Mon, Aug 8, 2011 at 7:06 PM, Paul Morris
pmor...@nmh.orgmailto:pmor...@nmh.org wrote:
The interface is part of a very generic API for managing sessions and it's
meant to support a wide variety of implementations, different session
provisioners, etc.
public
Restlet keeps its interface uniform whether the Restlet is acting as a client
or a server since servers often have to behave as clients when they have to
call other servers. So yes your case is par for the course in the world of
REST. ;-)
Paul Morris
On Jul 31, 2011, at 3:21 AM, Alex K
Have a look at how I create the child context here:
https://github.com/apius/apius-core/blob/master/projects/identity/src/identity-context-common.xml
Do this and you should be able to pass the child context into the Application
constructor without an error.
Paul Morris
On Jul 14, 2011, at 4
If you do getContext().getParameters().add(useForwardedForHeader, true);
from within your class that extends org.restlet.Application does the address
then show up in getRequest().getClientInfo().getAddresses() within the Resource
class?
Paul Morris
On Jul 8, 2011, at 3:56 PM, Al Crowley
Thanks Rhett. That eliminated the error. On to the next error ;-)
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2778081
=name value=APIUS Identity component /
property name=description value=Authentication and authorization. Session management. /
property name=owner value=apius.org /
property name=author value=Paul Morris /
property name=client value=http /
property name=defaultHost ref=defaultHost /
/bean
and authorization. Session management. /
property name=owner value=apius.org /
property name=author value=Paul Morris /
property name=clientsList
list
valuehttp/value
/list
/property
property name=defaultHost ref=defaultHost /
/bean
bean id
Thanks Rhett. Was able to get over the initial hump.
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2778198
I think I had some classpath problems or perhaps even a mixture of different
release version jars. I deleted all jars from WEB-INF/lib and replaced the
restlet and other dependent jars with those packaged in the 2.0.8 release and
everything started behaving as expected. (Shaking my head).
I think I had some classpath problems or perhaps even a mixture of different
release version jars. I deleted all jars from WEB-INF/lib and replaced the
restlet and other dependent jars with those packaged in the 2.0.8 release and
everything started behaving as expected. (Shaking my head).
I'm
I think the map values for attachments should be value-ref rather than just
value because they refer to beans declared in the same file but in either case
that doesn't eliminate my error.
map
entry key=/session value-ref=openAmSession /
entry key=/session/attributes
=author value=Paul Morris /
property name=client value=http /
property name=defaultHost ref=defaultHost /
/bean
bean id=defaultHost class=org.restlet.ext.spring.SpringHost
constructor-arg ref=component /
property name=defaultAttachment ref=openAmSessionApplication /
/bean
bean id
Rhett,
This is very helpful. Thanks.
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2772273
value=apius.org /
property name=author value=Paul Morris /
property name=client value=http /
property name=defaultHost ref=defaultHost /
/bean
bean id=defaultHost class=org.restlet.ext.spring.SpringHost
Thanks for the input. I was able to get Restlet to recognize my helper. Not
sure I understand the implications of setting the clientSide boolean value to
true but anyway what I'm fighting with now is the line in my overridden
parseResponse method for setting the raw value. Unfortunately when
I feel like an idiot (lol). I just needed to change my setRawValue method line
so that it was using the ChallengeResponse argument in the method itself and
not the HttpRequest adapter's getChallengeResponse(). It's understandable why
that would have created an infinite loop. Anyway thanks again
Having problems implementing a custom challenge scheme with an
AuthenticatorHelper. I've read the documentation but I am still receiving this
WARNING in the logs:
WARNING: Couldn't find any helper support the HTTP_MYSCHEME challenge scheme.
This is what I'm doing code-wise...
public class
I'm just getting started with Spring and want to start putting together
projects where Restlet is the main container and Spring wires everything
together. Does anyone know of a tutorial or zipped Eclipse example project that
shows how to set this up in Eclipse? There are plenty of pure Spring
Ok. Thanks for the ideas. This is gradually taking shape in my head. I was
thinking of extending the Restlet Service object and customizing as needed. I
do like your idea of writing to a file in case of a failed connection.
--
I've been researching the Spring framework and the Restlet Spring extension and
I think this is indeed the best way to go. One more framework to learn but
probably best in the long run.
--
I've been looking into this since my initial post and want to add a couple of
thoughts to clarify my intention here. I found the LogService Restlet class
which looks very robust but I need to customize some of the logging here for
auditing and compliance purposes (i.e. identify the user based
I'm looking to catch all incoming requests and outgoing responses that pass
through my Restlet API, break out the elements into fields and persist them in
a relational database for later analysis. I thought of using service filters
for this but have two concerns. One is latency since it seems
I am building out a RESTful API based on Restlet in my organization. I have no
dependencies on Spring or even the use of an EJB container. In fact I think I
would prefer to just use POJOs in the web container for data persistence. Are
there any resources or tutorials that someone could point me
Thierry,
Your project was a good level-set. I took it and just started line by line
closing the gap between your code and mine. As it turns out Safari wouldn't
take my cookie since the version was 1 not 0. whereas Firefox accepted the
version 1 cookie.
Also, Firefox wouldn't accept the
I saw an entry similar to this elsewhere with an answer but unfortunately it
doesn't work for me.
I've tried the following:
getResponse().getCookieSettings().add(myCookieSetting);
and...
SeriesCookieSetting cookies = getResponse().getCookieSettings();
cookies.add(myCookieSetting);
Any word on this? I'm struggling with the same issue.
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2697375
I'm using ClientResource to call OpenAM's
(http://www.forgerock.com/openam.html) authentication service as in:
ClientResource resource = new
ClientResource(http://glassfish.devbox.local:8080/openam_s951/identity/authenticate?username=pmorrispassword=secret);
When I call resource.getStatus() no
51 matches
Mail list logo