- HttpServletServer testServer = HttpServletServerFactoryInstance.getServerFactory().build(GUARDSIM_SERVER_NAME,
- LOCALHOST, GUARDSIM_SERVER_PORT, "/", false, true);
- testServer.addServletClass("/*", GuardSimulatorJaxRs.class.getName());
+ return buildXacmlSim();
+ }
+
+ /**
+ * Build a xacml simulator.
+ *
+ * @return the simulator
+ * @throws InterruptedException if a thread is interrupted
+ */
+ public static HttpServletServer buildXacmlSim() throws InterruptedException {
+ HttpServletServer testServer = HttpServletServerFactoryInstance.getServerFactory().build(XACMLSIM_SERVER_NAME,
+ LOCALHOST, XACMLSIM_SERVER_PORT, "/", false, true);
+ testServer.addServletClass("/*", XacmlSimulatorJaxRs.class.getName());