setupMappings(driverSessions, logger);
}
private void setupMappings(DriverSessions driverSessions, ServletLogTo logger) {
getMapper = new UrlMapper(driverSessions, logger);
postMapper = new UrlMapper(driverSessions, logger);
deleteMapper = new UrlMapper(driverSessions, logger);
getMapper.addGlobalHandler(ResultType.EXCEPTION,
new JsonErrorExceptionResult(":exception", ":response"));
postMapper.addGlobalHandler(ResultType.EXCEPTION,
new JsonErrorExceptionResult(":exception", ":response"));