Example usage for Java com.google.gwt.user.server.rpc RPCServletUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | acceptsGzipEncoding(HttpServletRequest request) Returns true if the HttpServletRequest accepts Gzip encoding. |
boolean | exceedsUncompressedContentLengthLimit(String content) Returns true if the response content's estimated UTF-8 byte length exceeds 256 bytes. |
boolean | isExpectedException(Method serviceIntfMethod, Throwable cause) Returns true if the java.lang.reflect.Method Method definition on the service is specified to throw the exception contained in the InvocationTargetException or false otherwise. |
String | readContent(HttpServletRequest request, String expectedContentType, String expectedCharSet) Returns the content of an HttpServletRequest by decoding it using expectedCharSet , or UTF-8 if expectedCharSet is null. |
String | readContentAsGwtRpc(HttpServletRequest request) Returns the content of an HttpServletRequest , after verifying a gwt/x-gwt-rpc; charset=utf-8 content type. |
String | readContentAsUtf8(HttpServletRequest request, boolean checkHeaders) Returns the content of an HttpServletRequest by decoding it using the UTF-8 charset. |
String | readContentAsUtf8(HttpServletRequest request) Returns the content of an HttpServletRequest by decoding it using the UTF-8 charset. |
void | writeResponse(ServletContext servletContext, HttpServletResponse response, String responseContent, boolean gzipResponse) Write the response content into the HttpServletResponse . |
void | writeResponseForUnexpectedFailure(ServletContext servletContext, HttpServletResponse response, Throwable failure) Called when the servlet itself has a problem, rather than the invoked third-party method. |