6fb213e4672caa9a1d30e52b8e1049f08831e3c5
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / BytargetCommand.java
1 package com.indexdata.mkjsf.pazpar2.commands;\r
2 \r
3 import com.indexdata.mkjsf.pazpar2.commands.sp.BytargetCommandSp;\r
4 import com.indexdata.mkjsf.pazpar2.commands.sp.ServiceProxyCommand;\r
5 \r
6 /**\r
7  * Represents a Pazpar2 <code>bytarget</code> command, can be accessed by <code>pzreq.bytarget</code>\r
8  * \r
9  * @author Niels Erik\r
10  *\r
11  */\r
12 public class BytargetCommand extends Pazpar2Command implements ServiceProxyCommand {\r
13 \r
14   private static final long serialVersionUID = 9070458716105294392L;\r
15 \r
16   public BytargetCommand() {\r
17     super("bytarget");\r
18   }\r
19 \r
20   public BytargetCommand copy () {\r
21     BytargetCommand newCommand = new BytargetCommand();\r
22     for (String parameterName : parameters.keySet()) {\r
23       newCommand.setParameterInState(parameters.get(parameterName).copy());      \r
24     }    \r
25     return newCommand;\r
26   }\r
27 \r
28   public ServiceProxyCommand getSp() {\r
29     return new BytargetCommandSp(this);\r
30   }\r
31 \r
32   @Override\r
33   public boolean spOnly() {\r
34     return false;\r
35   }\r
36 }\r