ois = new ObjectInputStream(socketInputStream); final Object callReturn = ois.readObject(); return checkInvokeMethodReturn(callReturn);
public TCPServerAPI(final Map<String, String> parameters) { final String destinationsList = parameters.get("destinations"); final String[] splittedDestinations = destinationsList.split(","); for (final String destination : splittedDestinations) { destinations.add(getTcpdDestinationFromPattern(destination)); } random = new Random(); }
ServerAPI getServerAPI() throws ServerAPIException, UnknownAPITypeException { try { final ApiAccessType apiType = APITypeManager.getAPIType(); Map<String, String> parameters; switch (apiType) { case LOCAL: return LocalServerAPIFactory.getServerAPI(); case EJB3: parameters = APITypeManager.getAPITypeParameters(); return new EJB3ServerAPI(parameters); case HTTP: parameters = APITypeManager.getAPITypeParameters(); return new HTTPServerAPI(parameters); case TCP: parameters = APITypeManager.getAPITypeParameters(); return new TCPServerAPI(parameters); default: throw new UnknownAPITypeException("Unsupported API Type: " + apiType); } } catch (IOException e) { throw new ServerAPIException(e); } }
ServerAPI getServerAPI() throws ServerAPIException, UnknownAPITypeException { try { final ApiAccessType apiType = APITypeManager.getAPIType(); Map<String, String> parameters; switch (apiType) { case LOCAL: return LocalServerAPIFactory.getServerAPI(); case EJB3: parameters = APITypeManager.getAPITypeParameters(); return new EJB3ServerAPI(parameters); case HTTP: parameters = APITypeManager.getAPITypeParameters(); return new HTTPServerAPI(parameters); case TCP: parameters = APITypeManager.getAPITypeParameters(); return new TCPServerAPI(parameters); default: throw new UnknownAPITypeException("Unsupported API Type: " + apiType); } } catch (IOException e) { throw new ServerAPIException(e); } }
static ServerAPI getServerAPI() throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { try { final ApiAccessType apiType = APITypeManager.getAPIType(); Map<String, String> parameters; switch (apiType) { case LOCAL: return LocalServerAPIFactory.getServerAPI(); case EJB3: parameters = APITypeManager.getAPITypeParameters(); return new EJB3ServerAPI(parameters); case HTTP: parameters = APITypeManager.getAPITypeParameters(); return new HTTPServerAPI(parameters); case TCP: parameters = APITypeManager.getAPITypeParameters(); return new TCPServerAPI(parameters); default: throw new UnknownAPITypeException("Unsupported API Type: " + apiType); } } catch (IOException e) { throw new ServerAPIException(e); } }
public TCPServerAPI(final Map<String, String> parameters) { final String destinationsList = parameters.get("destinations"); final String[] splittedDestinations = destinationsList.split(","); for (final String destination : splittedDestinations) { destinations.add(getTcpdDestinationFromPattern(destination)); } random = new Random(); }
ois = new ObjectInputStream(socketInputStream); final Object callReturn = ois.readObject(); return checkInvokeMethodReturn(callReturn);
static ServerAPI getServerAPI() throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { try { final ApiAccessType apiType = APITypeManager.getAPIType(); Map<String, String> parameters; switch (apiType) { case LOCAL: return LocalServerAPIFactory.getServerAPI(); case EJB3: parameters = APITypeManager.getAPITypeParameters(); return new EJB3ServerAPI(parameters); case HTTP: parameters = APITypeManager.getAPITypeParameters(); return new HTTPServerAPI(parameters); case TCP: parameters = APITypeManager.getAPITypeParameters(); return new TCPServerAPI(parameters); default: throw new UnknownAPITypeException("Unsupported API Type: " + apiType); } } catch (IOException e) { throw new ServerAPIException(e); } }