Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
cc7902e1
提交
cc7902e1
authored
2月 27, 2015
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
The Servlet API 3.0.1 is now used, instead of 2.4.
上级
b78c3058
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
156 行增加
和
12 行删除
+156
-12
TestServlet.java
h2/src/test/org/h2/test/unit/TestServlet.java
+156
-12
没有找到文件。
h2/src/test/org/h2/test/unit/TestServlet.java
浏览文件 @
cc7902e1
...
...
@@ -12,14 +12,24 @@ import java.sql.DriverManager;
import
java.sql.SQLException
;
import
java.sql.Statement
;
import
java.util.Enumeration
;
import
java.util.EventListener
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Properties
;
import
java.util.Set
;
import
javax.servlet.Filter
;
import
javax.servlet.FilterRegistration
;
import
javax.servlet.FilterRegistration.Dynamic
;
import
javax.servlet.RequestDispatcher
;
import
javax.servlet.Servlet
;
import
javax.servlet.ServletContext
;
import
javax.servlet.ServletContextEvent
;
import
javax.servlet.ServletException
;
import
javax.servlet.ServletRegistration
;
import
javax.servlet.SessionCookieConfig
;
import
javax.servlet.SessionTrackingMode
;
import
javax.servlet.descriptor.JspConfigDescriptor
;
import
org.h2.api.ErrorCode
;
import
org.h2.server.web.DbStarter
;
...
...
@@ -60,14 +70,10 @@ public class TestServlet extends TestBase {
return
attributes
.
get
(
key
);
}
/**
* Set an initialization parameter.
*
* @param key the parameter key
* @param value the value
*/
void
setInitParameter
(
String
key
,
String
value
)
{
@Override
public
boolean
setInitParameter
(
String
key
,
String
value
)
{
initParams
.
setProperty
(
key
,
value
);
return
true
;
}
@Override
...
...
@@ -76,7 +82,7 @@ public class TestServlet extends TestBase {
}
@Override
public
Enumeration
<
Object
>
getAttributeNames
()
{
public
Enumeration
<
String
>
getAttributeNames
()
{
throw
new
UnsupportedOperationException
();
}
...
...
@@ -86,7 +92,7 @@ public class TestServlet extends TestBase {
}
@Override
public
Enumeration
<
Object
>
getInitParameterNames
()
{
public
Enumeration
<
String
>
getInitParameterNames
()
{
throw
new
UnsupportedOperationException
();
}
...
...
@@ -131,7 +137,7 @@ public class TestServlet extends TestBase {
}
@Override
public
Set
<
Object
>
getResourcePaths
(
String
string
)
{
public
Set
<
String
>
getResourcePaths
(
String
string
)
{
throw
new
UnsupportedOperationException
();
}
...
...
@@ -157,7 +163,7 @@ public class TestServlet extends TestBase {
* @deprecated as of servlet API 2.1
*/
@Override
public
Enumeration
<
Object
>
getServletNames
()
{
public
Enumeration
<
String
>
getServletNames
()
{
throw
new
UnsupportedOperationException
();
}
...
...
@@ -165,7 +171,7 @@ public class TestServlet extends TestBase {
* @deprecated as of servlet API 2.0
*/
@Override
public
Enumeration
<
Objec
t
>
getServlets
()
{
public
Enumeration
<
Servle
t
>
getServlets
()
{
throw
new
UnsupportedOperationException
();
}
...
...
@@ -192,6 +198,144 @@ public class TestServlet extends TestBase {
throw
new
UnsupportedOperationException
();
}
@Override
public
Dynamic
addFilter
(
String
arg0
,
String
arg1
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
Dynamic
addFilter
(
String
arg0
,
Filter
arg1
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
Dynamic
addFilter
(
String
arg0
,
Class
<?
extends
Filter
>
arg1
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
void
addListener
(
String
arg0
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
<
T
extends
EventListener
>
void
addListener
(
T
arg0
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
void
addListener
(
Class
<?
extends
EventListener
>
arg0
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
javax
.
servlet
.
ServletRegistration
.
Dynamic
addServlet
(
String
arg0
,
String
arg1
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
javax
.
servlet
.
ServletRegistration
.
Dynamic
addServlet
(
String
arg0
,
Servlet
arg1
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
javax
.
servlet
.
ServletRegistration
.
Dynamic
addServlet
(
String
arg0
,
Class
<?
extends
Servlet
>
arg1
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
<
T
extends
Filter
>
T
createFilter
(
Class
<
T
>
arg0
)
throws
ServletException
{
throw
new
UnsupportedOperationException
();
}
@Override
public
<
T
extends
EventListener
>
T
createListener
(
Class
<
T
>
arg0
)
throws
ServletException
{
throw
new
UnsupportedOperationException
();
}
@Override
public
<
T
extends
Servlet
>
T
createServlet
(
Class
<
T
>
arg0
)
throws
ServletException
{
throw
new
UnsupportedOperationException
();
}
@Override
public
void
declareRoles
(
String
...
arg0
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
ClassLoader
getClassLoader
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
String
getContextPath
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
Set
<
SessionTrackingMode
>
getDefaultSessionTrackingModes
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
int
getEffectiveMajorVersion
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
int
getEffectiveMinorVersion
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
Set
<
SessionTrackingMode
>
getEffectiveSessionTrackingModes
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
FilterRegistration
getFilterRegistration
(
String
arg0
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
Map
<
String
,
?
extends
FilterRegistration
>
getFilterRegistrations
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
JspConfigDescriptor
getJspConfigDescriptor
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
ServletRegistration
getServletRegistration
(
String
arg0
)
{
throw
new
UnsupportedOperationException
();
}
@Override
public
Map
<
String
,
?
extends
ServletRegistration
>
getServletRegistrations
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
SessionCookieConfig
getSessionCookieConfig
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
void
setSessionTrackingModes
(
Set
<
SessionTrackingMode
>
arg0
)
{
throw
new
UnsupportedOperationException
();
}
}
@Override
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论