--- dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/RestCommands.java 2016/01/31 21:56:30 2890 +++ dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/RestCommands.java 2016/02/05 11:01:48 2927 @@ -15,17 +15,19 @@ public class RestCommands { - @Path("/distancecalculation/{distributor}") + @Path("/distancecalculation/{distributor}/{type}") @GET @Produces(MediaType.TEXT_PLAIN) public String scheduleDistanceCalculation( @Context ServletContext context, - @PathParam("distributor") String distributor) { + @PathParam("distributor") String distributor, + @PathParam("type") String type + ) { TaskManager taskMgr = (TaskManager) context.getAttribute(TaskManager.TASKMANAGER); - AfstandAndenRuteTask task = new AfstandAndenRuteTask( distributor.toUpperCase() ); + AfstandAndenRuteTask task = new AfstandAndenRuteTask( distributor.toUpperCase(), type ); taskMgr.submitTask(task);