Javadoc
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / StatCommand.java
index 5229060..355c6f2 100644 (file)
@@ -1,9 +1,10 @@
 package com.indexdata.mkjsf.pazpar2.commands;\r
 \r
 import com.indexdata.mkjsf.pazpar2.commands.sp.ServiceProxyCommand;\r
+import com.indexdata.mkjsf.pazpar2.commands.sp.StatCommandSp;\r
 \r
 /**\r
- * Represents a Pazpar2 <code>stat</code> command, can be accessed by <code>pzreq.state</code>\r
+ * <b><code>stat</code></b> Pazpar2 command, referenced as: <code>pzreq.stat</code>\r
  * \r
  * @author Niels Erik\r
  *\r
@@ -26,7 +27,7 @@ public class StatCommand extends Pazpar2Command implements ServiceProxyCommand {
 \r
   @Override\r
   public ServiceProxyCommand getSp() {\r
-    return this;\r
+    return new StatCommandSp(this);\r
   }\r
 \r
   @Override\r