import com.indexdata.mkjsf.config.Configuration;\r
import com.indexdata.mkjsf.config.ConfigurationReader;\r
import com.indexdata.mkjsf.errors.ConfigurationException;\r
+import com.indexdata.mkjsf.errors.MissingConfigurationContextException;\r
import com.indexdata.mkjsf.pazpar2.commands.CommandParameter;\r
import com.indexdata.mkjsf.pazpar2.commands.Pazpar2Command;\r
import com.indexdata.mkjsf.pazpar2.commands.sp.AuthCommand;\r
}\r
\r
@Override\r
- public void configure (ConfigurationReader configReader) {\r
+ public void configure (ConfigurationReader configReader) throws MissingConfigurationContextException {\r
logger.info(Utils.objectId(this) + " is configuring using the provided " + Utils.objectId(configReader));\r
try {\r
config = configReader.getConfiguration(this); \r
checkAuth.setParameterInState(new CommandParameter("action","=","check"));\r
ipAuth = new AuthCommand();\r
ipAuth.setParameterInState(new CommandParameter("action","=","ipauth"));\r
- } catch (ConfigurationException c) {\r
- // TODO: \r
- c.printStackTrace();\r
- } \r
+ } catch (MissingConfigurationContextException mcce) {\r
+ throw mcce;\r
+ } catch (ConfigurationException ce) {\r
+ logger.error("Failed to configure Service Proxy client");\r
+ ce.printStackTrace();\r
+ }\r
}\r
\r
public boolean isAuthenticatingClient () {\r