Example usage for com.google.gwt.user.server.rpc RPCServletUtils readContentAsUtf8

List of usage examples for com.google.gwt.user.server.rpc RPCServletUtils readContentAsUtf8

Introduction

In this page you can find the example usage for com.google.gwt.user.server.rpc RPCServletUtils readContentAsUtf8.

Prototype

@Deprecated
public static String readContentAsUtf8(HttpServletRequest request, boolean checkHeaders)
        throws IOException, ServletException 

Source Link

Document

Returns the content of an HttpServletRequest by decoding it using the UTF-8 charset.

Usage

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);
}