@Override
    public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain)
            throws IOException, ServletException {
        if (POST_METHOD.equals(((HttpServletRequest) request).getMethod())) {
            if (rejectUri(((HttpServletRequest) request).getRequestURI())) {
                ((HttpServletResponse) response).sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED,
                        "Data must be posted to the datafeed URL");
                return;
            }
        }

        chain.doFilter(request, response);
    }
<p>
Filter to avoid posts to the wrong place (e.g. the root of the app)
</p>
stroom-core/src/main/java/stroom/core/servlet/RejectPostFilter.java