/** * Maps a filter to be executed after any matching routes * * @param path the path * @param filter The filter */ public void after(String path, Filter filter) { addFilter(HttpMethod.after, FilterImpl.create(path, filter)); }
/** * Maps a filter to be executed before any matching routes * * @param filter The filter */ public void before(Filter filter) { addFilter(HttpMethod.before, FilterImpl.create(SparkUtils.ALL_PATHS, filter)); }
/** * Maps a filter to be executed after any matching routes * * @param filter The filter */ public void after(Filter filter) { addFilter(HttpMethod.after, FilterImpl.create(SparkUtils.ALL_PATHS, filter)); }
/** * Maps a filter to be executed after any matching routes even if the route throws any exception * * @param filter The filter */ public void afterAfter(String path, Filter filter) { addFilter(HttpMethod.afterafter, FilterImpl.create(path, filter)); }
/** * Maps a filter to be executed before any matching routes * * @param path the path * @param acceptType the accept type * @param filter The filter */ public void before(String path, String acceptType, Filter filter) { addFilter(HttpMethod.before, FilterImpl.create(path, acceptType, filter)); }
/** * Maps a filter to be executed before any matching routes * * @param path the path * @param filter The filter */ public void before(String path, Filter filter) { addFilter(HttpMethod.before, FilterImpl.create(path, filter)); }
/** * Maps a filter to be executed after any matching routes * * @param path the path * @param acceptType the accept type * @param filter The filter */ public void after(String path, String acceptType, Filter filter) { addFilter(HttpMethod.after, FilterImpl.create(path, acceptType, filter)); }
/** * Maps a filter to be executed after any matching routes even if the route throws any exception * * @param filter The filter */ public void afterAfter(Filter filter) { addFilter(HttpMethod.afterafter, FilterImpl.create(SparkUtils.ALL_PATHS, filter)); }
/** * Maps a filter to be executed after any matching routes * * @param filter The filter */ public void after(Filter filter) { addFilter(HttpMethod.after, FilterImpl.create(SparkUtils.ALL_PATHS, filter)); }
/** * Maps a filter to be executed after any matching routes * * @param path the path * @param filter The filter */ public void after(String path, Filter filter) { addFilter(HttpMethod.after, FilterImpl.create(path, filter)); }
/** * Maps a filter to be executed after any matching routes even if the route throws any exception * * @param filter The filter */ public void afterAfter(String path, Filter filter) { addFilter(HttpMethod.afterafter, FilterImpl.create(path, filter)); }
/** * Maps a filter to be executed before any matching routes * * @param path the path * @param filter The filter */ public void before(String path, Filter filter) { addFilter(HttpMethod.before, FilterImpl.create(path, filter)); }
/** * Maps a filter to be executed before any matching routes * * @param filter The filter */ public void before(Filter filter) { addFilter(HttpMethod.before, FilterImpl.create(SparkUtils.ALL_PATHS, filter)); }
/** * Maps a filter to be executed before any matching routes * * @param path the path * @param acceptType the accept type * @param filter The filter */ public void before(String path, String acceptType, Filter filter) { addFilter(HttpMethod.before, FilterImpl.create(path, acceptType, filter)); }
/** * Maps a filter to be executed after any matching routes * * @param path the path * @param acceptType the accept type * @param filter The filter */ public void after(String path, String acceptType, Filter filter) { addFilter(HttpMethod.after, FilterImpl.create(path, acceptType, filter)); }
/** * Maps a filter to be executed after any matching routes even if the route throws any exception * * @param filter The filter */ public void afterAfter(Filter filter) { addFilter(HttpMethod.afterafter, FilterImpl.create(SparkUtils.ALL_PATHS, filter)); }