List of usage examples for com.google.gwt.user.server.rpc RPCServletUtils readContentAsUtf8
@Deprecated public static String readContentAsUtf8(HttpServletRequest request, boolean checkHeaders) throws IOException, ServletException
From source file:com.dotspots.rpcplus.flexiblerpc.FlexibleRemoteServiceServlet.java
License:Apache License
/** * Override this method in order to control the parsing of the incoming request. For example, you may want to bypass * the check of the Content-Type and character encoding headers in the request, as some proxies re-write the request * headers. Note that bypassing these checks may expose the servlet to some cross-site vulnerabilities. * /*from w w w .j a v a 2s . co m*/ * @param request * the incoming request * @return the content of the incoming request encoded as a string. */ protected String readContent(HttpServletRequest request) throws ServletException, IOException { return RPCServletUtils.readContentAsUtf8(request, true); }