RE: Re: Using JUnit with JacksonRepresentation

2014-08-10 Thread Alex Harvey
OutputRepresentation. This is a GAE application. Could this be the problem? Thanks, Alex -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3086557

Using JUnit with JacksonRepresentation

2014-08-08 Thread Alex Harvey
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

Using ClientConnector on GAE

2014-03-19 Thread Alex Harvey
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

ConverterService is swallowing exceptions

2013-09-20 Thread Alex Zuroff
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

Re: Android client - Restlet 2.0.15 - cannot connect with HTTPS/SSL - recoverable error 1001

2013-05-06 Thread Alex
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

Re: Android client - Restlet 2.0.15 - cannot connect with HTTPS/SSL - recoverable error 1001

2013-05-06 Thread Alex
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

Re: Android client - Restlet 2.0.15 - cannot connect with HTTPS/SSL - recoverable error 1001

2013-05-06 Thread Alex
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

Re: Android client - Restlet 2.0.15 - cannot connect with HTTPS/SSL - recoverable error 1001

2013-05-06 Thread Alex
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

Re: Android client - Restlet 2.0.15 - cannot connect with HTTPS/SSL - recoverable error 1001

2013-05-06 Thread Alex
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

Re: Android client - Restlet 2.0.15 - cannot connect with HTTPS/SSL - recoverable error 1001

2013-05-05 Thread Alex
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

Re: Android client - Restlet 2.0.15 - cannot connect with HTTPS/SSL - recoverable error 1001

2013-05-03 Thread Alex
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

Android client - Restlet 2.0.15 - cannot connect with HTTPS/SSL - recoverable error 1001

2013-05-02 Thread Alex
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

OpenId showcase

2012-10-01 Thread Alex K
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

HTTPS/SSL on Android client with Restlet 2.0.14

2012-07-17 Thread 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

Re: USing Freemarker with ServletAdapter

2012-02-29 Thread Alex Harvey
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

USing Freemarker with ServletAdapter

2012-02-28 Thread Alex Harvey
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

Re: Controlling Server Header?

2011-10-28 Thread Alex Milowski
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

Controlling Server Header?

2011-10-27 Thread Alex Milowski
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

Re: Code working on 2.0 doesn't work on 2.1RC1

2011-10-26 Thread Alex Milowski
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

Authorization Header vs. ChallengeResponse

2011-10-19 Thread Alex Milowski
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

Re: Issue in 2.1.m7 with SSL Client Connections

2011-10-12 Thread Alex Milowski
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

Re: Issue in 2.1.m7 with SSL Client Connections

2011-10-11 Thread Alex Milowski
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.

Re: Issue in 2.1.m7 with SSL Client Connections

2011-09-27 Thread Alex Milowski
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

Re: Issue in 2.1.m7 with SSL Client Connections

2011-09-27 Thread Alex Milowski
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

Re: Issue in 2.1.m7 with SSL Client Connections

2011-09-27 Thread Alex Milowski
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

Issue in 2.1.m7 with SSL Client Connections

2011-09-26 Thread Alex Milowski
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

isAvailable() returning false on EmptyRepresentation

2011-09-01 Thread Alex Milowski
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 --

Headers in 2.1

2011-08-31 Thread 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

Re: Version 2: How to get XML representation

2011-08-26 Thread Alex Milowski
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

Re: Version 2: How to get XML representation

2011-08-25 Thread Alex Milowski
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. -

sslServerAlias use?

2011-08-23 Thread Alex Milowski
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

Re: Calling Restful web service within a Restful Web Service

2011-07-31 Thread Alex K
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

Re: Re: Internal Connector Error (1002)

2011-03-11 Thread Alex Milowski
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

XMPP URI Support

2010-10-05 Thread Alex Milowski
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

Re: Warnings from Finder?

2010-08-04 Thread Alex Milowski
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

Re: About loading component from XML configuration

2010-07-26 Thread Alex Milowski
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

Warnings from Finder?

2010-07-22 Thread Alex Milowski
ServerResource instance for every non-existent resource on the server. --Alex Milowski -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2636938

Re: Access Logging - Multiple Files

2010-07-09 Thread Alex Milowski
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. > >

Access Logging - Multiple Files

2010-07-08 Thread Alex Milowski
pty. Any ideas? --Alex Milowski -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2630977

Access Log Examples - Out of Date?

2010-07-08 Thread Alex Milowski
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

Re: Disable DTD validation doesn't seem to work (DomRepresentation)

2010-06-28 Thread Alex Milowski
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

Re: Who is Using the Component XML Configuration?

2010-06-14 Thread Alex Milowski
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

Re: Null Pointer Exception when using relative references with RIAP

2010-06-12 Thread Alex Milowski
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

Who is Using the Component XML Configuration?

2010-06-11 Thread Alex Milowski
tweaking to the Restlet source. --Alex Milowski -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2619808

Null Pointer Exception when using relative references with RIAP

2010-06-04 Thread Alex Milowski
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

getServerDispatcher() usage

2010-06-04 Thread Alex Milowski
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 ---

More RIAP Features?

2010-06-03 Thread 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

Updating RIAP Documentation?

2010-06-03 Thread Alex Milowski
;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 --

Updated eXist Restlet Integration

