class EncodedCharactersFilter extends ZuulFilter {

    @Override
    public Object run() {
        RequestContext context = RequestContext.getCurrentContext();
        final String requestPath = context.getRequest().getRequestURI();
        if (checkRequestForEncodedCharacters(requestPath)) {
            rejectRequest(context);
        }
        return null;
    }

}