title: How to disable HTTP POST REQUEST of oData APIs?
body: <p>I'm setting up a new Java application using oData and ServletRegistrationBean.
  I'd like to disable the option of receiving POST request and to allow only GET requests.</p>
  
  <p>Where should I set it up?
  Can I create kind of a whitelist/blacklist?</p>
  
  <pre class="lang-java prettyprint-override"><code>ServletRegistrationBean odataServRegstration = new ServletRegistrationBean(new CXFNonSpringJaxrsServlet(), "/odata/*");
  Map&lt;String, String&gt; initParameters = new HashMap&lt;&gt;();
  initParameters.put("javax.ws.rs.Application", "org.apache.olingo.odata2.core.rest.app.ODataApplication");
  initParameters.put("org.apache.olingo.odata2.service.factory", "com.sap.context.JPAServiceFactory");
  odataServRegstration.setInitParameters(initParameters);
  return odataServRegstration;
  </code></pre>