It is currently Tue Feb 21, 2017 2:19 pm

News News of Java

Site map of Java » Forum : Java

Java back-end for CrossUI

CrossUI Java Backend Demo

xuiUtils.java :

package com.crossui;

import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.zip.GZIPOutputStream;
import java.util.zip.ZipOutputStream;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
*
* @author linb
*
*/

public class xuiUtils {
// input keys
public static final String LINB_KEYWORD_CALLBACK = "callback";

// output keys
public static final String LINB_KEYWORD_DATA = "data";
public static final String LINB_KEYWORD_ERROR = "error";

@SuppressWarnings("unchecked")
public static Map<String, Object> getRequestData(HttpServletRequest req)
throws Exception {
// UTF-8
req.setCharacterEncoding("UTF-8");
// request data
Map<String, ...
Read more : CrossUI Java Backend Demo | Views : 3868 | Replies : 0


 

Login  •  Register


Statistics

Total posts 934 • Total topics 315 • Total members 35

cron