package com.indexdata.mkjsf.pazpar2.commands;\r
\r
+import com.indexdata.mkjsf.pazpar2.commands.sp.RecordCommandSp;\r
+import com.indexdata.mkjsf.pazpar2.commands.sp.ServiceProxyCommand;\r
import com.indexdata.mkjsf.pazpar2.state.StateManager;\r
\r
-public class RecordCommand extends Pazpar2Command {\r
+public class RecordCommand extends Pazpar2Command implements ServiceProxyCommand {\r
\r
private static final long serialVersionUID = 2817539422114569506L;\r
\r
public void setBinary (String binary) {\r
setParameter(new CommandParameter("binary","=",binary));\r
}\r
+ \r
+ public String getBinary () {\r
+ return getParameterValue("binary");\r
+ }\r
\r
@Override\r
public RecordCommand copy () {\r
} \r
return newCommand;\r
}\r
+ \r
+ \r
+ /**\r
+ * Returns a record command object with Service Proxy extension parameters \r
+ * \r
+ */\r
+ public RecordCommandSp getSp () {\r
+ return new RecordCommandSp(this);\r
+ }\r
}\r