All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eshore.uas.extensions.IClientDetect Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package com.eshore.uas.extensions;

import javax.servlet.http.HttpServletRequest;

/**
 * 设备检测接口
 * @author eric
 *
 */
public interface IClientDetect {
	
	/**
	 * 从http request 获取设备信息
	 * @param req req
	 * @return clientid
	 */
	String getClientId(HttpServletRequest req);
	
	/**
	 * 获取当前设备信息
	 * @param id id
	 * @return client id
	 */
	String getClientId(String id);
	
	/**
	 * 
	 * @param id 用户ID
	 * @param uid 设备id
	 */
	void setClientId(String id,String uid);
	
	/**
	 * 踢下线
	 * @param req 请求信息
	 * @param id 用户ID
	 * @param domain domain
	 * @return should kickoff
	 */
	boolean kickOff(HttpServletRequest req,String id,String domain);
	 
	/**
	 * 更新设备
	 * @param req req
	 * @param id id
	 * @param domain domain
	 */
	void reflesh(HttpServletRequest req,String id, String domain);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy