- final String soneKey = request.getHttpRequest().getPartAsStringFailsafe("request-uri", 256);
- new Thread(new Runnable() {
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void run() {
- webInterface.core().loadSone(soneKey);
- }
- }, "Sone Downloader").start();
+ if (request.getMethod() == Method.POST) {
+ String soneKey = request.getHttpRequest().getPartAsStringFailsafe("request-uri", 256);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ webInterface.core().loadSone(soneKey);
+ throw new RedirectException(returnPage);
+ }