com.eshore.uas.extensions.IClientDetect Maven / Gradle / Ivy
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);
}