X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FWebLibraryServerHtml.java;h=ac0631dd60ba32abc8f34b7297510bbc78039c95;hb=33c6a3f700ed10ce63a5601237c9072f25b825ef;hp=a534b4cdafbbdd8ec1c4c6b373bb7fc2953ec58c;hpb=f70bcacf8bfccfff405d4fdaaa38b0e322945125;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/library/WebLibraryServerHtml.java b/src/be/nikiroo/fanfix/library/WebLibraryServerHtml.java index a534b4c..ac0631d 100644 --- a/src/be/nikiroo/fanfix/library/WebLibraryServerHtml.java +++ b/src/be/nikiroo/fanfix/library/WebLibraryServerHtml.java @@ -67,6 +67,9 @@ abstract class WebLibraryServerHtml implements Runnable { protected abstract Response imprtProgress(String uri, WLoginResult login); + protected abstract Response delete(String uri, WLoginResult login) + throws IOException; + public WebLibraryServerHtml(boolean secure) throws IOException { Integer port = Instance.getInstance().getConfig() .getInteger(Config.SERVER_PORT); @@ -205,6 +208,8 @@ abstract class WebLibraryServerHtml implements Runnable { } else { rep = imprtProgress(uri, login); } + } else if (WebLibraryUrls.isDeleteUrl(uri)) { + rep = delete(uri, login); } else { getTraceHandler().error( "Supported URL was not processed: " @@ -251,9 +256,7 @@ abstract class WebLibraryServerHtml implements Runnable { } }; - if (ssf != null) - - { + if (ssf != null) { getTraceHandler().trace("Install SSL on the web server..."); server.makeSecure(ssf, null); getTraceHandler().trace("Done.");