java - Restlet 2.3 How to set temp directory -
i using restlet 2.3 jetty ext. how set temp directory jar unpacked to?
using jetty in project can achieved using:
private void resettempdirectory(webappcontext context, string currentdir) {         file tmpdir = new file(currentdir, ".tmp");         tmpdir.deleteonexit();         tmpdir.mkdir();         context.settempdirectory(tmpdir);     } 
you can find here supported parameters jetty server connector: http://restlet.com/technical-resources/restlet-framework/javadocs/2.3/jse/ext/. appears there no parameter temp directory.
for information here way configure server connector using context: http://restlet.com/technical-resources/restlet-framework/guide/2.3/core/base/connectors.
i have @ jetty extension. restlet leverages class server  , jettyservercall respectively create jetty server , handle requests. can't see use of class webappcontext.
that said, i'm not sure jetty / restlet unpack things ;-) give me hints way configure / use jetty in other project? thanks!
hope helps you, thierry
Comments
Post a Comment