OutputRepresentation.
This is a GAE application. Could this be the problem?
Thanks,
Alex
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3086557
Hi,
I'd like to be able to write some tests using JUnit to rest server resource
classes. I'm encountering a problem when I try to pass a JacksonRepresentation
in. My test class looks something a little like this:
{
TransactionResource resource = new MyResource();
MyData data = n
Prior to 2.2-RC1 we were able to use ClientResource correctly on App Engine
with the .gae extension dependencies. However, we are no longer able to do so
and receive a client connector error regarding the HTTP and HTTPS protocol jar
being missing. Is this intended behavior? From the build notes
I would like to be able to return a custom Status
(CLIENT_ERROR_UNPROCESSABLE_ENTITY) and error message ("Field XXX is missing",
for example) if my deserializer detects a problem when converting the request
payload into an object (and throws an exception within the deserialize()
method).
The
you're doing on Restlet.
br,
Alex
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Android-client-Restlet-2-0-15-cannot-connect-with-HTTPS-SSL-recoverable-error-1001-tp7578771p7578786.html
Sent from the Restlet Discuss mailing list archive at Nabbl
This is what I get from the Eclipse debugger, for the "response" object of the
corresponding ClientResource:
Communication Error (1001) - The connector failed to complete the communication
with the server
1001
The connector failed to complete the communication with the server
Communication Error
This doesn't have the desired result either. :/
br,
Alex
On 6 Μαϊ 2013, at 6:08 μ.μ., "Jerome Louvel-3 [via Restlet Discuss]"
wrote:
> Alex;
>
> You to put the connector in the first postion doing this:
>
> Engine.getInstance().get
Hello Jerome,
thanks a lot for responding.
If gaving the org.restlet.ext.net.jar on your classpath is enough, then I've
already done what you're suggesting. As I stated on my first post, I'm not
using the internal http connector, but instead the apache httpclient.
In any case, I've even explicit
New update:
I made a change on my domain's DNS, and as a result all calls towards my
domain are forwarded to the elasticbeanstalk.com domain. This way, my
certificate appears as valid to the client, since the calls go through the
CNAME of the certificate.
But unfortunately, /I'm still getting the
x27;t get past the "invalid" request.
I'd greatly appreciate any suggetions. :)
br,
Alex
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Android-client-Restlet-2-0-15-cannot-connect-with-HTTPS-SSL-recoverable-error-1001-tp7578771p7578778.html
applied.
I'm really stuck here, so any help would be much appreciated.
br,
Alex
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Android-client-Restlet-2-0-15-cannot-connect-with-HTTPS-SSL-recoverable-error-1001-tp7578771p7578774.html
Sent from the Restlet
e warning that
you need to accept before continuing. Could it be that Restlet 2.0.15 is not
handling smoothly SSL communication, and I would need to upgrade to 2.1 or
later?
Looking forward to hearing your suggestions. In case you'd like to get some
more info that could help, just ask m
Hey,
Unfortunately, the code in the wiki does not allow the user to choose
her own OpenId provider and it does not tell the user that she will be
redirected.
Can I give the user a form to select her OpenId provider? Is there a
more complete example somewhere?
Regards,
Alex
nd accepting the certificate
from the server) would be done automatically, right?
Thanks in advance for any assistance. If you need more info about my
implementation, I will happily provide it.
br,
Alex
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2991328
role of ServerAdapter?
Thanks,
Alex
On Feb 29, 2012, at 3:55 AM, Thierry Boileau-3 [via Restlet Discuss] wrote:
> Hello Alex,
>
> did you try to update the list of client connectors registered by the
> Component?
> You can make a call such as Component#getClients().add(Protoco
Hi,
I am integrating Guice and Restlet in an approach that involves using
ServletAdapter instead of wiring up ServerServlet. Everything works fine
until I want to involve a representation that comes from Freemarker.
The problems seem to come from the fact that I can't properly set the client
prot
On Fri, Oct 28, 2011 at 5:18 AM, Jerome Louvel
wrote:
> Hi Alex,
>
> The Response.serverInfo.agent property is mapped to this HTTP Server header,
> so any place where you can update your response object should do.
OK. That's what I thought.
As an enhancement, it would certai
Is there any easy way to control the Server header in the response
other than using a Filter?
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2865474
pens on the server. There should be two requests and maybe the
second one failed.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2864513
into ChallengeRequest instances.
...just a bit a feedback. I'm not quite sure what I would do about
this right now.
[1] http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-10
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2859140
On Wed, Oct 12, 2011 at 1:05 AM, Thierry Boileau
wrote:
> Hello Alex,
>
> I've entered an issue for tracking this bug :
> http://restlet.tigris.org/issues/show_bug.cgi?id=1338.
> We're quite busy but will have a look at this preoccupating error.
Thanks. I have a t
On Tue, Sep 27, 2011 at 5:36 AM, Alex Milowski wrote:
> Yet even more information:
>
> On a whim, I switched back to creating a new Client and not using the
> Client returned by getContext().getClientDispatcher(). I call stop()
> when I am finished and now everything works fine.
I have the org.restlet.ext.net.jar in the classpath (jar manifest),
should I be seeing that? It doesn't seem right.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2846654
orization request for {...} returned: 1001
Any ideas? I'm going to try aborting the response once I've got the
authentication response to see what happens.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2846630
On Mon, Sep 26, 2011 at 2:44 PM, Alex Milowski wrote:
> I was tracking down an out-of-memory error with my new Atomojo V2
> server project where I moved to 2.1.m7 and I found the solution quite
> disturbing. I have a configuration where I call out to Google's
> ClientLogin and
g the org.restlet.ext.net.jar client connector but the SSL
client support also requires org.restlet.ext.ssl.jar. When I looked
at the memory consumption, there were class from
org.restlet.ext.ssl.jar involved.
--Alex Milowski
--
http://restlet.tigris.o
nce could cause
undesirable error states when isAvailable() returns false for some
reason.
What is the intended use isEntityAvailable() considering empty
entities and requests like HEAD versus those that just might be
"slow"?
--Alex Milowski
--
I think this is out of date:
http://www.restlet.org/documentation/2.1/jse/api/org/restlet/Message.html#getAttributes()
The instance returned for "org.restlet.http.headers" is typed as
Series
--Alex Milowski
--
http://restlet.tig
on the ConverterService:
http://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/331-restlet/360-restlet.html
I'm left wanting a bit more of an example other than digging into the
source. Neat idea thought and I may have to try this out for my
utSource(resource.get().getReader()));
or you can use the DomRepresentation from the XML extension:
DomRepresentation domRep = new DomRepresentation(resource.get());
Document doc = domRep.getDocument();
I personally use the DocumentBuilder API so I have control over the
DOM construction.
-
re has
only one alias, it shouldn't matter whether the sslServerAlias is set
or not as long as when it is set, it matches the alias.
This seem like a bug.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2829012
hi,
I see no disadvantages. To do so is one of the main concepts in service
orientated architecture. Maybe you want to check out some resources
about that topic.
Greetings,
Alex
On 28.07.2011 00:15, Venkat Veludandi wrote:
> Good afternoon.
> It was not intended but it forced us to
the one provided by the
> "net" extension? I mean, can you add the org.restlet.ext.net.jar to the
> classpath and test?
This is similar to a problem I was having with the internal client
connector. It was fixed by switch to the "net&q
semantics for
these methods.
Certainly, when I get to sending additional data that isn't
embedded in the URI, I'll need to use POST.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2668327
On Tue, Aug 3, 2010 at 8:45 PM, Thierry Boileau
wrote:
> Hello Alex,
>
> this warning should happen in very specific cases, when the resource cannot
> be instantiated. Actually, if you have implemented the default constructor. I
> think you can move this code to the doInit() m
for each application. Is that
> possible from the XML configuration?
Not sure about that...
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2638272
ServerResource instance for every
non-existent resource on the server.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2636938
On Thu, Jul 8, 2010 at 3:13 PM, Alex Milowski wrote:
> I've been playing around with the AccessLogFileHandler rather than
> what I've usually been doing and it works reasonably well except
> that, somehow, I get two files.
>
>
pty.
Any ideas?
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2630977
I think this page is a bit out of date for 2.0:
http://wiki.restlet.org/docs_2.0/13-restlet/48-restlet/101-restlet.html
Specifically, the "org.restlet.util.AccessLogFileHandler" properties
should be "org.restlet.engine.log.AccessLogFileHandler&quo
It is because the parser is
reading the external subset. You (or someone) need to allow you to
turn off retrieving and parsing the external subset.
You could possibly do that by setting the EntityResolver instance.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2626841
On Sun, Jun 13, 2010 at 6:24 PM, Thierry Boileau
wrote:
> Hello Alex,
>
> could you precise the kind of adjustements you made?
Well, I've filed a couple small enhancement requests but I
really have more things that I haven't started yet in mind.
For just about every proj
On Sat, Jun 12, 2010 at 9:42 AM, Jerome Louvel
wrote:
> Hi Alex,
>
> I've added this test case to ReferenceTestCase class and it runs fine:
>
> public void testRiap() throws Exception {
> Reference baseRef = new Reference("riap://component/exist/db/&quo
tweaking to the Restlet source.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2619808
eDispatcher.java:121)
at org.restlet.Client.handle(Client.java:168)
If I change the above to:
Reference baseRef = new Reference("riap://component/exist/db/");
Reference ref = new Reference(baseRef+"something.xq");
it all works.
Is this a b
to the application itself."
The phrase "mostly useful" doesn't seem to imply "only for". Will any RIAP
URI work? Should I use this Client for RIAP URIs over the getClientDispatcher()
that I have been using?
--Alex Milowski
---
say "this is my application". I'm
not sure I can always get that and so it may only get me part of
the way there.
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2616443
;m only guessing here, it seems that the
sup-application can't refer to its using/parent application.
That probably should be described in more detail.
4. In general, there is very little about riap://application/...
and how it works and/or is to be used.
--Alex Milowski
--
:
http://code.google.com/p/existdb-contrib/downloads/detail?name=exist-restlet-2007-06-10.zip
This is somewhat an "alpha" release. It should stabilize soon, especially
as Restlet 2.0 and eXis 1.5 become official releases.
Feedback, comments, suggestions, etc. are all welcome.
--
stently regardless of the connector in
use and these tests have all worked flawlessly in the past. I was using
the Jetty server connector in 1.1 and I'm now moving to Grizzly.
Is this a bug or an incorrect use of the client API?
[1] http://code.google.c
ARTS_WITH
needs to be changed some (which is a lot).
Are there other "gotchas" I should be concerned about?
Is there somewhere that we are collecting such information?
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?d
On Thu, May 20, 2010 at 8:31 AM, Jerome Louvel
wrote:
> Hi Alex,
>
> 1. This design was already in place for the older Finder, with the
> findTarget() and createTarget() methods. The idea is that find() could
> potentially reuse instances of ServerResource subclasses created
work (even java mail,
grizzly, etc).. It seems a little bit strange, but maybe there is a reason.
I like the way restlet is implemented, I would like to understand it better
and use it when I'll have an opportunity. My purpose is not to criticize,
but to help improve restlet.
Thank you for your wo
work (even java mail,
grizzly, etc).. It seems a little bit strange, but maybe there is a reason.
I like the way restlet is implemented, I would like to understand it better
and use it when I'll have an opportunity. My purpose is not to criticize,
but to help improve restlet.
Thank you for your w
rtable searching through the code, I'm sure others
are not.
Maybe putting targeted "how to" code samples on the wiki would also
be helpful as well as back pointers from the javadoc to the online
documentation in the wiki?
Anyway, so far things are working pretty
.getSecret()));
}
I have tried all kind of value combinations, but none showed the
"Authorization" header in Firebug. WHAT AM I MISSING here? PS: I don't need
a password set here, just a association between "Authorization" -> "Id" in
headers map
Thanks, Alex
--
Vie
The sample “First Step” application firstStepsServlet from version 2.0 does not
work with Tomcat
First I checked the “First Step” application from version 1.1.5 using both
building myself and the supplied war file. Both work fine.
Second I did the same with the version 2.0. Neither the source v
these services to build applications--which is what I do.
Atomojo also provides:
* a Java client for interacting with the APP
* a Javascript client for doing the same
* a web server component that uses configures itself using
atom feeds (a special wrap-up of Restlet)
* s
g such an error (e.g 400
Bad request).
--Alex Milowski
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2379742
You've got warnings in your log that say you are missing the "file" protocol.
You should add it to your component's list of client protocols:
getClients().add(Protocol.FILE);
Try that first.
On Fri, Dec 5, 2008 at 9:10 AM, Johnny Doe <[EMAIL PROTECTED]> wrote:
> I've read old messages he
e.getEntity();
MediaType type = rep.getMediaType();
String charset = type.getParmeters().getFirstValue("charset");
rep.setMediaType(MediaType.valueOf(rep.getMediaType().getName()));
rep.setCharacterSet(CharacterSet.valueOf(charset));
}
That seems rather onerous.
--Alex Milowski
age will cause some questions that should be
on a FAQ somewhere.
I've been able to get atomojo and my code up and running on this with minor
but frequent changes. I'm sure if my experience is typical, but I think this
is a really good step forward even if it has causes a minor amount of pain
upgrading to the trunk.
--Alex Milowski
On Wed, Jul 16, 2008 at 2:32 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
>
> I have added a paragraph on "Confidentiality" in the "Securing applications"
> page covering this topic:
> http://wiki.restlet.org/docs_1.1/g1/13-restlet/29-restl
On Sat, Jul 12, 2008 at 5:51 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex and Bruno,
>
> My understanding is that Alex wants this:
> - a single server socket accepting all HTTP requests
> - several SSL certificates selected depending on the matching virtu
s a Restlet limitation, a Jetty limitation, or a Java
SSL implemenation limitation?
--Alex Milowski
On Wed, Jul 2, 2008 at 7:45 AM, Bruno Harbulot
<[EMAIL PROTECTED]> wrote:
> Hi Alex,
>
>
> Any particular reason why you would need two pairs of private
> key/certificates in the same keystore in practice? If you want to use two
> certificates, you're going to hav
s in a keystore) with a
virtual host?
--Alex Milowski
On Wed, May 21, 2008 at 3:38 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
>
> Thanks for sharing the Atomojo usage details.
>
> The TunnelService has been turned on since 1.0 and nobody complained (yet)
> about the default query parameters ("method"
On Mon, May 19, 2008 at 1:31 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
>
> Like Thierry, I have just checked the code again and in trunk the extensions
> tunnel feature is now off by default.
>
> The idea behind this feature is to have a very simple way f
On Fri, May 16, 2008 at 12:56 PM, Stephan Koops <[EMAIL PROTECTED]> wrote:
> Hi Alex,
>>
>> I now strongly believe that the TunnelService needs to be off by default.
>>
>
> do you used the most actual version? The extension tunnel is off by default
> now.
I jus
eference should remain the same regardless of
whether such filters are enabled.
--Alex Milowski
On Wed, May 14, 2008 at 12:27 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
>
> I have fixed this potential NPE in SVN trunk.
>
> Can't you directly pass your Component's context to the Application
> constructor instead of having to
On Tue, May 13, 2008 at 10:49 AM, Alex Milowski <[EMAIL PROTECTED]> wrote:
> Oddly enough, with all my uses of Restlet, I haven't really used the Directory
> class yet and now that I have, I'm having a bunch of troubles that I just
> don't
> quite understand
ired to switch it off, IMO
Sounds good to me.
.
>
> To switch the extension tunnel off, you need
> getTunnelService().setExtensionTunnel(false).
Thanks. I'll try that.
--Alex Milowski
he TunnelService's want to break my resource
references by :
getTunnelService().setPreferencesTunnel(false);
It seems to me that a service such as this:
* should be *OFF* by default
* shouldn't mess with the original information (e.g. leave the last
segment alone)
* should provide its information as an optional augmentation of the request.
--Alex Milowski
hen I try to access any file (or directory), I get 300 returns with a
URI list. I've
tried turning content negotiation off but that doesn't seem to help.
I can easily write the Restlet to do what I want... but I thought I'd
use "standard"
objects rather than do that... :)
BTW, I'm using the trunk build as of yesterday.
--Alex Milowski
nt as:
Context appContext =
Engine.getInstance().createHelper(MyComponent.this).createContext(getLogger().getName());
This seems rather non-obvious :(
--Alex Milowski
been able to write a webdav-enabled set of resources with the trunk code.
It worked just fine!
--Alex Milowski
On 1/30/08, cleverpig <[EMAIL PROTECTED]> wrote:
> hi,Alex!
>
> Why don't you think about OSGi(http://www.osgi.org)?
> It supports dynamic load jar file,and manages a lot of components in
> osgi container.
Looks very interesting but probably a little more heavy of a
ues to consider?
--Alex Milowski
I want to
store on the request.
If I wanted to make two request to that web service, the current class works
fine because the authorize() method has the request and response as parameters.
--Alex Milowski
t instance.
Currently, I've been doing this by recreating the authenticate method and then
calling my new checkSecret() method. That seems a bit clunky.
--Alex Milowski
On 12/9/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Alex,
>
> > Sufficient to fix my current problem but the fact that it doesn't know
> > by default what extension to given application/xml.
>
> The problem is that ".xml" already maps to "t
On 12/9/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
>
> You can currently customize this setting by providing a custom
> MetadataService and overriding the addCommonExtensions() method.
>
> You then set the custom service on your application:
>
>
On 12/6/07, Thierry Boileau <[EMAIL PROTECTED]> wrote:
> Hello Alex,
>
> thanks for your proposition. I've entered issue #393
> (http://restlet.tigris.org/issues/show_bug.cgi?id=393).
I'd be happy to implement this if we can agree on a design. This
issue is causing
p
r whatever) to
describe the media types and their extensions. By default this could be
packaged in the org.restlet.jar file but could be overridden with a system
property that points to a different location to load.
--Alex Milowski
On 11/23/07, Alex Milowski <[EMAIL PROTECTED]> wrote:
> I see there is a release() method on the Representation class but I can find
> any
> place in the trunk where this method is actually used.
>
> I have a problem in that I'm using an OutputRepresentation instance t
2263)
+++ build.xml (working copy)
@@ -65,7 +65,7 @@
-
+
@@ -126,7 +126,19 @@
+
+
+
+
+
+
+
+
+
+
+
--Alex Milowski
finally clause, I can't handle the
case where the 'write' method is never called for some reason.
--Alex Milowski
cated) { ... }
and that way someone like myself could override the forbid method on a Guard
instance to add a challenge.
This would fix the problem where Firefox et. al. remember the bad password
and require that I "clear passwords" before I get the challenge again.
--Alex Milowski
I found an etag issue in that if the resource exists and if-match: *
is specified,
the operation should be allowed to continue. The current code
disallows this because
it looks only for an exact match if a tag is provided on the resource.
I've attached a patch that fixes this.
--Alex Mil
On 11/8/07, xasima <[EMAIL PROTECTED]> wrote:
> Hi, Jerome and Alex.
>
> We can use http://smallx.dev.java.net or cocoon maps notation>
> (http://cocoon.apache.org/2.2/core-modules/core/2.2/853_1_1.html) to provide
> info for the coordination of such a pipes / URI. I t
On 11/6/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
>
> Thanks for sharing all the details.
>
> 1) For the root attachment issue, you can use this approach instead:
>
> // To match only URIs that are strictly equal to "/"
> Templat
On 11/5/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
>
> As you probably know, we already have a way to specify the type of each
> variable in an URI template via the org.restlet.util.Variable class and the
> Template.variables and Template.defaultVariable p
then in the request get the group. We could bind the groups so that
their group # is the name of the attribute:
Object o = request.getAttributes().get("1");
--Alex Milowski
On 9/23/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
>
> > This is different in that I need to use the ClassLoader associated
> > with a class instance. So, I need to pass MyApp.class and there is
> > no way to make a URI to that resource witho
Variants().add(new Variant(type));
}
public Representation getRepresentation(Variant v)
{
if (getLogger().isLoggable(Level.FINE)) {
getLogger().info("Class resource: "+path);
}
InputStream is = baseClass.getResourceAsStream(path);
if (is==null) {
aded from
the jar file, I have no idea what the jar URL should be. Further, the
class loaded could use multiple jar files and so there isn't a way
to construct one URI.
All that complexity is avoided by using:
MyApp.class.getResourceAsStream(path);
I'm testing some code right no
instance.
It may be the case that "Directory" is the wrong thing here.
Maybe we need a new Finder called ClassResourceFinder such that you can do:
router.attach("/content",new ClassResourceFinder(MyApp.clas,"content"));
and get resources from getResource() calls against the ClassLoader.
--Alex Milowski
anding
this to handle mapping requests to more than one script file/source.
Comments? Suggestions?
Has anyone tried JRuby or Groovy with Restlets ?
--Alex Milowski
1 - 100 of 174 matches
Mail list logo