?? webworkmockhttpsession.java
字號:
/*
* Copyright (c) 2002-2003 by OpenSymphony
* All rights reserved.
*/
package org.softme.jworks.test.util;
import com.mockobjects.servlet.MockHttpSession;
import java.util.Enumeration;
import java.util.Hashtable;
/**
* WebWorkMockHttpSession
*
* @author Jason Carreira
* Created Jun 5, 2003 9:26:31 PM
*/
public class WebWorkMockHttpSession extends MockHttpSession {
//~ Instance fields ////////////////////////////////////////////////////////
Hashtable attributes = new Hashtable();
//~ Methods ////////////////////////////////////////////////////////////////
public void setAttribute(String s, Object o) {
attributes.put(s, o);
}
public Object getAttribute(String s) {
return attributes.get(s);
}
public Enumeration getAttributeNames() {
return attributes.keys();
}
public void setExpectedAttribute(String s, Object o) {
throw new UnsupportedOperationException();
}
public void setExpectedRemoveAttribute(String s) {
throw new UnsupportedOperationException();
}
public void removeAttribute(String s) {
attributes.remove(s);
}
public void setupGetAttribute(String s, Object o) {
throw new UnsupportedOperationException();
}
public void setupGetAttributeNames(Enumeration enumeration) {
throw new UnsupportedOperationException();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -