Adds windowid parameter to applicable commands
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / BytargetCommand.java
index 89a5bbd..6fb213e 100644 (file)
@@ -1,7 +1,14 @@
 package com.indexdata.mkjsf.pazpar2.commands;\r
 \r
+import com.indexdata.mkjsf.pazpar2.commands.sp.BytargetCommandSp;\r
 import com.indexdata.mkjsf.pazpar2.commands.sp.ServiceProxyCommand;\r
 \r
+/**\r
+ * Represents a Pazpar2 <code>bytarget</code> command, can be accessed by <code>pzreq.bytarget</code>\r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
 public class BytargetCommand extends Pazpar2Command implements ServiceProxyCommand {\r
 \r
   private static final long serialVersionUID = 9070458716105294392L;\r
@@ -19,7 +26,7 @@ public class BytargetCommand extends Pazpar2Command implements ServiceProxyComma
   }\r
 \r
   public ServiceProxyCommand getSp() {\r
-    return this;\r
+    return new BytargetCommandSp(this);\r
   }\r
 \r
   @Override\r