X-Git-Url: http://git.indexdata.com/?p=mkjsf-moved-to-github.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fcom%2Findexdata%2Fmkjsf%2Fpazpar2%2Fcommands%2FRecordCommand.java;h=8cc039db641f5f1b13e5d792cd45ca800971079e;hp=d453b75be2e5c61752da96a6bb3444810bf09f76;hb=86f289cd42ba95846c80d22129ed565e4e9d6dde;hpb=41bb69937ef5369c12e78324bf893d950ff82887 diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/RecordCommand.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/RecordCommand.java index d453b75..8cc039d 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/RecordCommand.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/RecordCommand.java @@ -12,7 +12,7 @@ import com.indexdata.mkjsf.pazpar2.data.ResponseDataObject; import com.indexdata.mkjsf.pazpar2.data.ResponseParser; /** - * Represents a Pazpar2 record command. + * Represents a Pazpar2 record command, can be accessed by pzreq.record * * @author Niels Erik * @@ -27,6 +27,14 @@ public class RecordCommand extends Pazpar2Command implements ServiceProxyCommand super("record"); } + /** + * Special handling of record responses since they come in three distinctly different ways + *
    + *
  1. As a regular <record> document
  2. + *
  3. In arbitrary XML format, in case of an offset request to get the native format
  4. + *
  5. In binary (non XML) format
  6. + *
+ */ @Override public ResponseDataObject run() { ResponseDataObject responseObject = null;