/** * Returns endpoint sequence related to the given session * * @param information Session information * @return endpoint sequence */ public List<Endpoint> getChildEndpoints(SessionInformation information) { List<Endpoint> endpoints; if (isClustered) { endpoints = getEndpoints(information.getPath(), information.getRootEndpointName()); } else { endpoints = information.getEndpointList(); } if (log.isDebugEnabled()) { log.debug("Retrieving endpoint sequence : " + endpoints + " for session " + information.getId()); } if (endpoints == null || endpoints.isEmpty()) { handleException("Session with id " + information.getId() + " is invalid ." + " A session must have a endpoint sequence associated with it"); } List<Endpoint> toBeSent = new ArrayList<Endpoint>(); toBeSent.addAll(endpoints); //remove the root as only expect children toBeSent.remove(0); return toBeSent; }
/** * Returns endpoint sequence related to the given session * * @param information Session information * @return endpoint sequence */ public List<Endpoint> getChildEndpoints(SessionInformation information) { List<Endpoint> endpoints; if (isClustered) { endpoints = getEndpoints(information.getPath(), information.getRootEndpointName()); } else { endpoints = information.getEndpointList(); } if (log.isDebugEnabled()) { log.debug("Retrieving endpoint sequence : " + endpoints + " for session " + information.getId()); } if (endpoints == null || endpoints.isEmpty()) { handleException("Session with id " + information.getId() + " is invalid ." + " A session must have a endpoint sequence associated with it"); } List<Endpoint> toBeSent = new ArrayList<Endpoint>(); toBeSent.addAll(endpoints); //remove the root as only expect children toBeSent.remove(0); return toBeSent; }