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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -