X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fcom%2Findexdata%2Fmkjsf%2Fpazpar2%2Fcommands%2FInitCommand.java;h=3166168ba6708cb7386193cb998f206e10ac9d20;hb=d739ecb22a85d8f982add6d429e069edf7e0dde2;hp=144a1a7a3ca250ce0fdfc3a43fc05f047c1ae772;hpb=3d72901f9f5e443837bf67603024de8c7d06a68e;p=mkjsf-moved-to-github.git diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/InitCommand.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/InitCommand.java index 144a1a7..3166168 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/InitCommand.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/InitCommand.java @@ -15,10 +15,18 @@ public class InitCommand extends Pazpar2Command implements ServiceProxyCommand { setParameterInState(new CommandParameter("clear","=",clear)); } + public String getClear() { + return getParameterValue("clear"); + } + public void setService(String serviceId) { setParameterInState(new CommandParameter("service","=",serviceId)); } + public String getService() { + return getParameterValue("service"); + } + @Override public void setSession (String sessionId) { throw new UnsupportedOperationException("Cannot set session id on init command"); @@ -41,5 +49,10 @@ public class InitCommand extends Pazpar2Command implements ServiceProxyCommand { return this; } + @Override + public boolean spOnly() { + return false; + } + }