X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=blobdiff_plain;f=library%2FRemoteLibrary.java;h=3e0e192d1806abb2e7d4bd270f0e808821c20991;hp=ce4305aadad96bfe9446817d467234545ccfce7a;hb=258e065f81071a861711ef935dca3ec5563f4360;hpb=669a62833b4458bad0772debdd06921080500221 diff --git a/library/RemoteLibrary.java b/library/RemoteLibrary.java index ce4305a..3e0e192 100644 --- a/library/RemoteLibrary.java +++ b/library/RemoteLibrary.java @@ -21,6 +21,8 @@ import be.nikiroo.utils.serial.server.ConnectActionClientObject; * This {@link BasicLibrary} will access a remote server to list the available * stories, and download the ones you try to load to the local directory * specified in the configuration. + *

+ * This remote library uses a custom fanfix:// protocol. * * @author niki */ @@ -35,8 +37,8 @@ public class RemoteLibrary extends BasicLibrary { } @Override - public Object send(Object data) throws IOException, - NoSuchFieldException, NoSuchMethodException, + public Object send(Object data) + throws IOException, NoSuchFieldException, NoSuchMethodException, ClassNotFoundException { Object rep = super.send(data); if (rep instanceof RemoteLibraryException) { @@ -60,7 +62,7 @@ public class RemoteLibrary extends BasicLibrary { * Create a {@link RemoteLibrary} linked to the given server. *

* Note that the key is structured: - * xxx(|yyy|wl)(|rw) + * xxx(|yyy(|wl)(|bl)(|rw) *

* Note that anything before the first pipe (|) character is * considered to be the encryption key, anything after that character is @@ -75,16 +77,16 @@ public class RemoteLibrary extends BasicLibrary { *

  • yyy: the secondary key
  • *
  • rw: flag to allow read and write access if it is not the * default on this server
  • - *
  • wl: flag to allow access to all the stories (bypassing the - * whitelist if it exists)
  • + *
  • bl: flag to bypass the blacklist (if it exists)
  • + *
  • wl: flag to bypass the whitelist if it exists
  • * *

    * Some examples: *