Java Code Examples for com.jfinal.kit.HttpKit#readData()

The following examples show how to use com.jfinal.kit.HttpKit#readData() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HttpExtKit.java    From jfinal-ext3 with Apache License 2.0 5 votes vote down vote up
public static byte[] readByteData(HttpServletRequest request) {
	String ret = HttpKit.readData(request);
	byte[] data = null;
	try {
		data = ret.getBytes("UTF-8");
	} catch (UnsupportedEncodingException e) {
		new RuntimeException(e);
	}
	return data;
}
 
Example 2
Source File: HttpExtKit.java    From jfinal-ext3 with Apache License 2.0 4 votes vote down vote up
public static byte[] readHexByteData(HttpServletRequest request) {
	String ret = HttpKit.readData(request);
	return HexKit.HexStringToBytes(ret);
}