title: Drop Http request in Spring Controller
body: <p>I have a spring controller with some handler methods. Something like this:</p>
  
  <pre><code>protected void doPost(final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse) {
      if (requestShallNotPass(httpServletRequest)) {
          // ignore the request and don't send the response
          return;
      }
  
      // business logic ... 
  }
  </code></pre>
  
  <p>Some of the requests needs to be dropped based on a custom logic and the response never sent to client. Doing a return in <code>doPost()</code> still sends an empty response to client. </p>
  
  <p>What would be the right way to ignore that request?</p>