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=590808d01546fe86902f1bcbdece004ad4ffc5ab;hpb=d739ecb22a85d8f982add6d429e069edf7e0dde2;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 590808d..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,18 +1,24 @@
package com.indexdata.mkjsf.pazpar2.commands;
import com.indexdata.mkjsf.pazpar2.commands.sp.ServiceProxyCommand;
-import com.indexdata.mkjsf.pazpar2.state.StateManager;
-
+import com.indexdata.mkjsf.pazpar2.commands.sp.StatCommandSp;
+
+/**
+ * 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(stateMgr);
+ StatCommand newCommand = new StatCommand();
for (String parameterName : parameters.keySet()) {
newCommand.setParameterInState(parameters.get(parameterName).copy());
}
@@ -21,7 +27,7 @@ public class StatCommand extends Pazpar2Command implements ServiceProxyCommand {
@Override
public ServiceProxyCommand getSp() {
- return this;
+ return new StatCommandSp(this);
}
@Override