X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fcom%2Findexdata%2Fmkjsf%2Fpazpar2%2Fcommands%2FStatCommand.java;h=355c6f2719bd433cf0f93d14f13a0138ac0e5161;hb=6c92dd9a72ae1fa27dd061c1897531879b8c0ba6;hp=6b885bc789b0c5a6cdbb8c4a154d1c7dc95d163f;hpb=ccb28ae8d5d46d29c40bd8b1637522c212b80636;p=mkjsf-moved-to-github.git
diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/StatCommand.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/StatCommand.java
index 6b885bc..355c6f2 100644
--- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/StatCommand.java
+++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/StatCommand.java
@@ -1,13 +1,39 @@
package com.indexdata.mkjsf.pazpar2.commands;
-import com.indexdata.mkjsf.pazpar2.state.StateManager;
+import com.indexdata.mkjsf.pazpar2.commands.sp.ServiceProxyCommand;
+import com.indexdata.mkjsf.pazpar2.commands.sp.StatCommandSp;
-public class StatCommand extends Pazpar2Command {
+/**
+ * stat
Pazpar2 command, referenced as: pzreq.stat
+ *
+ * @author Niels Erik
+ *
+ */
+public class StatCommand extends Pazpar2Command implements ServiceProxyCommand {
private static final long serialVersionUID = 3980630346114157336L;
- public StatCommand(StateManager stateMgr) {
- super("stat",stateMgr);
+ public StatCommand() {
+ super("stat");
}
+
+ public StatCommand copy () {
+ StatCommand newCommand = new StatCommand();
+ for (String parameterName : parameters.keySet()) {
+ newCommand.setParameterInState(parameters.get(parameterName).copy());
+ }
+ return newCommand;
+ }
+
+ @Override
+ public ServiceProxyCommand getSp() {
+ return new StatCommandSp(this);
+ }
+
+ @Override
+ public boolean spOnly() {
+ return false;
+ }
+
}