private ServletRequestHandler newPostHttpRequestHandler ( ) { return new ServletRequestHandler ( ) { /** {@inheritDoc} */ public JSONAware handleRequest ( HttpServletRequest pReq , HttpServletResponse pResp ) throws IOException { String encoding = pReq . getCharacterEncoding ( ) ; InputStream is = pReq . getInputStream ( ) ; return requestHandler . handlePostRequest ( pReq . getRequestURI ( ) , is , encoding , getParameterMap ( pReq ) ) ; } } ; }
factory method for POST request handler