📄 sessioncontent.java
字号:
package test;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
*
* @author worldheart
*
*/
public class SessionContent implements ISessionContent {
protected final static Log log = LogFactory.getLog(SessionContent.class);
private INameList nameList;
private IValueList valueList;
public SessionContent(){
log.info("构建新的SessionContent()实例");
}
public void processSessionContent(Map map) {
this.nameList.getNameList().clear();
this.valueList.getValueList().clear();
Set set = map.keySet();
Iterator iterator = set.iterator();
if(!set.isEmpty()){
while(iterator.hasNext()){
String sessionKey = (String)iterator.next();
this.nameList.getNameList().add(sessionKey);
this.valueList.getValueList().add((String)map.get(sessionKey));
}
log.info(nameList);
log.info(valueList);
}
}
public void setNameList(INameList nameList) {
this.nameList = nameList;
}
public void setValueList(IValueList valueList) {
this.valueList = valueList;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -