JAX-RS simple binary file download

2011-08-25 Thread Peter Murray
Greetings folks, I'm trying to implement a simple binary transfer of a file from client to server using the JAX-RS extension for restlet. I have a method similar to this: @GET @Path("/download") @Produces("application/octet-stream") public InputStream download() { return new FileInp

Example of a Restlet Application/Servlet using both Client and Server

2007-04-24 Thread Peter Murray
vn/BaseDisseminator/trunk (Subversion repository). Thanks again to Jerome and the rest of the Restlet contributors. Peter -- Peter Murrayhttp://www.pandc.org/peter/work/ Assistant Director, New Service Development tel:+1-614-728-3600;ext=338 OhioLINK: the Ohio Librar

Re: Getting servlet init parameters out of 'web.xml'

2007-04-24 Thread Peter Murray
should be able to get your > initialization parameters simply by doing: > > String value = > getContext().getParameters().getFirstValue("myServletInitParam"); Oh, good heavens -- you're making it that easy? I was trying way to hard to fin

Getting servlet init parameters out of 'web.xml'

2007-04-23 Thread Peter Murray
/noelios/restlet/ext/servlet/ServerServlet.html#getInitParameter(java.lang.String,%20java.lang.String)> but I'm not sure how to get to it in a Restlet era with no "RestletContainer". (I found sample code that used RestletContainer, but that was before the API was finalized.) Peter --

Re: Cannot get context attributes from downstream components

2007-04-23 Thread Peter Murray
t; Map restletAttributes = > application.getContext().getAttributes(); > restletAttributes.put(MyApp.URI_KEY, arg[0]); Ah! That did the trick -- thank you. Peter -- Peter Murrayhttp://www.pandc.org/peter/work/ Assistant Director, New Service Development tel:+1-

Cannot get context attributes from downstream components

2007-04-20 Thread Peter Murray
e command line (or alternatively set as parameter in 'web.xml', but I haven't gotten that far yet in the code). Interestingly, I do get the correct values passed in for NS and OBJECTID. Any pointers on what I might be missing? Peter -- Peter Murrayh

Re: Colons as characters in relative part of the URI

2006-12-13 Thread Peter Murray
y. Thank you. > 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 in this discussion, Jérôme is rethinking the URI > routing that will rely on a URI template standardization process. Thanks, too, f

Possible typo in the tutorial, part 8, LogService -> StatusService

2006-12-12 Thread Peter Murray
I think there might be a typo in the tutorial. Part 8, dealing with custom error handling, says this: In order to customize the default messages, you will simply need to create a subclass of LogService and override the getRepresentation(Status, Request, Response) method. Then just set an

Colons as characters in relative part of the URI

2006-12-12 Thread Peter Murray
Something seems to be swallowing colons from the relative part of the URL when using the hierarchical URIs function. My code looks like this: Router router = new Router(); Handler getXml = new GetXml(); router.attach("/getXml/{PID}", getXml);

Re: Status of b20 w/ pieces necessary for Spring Framework integration

2006-10-06 Thread Peter Murray
xt week. Peter -- Peter Murray http://www.pandc.org/peter/work/ Assistant Director, Multimedia Systems tel:+1-614-728-3600;ext=338 OhioLINK: the Ohio Library and Information Network Columbus, Ohio The Disruptive Library Technology Jester http://dltj.org/

Status of b20 w/ pieces necessary for Spring Framework integration

2006-10-06 Thread Peter Murray
Without intending to sound like a pest, could I get an update on the greatly anticipated b20 release -- when it will be out and if it will have the remaining pieces necessary to execute the integration with the Spring Framework? Thanks in advance. Best, Peter -- Peter Murray

Re: b17, tomcat and spring

2006-09-13 Thread Peter Murray
hanks for the clarification. I'd like to do what I'm doing in Spring, but I can hack around without it for a little while longer. Good luck preparing b19 -- I'll be eagerly watching and waiting to dive in when it comes out. Peter -- Peter Murray http://ww

Re: b17, tomcat and spring

2006-09-12 Thread Peter Murray
me! Welcome back from your three week break. Apologies if this question sounds dense, but by "partially supported" do you mean "you can't yet get there from here?" I, too, would be willing to help, but I don't see enough of the pieces fitting together to make it

Re: b17, tomcat and spring

2006-08-30 Thread Peter Murray
Jerome Louvel noelios.com> writes: > In upcoming versions, you will be able to ignore all this plumbing in order > to focus on your business logic. Please be patient, beta 18 is coming along With b18 out now, can you offer some hints on how to ignore a lot of the plumbing and make it work? I can