X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=blobdiff_plain;f=library%2FWebLibrary.java;h=7566877cebd48343b47c1764ed31045ee8de78dd;hp=42f7ea5ccadd4eb40d6b86cfd1f6842abab0db50;hb=6d465e886ae46c9da99117cc4302948f700a51c4;hpb=877a44c78f1c4985aa362f6cdce385a4f860b51d diff --git a/library/WebLibrary.java b/library/WebLibrary.java index 42f7ea5..7566877 100644 --- a/library/WebLibrary.java +++ b/library/WebLibrary.java @@ -126,6 +126,16 @@ public class WebLibrary extends BasicLibrary { return new Version(); } + /** + * Stop the server. + * + * @throws IOException + * in case of I/O errors + */ + public void stop() throws IOException { + post(WebLibraryUrls.EXIT_URL, null).close(); + } + @Override public Status getStatus() { try {