2010-06-03 Thread 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. --

Difference Between Internal Server Connector and Grizzly in 2.0RC3?

2010-05-21 Thread Alex Milowski
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

Upgrading to 2.0 "Gotchas"

2010-05-20 Thread Alex Milowski
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

Re: A Couple Restlet 2.0rc2 Documentation Comments

2010-05-20 Thread Alex Milowski
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

Beginner feedback

2010-05-03 Thread Alex Objelean
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

Beginner feedback

2010-04-29 Thread Alex Objelean
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

A Couple Restlet 2.0rc2 Documentation Comments

2010-04-14 Thread Alex Milowski
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

Setting Http Authorization header (part 2)

2009-11-23 Thread Alex Dobjanschi
.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 fro m version 2.0 does not work with Tomcat

2009-08-06 Thread Alex Narinsky
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

Re: Guidance on Atom/APP in Restlet

2009-08-03 Thread Alex Milowski
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

Spaces in Media Type Parameters?

2009-08-03 Thread Alex Milowski
g such an error (e.g 400 Bad request). --Alex Milowski -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2379742

Re: Problem in serving up static pages

2008-12-07 Thread Alex Milowski
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

Multiple Charsets with 1.1M5

2008-07-31 Thread Alex Milowski
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

Re: Important Context changes

2008-07-29 Thread 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

Re: SSL + Virtual Hosts and Issue #489?

2008-07-18 Thread 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

Re: SSL + Virtual Hosts and Issue #489?

2008-07-15 Thread Alex Milowski
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

Re: SSL + Virtual Hosts and Issue #489?

2008-07-07 Thread Alex Milowski
s a Restlet limitation, a Jetty limitation, or a Java SSL implemenation limitation? --Alex Milowski

Re: SSL + Virtual Hosts and Issue #489?

2008-07-03 Thread 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

SSL + Virtual Hosts and Issue #489?

2008-07-01 Thread Alex Milowski
s in a keystore) with a virtual host? --Alex Milowski

Re: Disabling the TunnelService

2008-05-21 Thread 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"

Re: Disabling the TunnelService

2008-05-19 Thread Alex Milowski
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

Re: Disabling the TunnelService

2008-05-16 Thread Alex Milowski
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

Disabling the TunnelService

2008-05-16 Thread Alex Milowski
eference should remain the same regardless of whether such filters are enabled. --Alex Milowski

Re: Issues with Directory and "Custom" contexts

2008-05-14 Thread 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

Re: Troubles with Directory

2008-05-13 Thread Alex Milowski
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

Re: Bad TunnelService, Bad! (was Re: File extensions are not taken...)

2008-05-13 Thread Alex Milowski
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

Bad TunnelService, Bad! (was Re: File extensions are not taken...)

2008-05-13 Thread 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

Troubles with Directory

2008-05-13 Thread 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

Issues with Directory and "Custom" contexts

2008-05-12 Thread Alex Milowski
nt as: Context appContext = Engine.getInstance().createHelper(MyComponent.this).createContext(getLogger().getName()); This seems rather non-obvious :( --Alex Milowski

Re: Webdav and restlet

2008-02-07 Thread Alex Milowski
been able to write a webdav-enabled set of resources with the trunk code. It worked just fine! --Alex Milowski

Re: Security Issues with Dynamic Loading of Applications?

2008-01-31 Thread 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

Security Issues with Dynamic Loading of Applications?

2008-01-26 Thread Alex Milowski
ues to consider? --Alex Milowski

Re: Request in checkSecret()

2008-01-05 Thread 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

Request in checkSecret()

2008-01-04 Thread 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

Re: application/xml in MetadataService

2007-12-10 Thread 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

Re: application/xml in MetadataService

2007-12-09 Thread Alex Milowski
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: > >

Re: application/xml in MetadataService

2007-12-06 Thread Alex Milowski
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

application/xml in MetadataService

2007-12-05 Thread Alex Milowski
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

Re: Releasing Representation

2007-11-24 Thread 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

Build Issues with Grizzly as the Default

2007-11-24 Thread Alex Milowski
2263) +++ build.xml (working copy) @@ -65,7 +65,7 @@ - + @@ -126,7 +126,19 @@ + + + + + + + + + + + --Alex Milowski

Releasing Representation

2007-11-23 Thread Alex Milowski
finally clause, I can't handle the case where the 'write' method is never called for some reason. --Alex Milowski

Guards and 403 Responses

2007-11-21 Thread 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

Patch for if-match: *

2007-11-14 Thread 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

Re: Router.attach & Patterns

2007-11-12 Thread Alex Milowski
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

Re: Router.attach & Patterns

2007-11-12 Thread Alex Milowski
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

Re: Router.attach & Patterns

2007-11-05 Thread Alex Milowski
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

Router.attach & Patterns

2007-11-02 Thread Alex Milowski
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

Re: LocalReference given a Class Instance?

2007-09-23 Thread 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

Re: LocalReference given a Class Instance?

2007-09-07 Thread Alex Milowski
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) {

Re: LocalReference given a Class Instance?

2007-09-07 Thread Alex Milowski
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

LocalReference given a Class Instance?

2007-09-07 Thread Alex Milowski
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

Scripting and Restlets

2007-09-07 Thread 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   2   >