!1 package init

Merge pull request !1 from huanghaitao/master
This commit is contained in:
openeuler-ci-bot 2020-09-01 17:20:21 +08:00 committed by Gitee
commit 3b00438f20
12 changed files with 3881 additions and 0 deletions

202
LICENSE-2.0.txt Normal file
View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

76
httpunit-1.7.pom Normal file
View File

@ -0,0 +1,76 @@
<?xml version="1.0"?><project>
<modelVersion>4.0.0</modelVersion>
<groupId>httpunit</groupId>
<artifactId>httpunit</artifactId>
<name>HttpUnit</name>
<version>1.7</version>
<description>A Java library for the automatic stimulation and testing of web applications.</description>
<url>http://httpunit.sourceforge.net</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://httpunit.sourceforge.net/doc/license.html</url>
</license>
</licenses>
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>xerces</groupId>
<artifactId>xmlParserAPIs</artifactId>
<version>2.2.1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.6.2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>0.9.5</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<version>1.6R5</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>jtidy</groupId>
<artifactId>jtidy</artifactId>
<version>4aug2000r7-dev</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

BIN
httpunit-1.7.zip Normal file

Binary file not shown.

126
httpunit-rhino-1.7.7.patch Normal file
View File

@ -0,0 +1,126 @@
From b16bbb656cf2a65d5339f6b06b51f9ffdc11d586 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Wed, 23 Sep 2015 08:24:17 +0200
Subject: [PATCH] Port to Rhino 1.7.7
---
.../meterware/httpunit/javascript/JavaScript.java | 27 +++++++++-------------
1 file changed, 11 insertions(+), 16 deletions(-)
diff --git a/src/com/meterware/httpunit/javascript/JavaScript.java b/src/com/meterware/httpunit/javascript/JavaScript.java
index 181186b..6d86612 100644
--- a/src/com/meterware/httpunit/javascript/JavaScript.java
+++ b/src/com/meterware/httpunit/javascript/JavaScript.java
@@ -55,8 +55,7 @@ public class JavaScript {
* Initiates JavaScript execution for the specified web response.
*/
public static void run( WebResponse response ) throws IllegalAccessException, InstantiationException,
- InvocationTargetException, ClassDefinitionException, NotAFunctionException,
- PropertyException, SAXException, JavaScriptException {
+ InvocationTargetException, SAXException, JavaScriptException {
Context context = Context.enter();
// suggest bug fix for large java scripts see
// bug report [ 1216567 ] Exception for large javascripts
@@ -75,14 +74,14 @@ public class JavaScript {
/**
* Runs the onload event for the specified web response.
*/
- public static void load( WebResponse response ) throws ClassDefinitionException, InstantiationException, IllegalAccessException, InvocationTargetException, PropertyException, JavaScriptException, SAXException, NotAFunctionException {
+ public static void load( WebResponse response ) throws InstantiationException, IllegalAccessException, InvocationTargetException, JavaScriptException, SAXException {
if (!(response.getScriptableObject().getScriptEngine() instanceof JavaScriptEngine)) run( response );
response.getScriptableObject().load();
}
private static void initHTMLObjects( Scriptable scope ) throws IllegalAccessException, InstantiationException,
- InvocationTargetException, ClassDefinitionException, PropertyException {
+ InvocationTargetException {
ScriptableObject.defineClass( scope, Window.class );
ScriptableObject.defineClass( scope, Document.class );
ScriptableObject.defineClass( scope, Style.class );
@@ -115,7 +114,7 @@ public class JavaScript {
* @scriptable - the scriptable object to do the initialization for
*/
void initialize( JavaScriptEngine parent, ScriptableDelegate scriptable )
- throws SAXException, PropertyException, JavaScriptException, NotAFunctionException {
+ throws SAXException, JavaScriptException {
_scriptable = scriptable;
_scriptable.setScriptEngine( this );
_parent = parent;
@@ -305,7 +304,7 @@ public class JavaScript {
}
- public Scriptable jsGet_frames() throws SAXException, PropertyException, JavaScriptException, NotAFunctionException {
+ public Scriptable jsGet_frames() throws SAXException, JavaScriptException {
if (_frames == null) {
WebResponse.Scriptable scriptables[] = getDelegate().getFrames();
Window[] frames = new Window[ scriptables.length ];
@@ -350,7 +349,7 @@ public class JavaScript {
* @scriptable - the scriptable object to do the initialization for
*/
void initialize( JavaScriptEngine parent, ScriptableDelegate scriptable )
- throws JavaScriptException, NotAFunctionException, PropertyException, SAXException {
+ throws JavaScriptException, SAXException {
super.initialize( parent, scriptable );
_location = (Location) Context.getCurrentContext().newObject( this, "Location" );
@@ -401,7 +400,7 @@ public class JavaScript {
public Window jsFunction_open( Object url, String name, String features, boolean replace )
- throws PropertyException, JavaScriptException, NotAFunctionException, IOException, SAXException {
+ throws JavaScriptException, IOException, SAXException {
WebResponse.Scriptable delegate = getDelegate().open( toStringIfNotUndefined( url ), name, features, replace );
return delegate == null ? null : (Window) toScriptable( delegate );
}
@@ -771,10 +770,6 @@ public class JavaScript {
static ElementArray newElementArray( Scriptable parent ) {
try {
return (ElementArray) Context.getCurrentContext().newObject( parent, "ElementArray" );
- } catch (PropertyException e) {
- throw new RhinoException( e );
- } catch (NotAFunctionException e) {
- throw new RhinoException( e );
} catch (JavaScriptException e) {
throw new RhinoException( e );
}
@@ -860,7 +855,7 @@ public class JavaScript {
}
void initialize( JavaScriptEngine parent, ScriptableDelegate scriptable )
- throws JavaScriptException, NotAFunctionException, PropertyException, SAXException {
+ throws JavaScriptException, SAXException {
super.initialize( parent, scriptable );
_document = (Document) parent;
_style = (Style) Context.getCurrentContext().newObject( this, "Style" );
@@ -912,7 +907,7 @@ public class JavaScript {
}
- public Scriptable jsGet_elements() throws PropertyException, NotAFunctionException, JavaScriptException {
+ public Scriptable jsGet_elements() throws JavaScriptException {
if (_controls == null) {
initializeControls();
}
@@ -935,7 +930,7 @@ public class JavaScript {
}
- private void initializeControls() throws PropertyException, NotAFunctionException, JavaScriptException {
+ private void initializeControls() throws JavaScriptException {
ScriptableDelegate scriptables[] = getDelegate().getElementDelegates();
Control[] controls = new Control[ scriptables.length ];
for (int i = 0; i < controls.length; i++) {
@@ -1011,7 +1006,7 @@ public class JavaScript {
}
void initialize( JavaScriptEngine parent, ScriptableDelegate scriptable )
- throws JavaScriptException, NotAFunctionException, PropertyException, SAXException {
+ throws JavaScriptException, SAXException {
super.initialize( parent, scriptable );
if (parent instanceof Form) _form = (Form) parent;
}
--
2.4.3

474
httpunit-servlet31.patch Normal file
View File

@ -0,0 +1,474 @@
diff --git a/src/com/meterware/servletunit/ServletInputStreamImpl.java b/src/com/meterware/servletunit/ServletInputStreamImpl.java
index 33ff39f..628d940 100644
--- a/src/com/meterware/servletunit/ServletInputStreamImpl.java
+++ b/src/com/meterware/servletunit/ServletInputStreamImpl.java
@@ -22,6 +22,7 @@ package com.meterware.servletunit;
import java.io.IOException;
import java.io.ByteArrayInputStream;
+import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream;
@@ -44,4 +45,15 @@ class ServletInputStreamImpl extends ServletInputStream {
return _baseStream.read();
}
+ public boolean isFinished() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public boolean isReady() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public void setReadListener(ReadListener arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
}
diff --git a/src/com/meterware/servletunit/ServletUnitHttpRequest.java b/src/com/meterware/servletunit/ServletUnitHttpRequest.java
index c2c331e..1f91ca0 100644
--- a/src/com/meterware/servletunit/ServletUnitHttpRequest.java
+++ b/src/com/meterware/servletunit/ServletUnitHttpRequest.java
@@ -33,10 +33,18 @@ import java.util.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
+import javax.servlet.http.HttpUpgradeHandler;
+import javax.servlet.http.Part;
+import javax.servlet.AsyncContext;
+import javax.servlet.DispatcherType;
+import javax.servlet.ServletContext;
import javax.servlet.ServletInputStream;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
/**
@@ -886,6 +894,79 @@ class ServletUnitHttpRequest implements HttpServletRequest {
}
}
-}
+ public AsyncContext getAsyncContext() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public long getContentLengthLong() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public DispatcherType getDispatcherType() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public ServletContext getServletContext() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public boolean isAsyncStarted() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public boolean isAsyncSupported() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public AsyncContext startAsync() throws IllegalStateException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public AsyncContext startAsync(ServletRequest arg0, ServletResponse arg1) throws IllegalStateException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public boolean authenticate(HttpServletResponse arg0) throws IOException, ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public String changeSessionId() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Part getPart(String arg0) throws IOException, ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Collection getParts() throws IOException, ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public void login(String arg0, String arg1) throws ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public void logout() throws ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public HttpUpgradeHandler upgrade(Class arg0) throws IOException, ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+}
diff --git a/src/com/meterware/servletunit/ServletUnitHttpResponse.java b/src/com/meterware/servletunit/ServletUnitHttpResponse.java
index bcf7236..7f61598 100644
--- a/src/com/meterware/servletunit/ServletUnitHttpResponse.java
+++ b/src/com/meterware/servletunit/ServletUnitHttpResponse.java
@@ -26,11 +26,11 @@ import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
-
import java.util.*;
import java.text.SimpleDateFormat;
import javax.servlet.ServletOutputStream;
+import javax.servlet.WriteListener;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
@@ -463,7 +463,7 @@ class ServletUnitHttpResponse implements HttpServletResponse {
/**
* Returns the status of this response.
**/
- int getStatus() {
+ public int getStatus() {
return _status;
}
@@ -602,6 +602,27 @@ class ServletUnitHttpResponse implements HttpServletResponse {
ENCODING_MAP.put("Big5", "zh_TW zh_HK " );
}
+
+
+ public void setContentLengthLong(long arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public String getHeader(String arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Collection getHeaderNames() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Collection getHeaders(String arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
}
@@ -618,4 +639,13 @@ class ServletUnitOutputStream extends ServletOutputStream {
}
private ByteArrayOutputStream _stream;
+
+ public boolean isReady() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public void setWriteListener(WriteListener arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
}
diff --git a/src/com/meterware/servletunit/ServletUnitServletContext.java b/src/com/meterware/servletunit/ServletUnitServletContext.java
index 101bfb4..b532b8c 100644
--- a/src/com/meterware/servletunit/ServletUnitServletContext.java
+++ b/src/com/meterware/servletunit/ServletUnitServletContext.java
@@ -28,12 +28,21 @@ import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.Enumeration;
+import java.util.EventListener;
import java.util.Hashtable;
+import java.util.Map;
import java.util.Set;
import java.util.Vector;
+import javax.servlet.Filter;
+import javax.servlet.FilterRegistration;
+import javax.servlet.FilterRegistration.Dynamic;
+import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
+import javax.servlet.ServletRegistration;
+import javax.servlet.SessionCookieConfig;
+import javax.servlet.descriptor.JspConfigDescriptor;
@@ -116,7 +125,7 @@ public class ServletUnitServletContext implements ServletContext {
try {
File resourceFile = _application.getResourceFile( path );
// PATCH proposal [ 1592532 ] Invalid ServletUnitServletContext#getResource(String path)
- // by Timo Westkämper
+ // by Timo Westk�mper
// return !resourceFile.exists() ? null : resourceFile.toURL();
return resourceFile == null ? null : resourceFile.toURL();
} catch (MalformedURLException e) {
@@ -400,4 +409,140 @@ public class ServletUnitServletContext implements ServletContext {
public void setLogStream(PrintStream logStream) {
this._logStream = logStream;
}
+
+
+ public Dynamic addFilter(String arg0, String arg1) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Dynamic addFilter(String arg0, Filter arg1) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Dynamic addFilter(String arg0, Class arg1) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public void addListener(String arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public void addListener(EventListener arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public void addListener(Class arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public javax.servlet.ServletRegistration.Dynamic addServlet(String arg0, String arg1) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public javax.servlet.ServletRegistration.Dynamic addServlet(String arg0, Servlet arg1) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public javax.servlet.ServletRegistration.Dynamic addServlet(String arg0,
+ Class arg1) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Filter createFilter(Class arg0) throws ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public EventListener createListener(Class arg0) throws ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Servlet createServlet(Class arg0) throws ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public void declareRoles(String[] arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public ClassLoader getClassLoader() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Set getDefaultSessionTrackingModes() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public int getEffectiveMajorVersion() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public int getEffectiveMinorVersion() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Set getEffectiveSessionTrackingModes() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public FilterRegistration getFilterRegistration(String arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Map getFilterRegistrations() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public JspConfigDescriptor getJspConfigDescriptor() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public ServletRegistration getServletRegistration(String arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public Map getServletRegistrations() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public SessionCookieConfig getSessionCookieConfig() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public String getVirtualServerName() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public boolean setInitParameter(String arg0, String arg1) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+
+ public void setSessionTrackingModes(Set arg0) {
+ throw new UnsupportedOperationException("not implemented");
+ }
}
diff --git a/test/com/meterware/servletunit/RequestContextTest.java b/test/com/meterware/servletunit/RequestContextTest.java
index ec0f4d4..d96ebab 100644
--- a/test/com/meterware/servletunit/RequestContextTest.java
+++ b/test/com/meterware/servletunit/RequestContextTest.java
@@ -22,6 +22,7 @@ package com.meterware.servletunit;
import com.meterware.httpunit.HttpUnitTest;
import java.net.URL;
+import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
import java.util.Locale;
@@ -32,9 +33,18 @@ import java.io.BufferedReader;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
+import javax.servlet.http.HttpUpgradeHandler;
+import javax.servlet.http.Part;
+import javax.servlet.AsyncContext;
+import javax.servlet.DispatcherType;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
import junit.framework.TestSuite;
@@ -384,7 +394,65 @@ public class RequestContextTest extends HttpUnitTest {
public int getLocalPort() {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
- }
+ public AsyncContext getAsyncContext() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public long getContentLengthLong() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public DispatcherType getDispatcherType() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public ServletContext getServletContext() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public boolean isAsyncStarted() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public boolean isAsyncSupported() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public AsyncContext startAsync() throws IllegalStateException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public AsyncContext startAsync(ServletRequest arg0, ServletResponse arg1) throws IllegalStateException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public boolean authenticate(HttpServletResponse arg0) throws IOException, ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public String changeSessionId() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public Part getPart(String arg0) throws IOException, ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+ public Collection getParts() throws IOException, ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public void login(String arg0, String arg1) throws ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public void logout() throws ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public HttpUpgradeHandler upgrade(Class arg0) throws IOException, ServletException {
+ throw new UnsupportedOperationException("not implemented");
+ }
+ }
}

View File

@ -0,0 +1,15 @@
Index: build.xml
===================================================================
RCS file: /cvsroot/httpunit/httpunit/build.xml,v
retrieving revision 1.77
diff -u -r1.77 build.xml
--- a/build.xml 5 Oct 2004 03:45:15 -0000 1.77
+++ b/build.xml 13 Nov 2004 19:06:13 -0000
@@ -166,6 +166,7 @@
<classpath>
<path refid="base.classpath" />
<pathelement location="${build.classes}" />
+ <pathelement location="META-INF" />
<pathelement location="${test.classes}" />
</classpath>
</java>

92
httpunit.spec Normal file
View File

@ -0,0 +1,92 @@
Name: httpunit
Version: 1.7
Release: 1
Epoch: 0
URL: http://httpunit.sourceforge.net/
Summary: Automated web site testing toolkit
License: MIT and ASL 2.0
Source0: http://netix.dl.sourceforge.net/project/httpunit/httpunit/%{version}/httpunit-%{version}.zip
Source1: https://repo1.maven.org/maven2/httpunit/httpunit/1.7/httpunit-1.7.pom
Source2: https://www.oracle.com/webfolder/technetwork/jsc/j2ee/dtds/web-app_2_2.dtd
Source3: https://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd
Source4: https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/j2ee/web-app_2_4.xsd
Source5: http://www.apache.org/licenses/LICENSE-2.0.txt
Patch1: httpunit-rhino-1.7.7.patch
Patch2: httpunit-servlettest.patch
Patch3: httpunit-servlet31.patch
Patch4: junit4.patch
BuildRequires: jpackage-utils >= 0:1.6 ant >= 0:1.6 nekohtml jtidy junit >= 0:3.8
BuildRequires: glassfish-servlet-api javamail >= 0:1.3 rhino java-devel >= 1:1.6.0
BuildRequires: javapackages-local
Requires: junit >= 0:3.8 glassfish-servlet-api nekohtml rhino
BuildArch: noarch
Obsoletes: httpunit-demo < %{epoch}:%{version}
%description
HttpUnit emulates the relevant portions of browser behavior, including form
submission, JavaScript, basic http authentication, cookies and automatic page
redirection, and allows Java test code to examine returned pages either as
text, an XML DOM, or containers of forms, tables, and links.
A companion framework, ServletUnit is included in the package.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
Javadoc for %{name}
%package doc
Summary: Documentation for %{name}
Requires: %{name}-javadoc
%description doc
Documentation for %{name}
%prep
%autosetup -p1
find . -name "*.jar" -delete
rm -f META-INF/{web-app_2.2.dtd,web-app_2.3.dtd,web-app_2.4.xsd}
sed -i -e 's|destdir|encoding="iso-8859-1" destdir|g' build.xml
sed -i -e 's|setCharEncoding( org.w3c.tidy.Configuration.UTF8 )|setInputEncoding("UTF-8")|g' src/com/meterware/httpunit/parsing/JTidyHTMLParser.java
find . -name "*.jar" -exec rm -f {} \;
rm -rf doc/api
ln -s \
%{_javadir}/junit.jar \
%{_javadir}/jtidy.jar \
%{_javadir}/nekohtml.jar \
%{_javadir}/glassfish-servlet-api.jar \
%{_javadir}/js.jar \
%{_javadir}/xerces-j2.jar \
jars
cp %{SOURCE1} pom.xml
cp %{SOURCE2} META-INF/
cp %{SOURCE3} META-INF/
cp %{SOURCE4} META-INF/
cp %{SOURCE5} LICENSE-ASL
%build
export CLASSPATH=$(build-classpath javamail)
export ANT_OPTS="-Dfile.encoding=iso-8859-1"
ant -Dbuild.compiler=modern -Dbuild.sysclasspath=last \
jar javadocs test servlettest
%install
%mvn_file : httpunit
%mvn_artifact pom.xml lib/httpunit.jar
%mvn_install -J doc/api/
rm -rf doc/api
pushd doc
ln -sf %{_javadocdir}/httpunit api
popd
%files -f .mfiles
%doc LICENSE-ASL
%files javadoc -f .mfiles-javadoc
%doc LICENSE-ASL
%files doc
%doc doc/*
%changelog
* Sat Aug 22 2020 huanghaitao <huanghaitao8@huawei.com> - 1.7-1
- package init

4
httpunit.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA

26
junit4.patch Normal file
View File

@ -0,0 +1,26 @@
--- a/src/com/meterware/servletunit/JUnitServlet.java.sav 2008-05-20 16:25:36.000000000 +0300
+++ b/src/com/meterware/servletunit/JUnitServlet.java 2012-04-18 14:00:39.653850687 +0300
@@ -29,8 +29,6 @@ import javax.servlet.http.HttpServletRes
import javax.servlet.ServletException;
import junit.runner.BaseTestRunner;
-import junit.runner.TestSuiteLoader;
-import junit.runner.StandardTestSuiteLoader;
import junit.framework.Test;
import junit.framework.AssertionFailedError;
import junit.framework.TestResult;
@@ -148,12 +146,8 @@ public class JUnitServlet extends HttpSe
}
- /**
- * Always use the StandardTestSuiteLoader. Overridden from
- * BaseTestRunner.
- */
- public TestSuiteLoader getLoader() {
- return new StandardTestSuiteLoader();
+ protected boolean useReloadingTestSuiteLoader() {
+ return false;
}
}

602
web-app_2_2.dtd Normal file
View File

@ -0,0 +1,602 @@
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1999-2007 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<!--
The web-app element is the root of the deployment descriptor for
a web application
-->
<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?, error-page*, taglib*,
resource-ref*, security-constraint*, login-config?, security-role*,
env-entry*, ejb-ref*)>
<!--
The icon element contains a small-icon and a large-icon element
which specify the location within the web application for a small and
large image used to represent the web application in a GUI tool. At a
minimum, tools must accept GIF and JPEG format images.
-->
<!ELEMENT icon (small-icon?, large-icon?)>
<!--
The small-icon element contains the location within the web
application of a file containing a small (16x16 pixel) icon image.
-->
<!ELEMENT small-icon (#PCDATA)>
<!--
The large-icon element contains the location within the web
application of a file containing a large (32x32 pixel) icon image.
-->
<!ELEMENT large-icon (#PCDATA)>
<!--
The display-name element contains a short name that is intended
to be displayed by GUI tools
-->
<!ELEMENT display-name (#PCDATA)>
<!--
The description element is used to provide descriptive text about
the parent element.
-->
<!ELEMENT description (#PCDATA)>
<!--
The distributable element, by its presence in a web application
deployment descriptor, indicates that this web application is
programmed appropriately to be deployed into a distributed servlet
container
-->
<!ELEMENT distributable EMPTY>
<!--
The context-param element contains the declaration of a web
application's servlet context initialization parameters.
-->
<!ELEMENT context-param (param-name, param-value, description?)>
<!--
The param-name element contains the name of a parameter.
-->
<!ELEMENT param-name (#PCDATA)>
<!--
The param-value element contains the value of a parameter.
-->
<!ELEMENT param-value (#PCDATA)>
<!--
The servlet element contains the declarative data of a
servlet. If a jsp-file is specified and the load-on-startup element is
present, then the JSP should be precompiled and loaded.
-->
<!ELEMENT servlet (icon?, servlet-name, display-name?, description?,
(servlet-class|jsp-file), init-param*, load-on-startup?, security-role-ref*)>
<!--
The servlet-name element contains the canonical name of the
servlet.
-->
<!ELEMENT servlet-name (#PCDATA)>
<!--
The servlet-class element contains the fully qualified class name
of the servlet.
-->
<!ELEMENT servlet-class (#PCDATA)>
<!--
The jsp-file element contains the full path to a JSP file within
the web application.
-->
<!ELEMENT jsp-file (#PCDATA)>
<!--
The init-param element contains a name/value pair as an
initialization param of the servlet
-->
<!ELEMENT init-param (param-name, param-value, description?)>
<!--
The load-on-startup element indicates that this servlet should be
loaded on the startup of the web application. The optional contents of
these element must be a positive integer indicating the order in which
the servlet should be loaded. Lower integers are loaded before higher
integers. If no value is specified, or if the value specified is not a
positive integer, the container is free to load it at any time in the
startup sequence.
-->
<!ELEMENT load-on-startup (#PCDATA)>
<!--
The servlet-mapping element defines a mapping between a servlet
and a url pattern
-->
<!ELEMENT servlet-mapping (servlet-name, url-pattern)>
<!--
The url-pattern element contains the url pattern of the
mapping. Must follow the rules specified in Section 10 of the Servlet
API Specification.
-->
<!ELEMENT url-pattern (#PCDATA)>
<!--
The session-config element defines the session parameters for
this web application.
-->
<!ELEMENT session-config (session-timeout?)>
<!--
The session-timeout element defines the default session timeout
interval for all sessions created in this web application. The
specified timeout must be expressed in a whole number of minutes.
-->
<!ELEMENT session-timeout (#PCDATA)>
<!--
The mime-mapping element defines a mapping between an extension
and a mime type.
-->
<!ELEMENT mime-mapping (extension, mime-type)>
<!--
The extension element contains a string describing an
extension. example: "txt"
-->
<!ELEMENT extension (#PCDATA)>
<!--
The mime-type element contains a defined mime type. example:
"text/plain"
-->
<!ELEMENT mime-type (#PCDATA)>
<!--
The welcome-file-list contains an ordered list of welcome files
elements.
-->
<!ELEMENT welcome-file-list (welcome-file+)>
<!--
The welcome-file element contains file name to use as a default
welcome file, such as index.html
-->
<!ELEMENT welcome-file (#PCDATA)>
<!--
The taglib element is used to describe a JSP tag library.
-->
<!ELEMENT taglib (taglib-uri, taglib-location)>
<!--
The taglib-uri element describes a URI, relative to the location
of the web.xml document, identifying a Tag Library used in the Web
Application.
-->
<!ELEMENT taglib-uri (#PCDATA)>
<!--
the taglib-location element contains the location (as a resource
relative to the root of the web application) where to find the Tag
Libary Description file for the tag library.
-->
<!ELEMENT taglib-location (#PCDATA)>
<!--
The error-page element contains a mapping between an error code
or exception type to the path of a resource in the web application
-->
<!ELEMENT error-page ((error-code | exception-type), location)>
<!--
The error-code contains an HTTP error code, ex: 404
-->
<!ELEMENT error-code (#PCDATA)>
<!--
The exception type contains a fully qualified class name of a
Java exception type.
-->
<!ELEMENT exception-type (#PCDATA)>
<!--
The location element contains the location of the resource in the
web application
-->
<!ELEMENT location (#PCDATA)>
<!--
The resource-ref element contains a declaration of a Web
Application's reference to an external resource.
-->
<!ELEMENT resource-ref (description?, res-ref-name, res-type, res-auth)>
<!--
The res-ref-name element specifies the name of the resource
factory reference name.
-->
<!ELEMENT res-ref-name (#PCDATA)>
<!--
The res-type element specifies the (Java class) type of the data
source.
-->
<!ELEMENT res-type (#PCDATA)>
<!--
The res-auth element indicates whether the application component
code performs resource signon programmatically or whether the
container signs onto the resource based on the principle mapping
information supplied by the deployer. Must be CONTAINER or SERVLET
-->
<!ELEMENT res-auth (#PCDATA)>
<!--
The security-constraint element is used to associate security
constraints with one or more web resource collections
-->
<!ELEMENT security-constraint (web-resource-collection+,
auth-constraint?, user-data-constraint?)>
<!--
The web-resource-collection element is used to identify a subset
of the resources and HTTP methods on those resources within a web
application to which a security constraint applies. If no HTTP methods
are specified, then the security constraint applies to all HTTP
methods.
-->
<!ELEMENT web-resource-collection (web-resource-name, description?,
url-pattern*, http-method*)>
<!--
The web-resource-name contains the name of this web resource
collection
-->
<!ELEMENT web-resource-name (#PCDATA)>
<!--
The http-method contains an HTTP method (GET | POST |...)
-->
<!ELEMENT http-method (#PCDATA)>
<!--
The user-data-constraint element is used to indicate how data
communicated between the client and container should be protected
-->
<!ELEMENT user-data-constraint (description?, transport-guarantee)>
<!--
The transport-guarantee element specifies that the communication
between client and server should be NONE, INTEGRAL, or
CONFIDENTIAL. NONE means that the application does not require any
transport guarantees. A value of INTEGRAL means that the application
requires that the data sent between the client and server be sent in
such a way that it can't be changed in transit. CONFIDENTIAL means
that the application requires that the data be transmitted in a
fashion that prevents other entities from observing the contents of
the transmission. In most cases, the presence of the INTEGRAL or
CONFIDENTIAL flag will indicate that the use of SSL is required.
-->
<!ELEMENT transport-guarantee (#PCDATA)>
<!--
The auth-constraint element indicates the user roles that should
be permitted access to this resource collection. The role used here
must appear in a security-role-ref element.
-->
<!ELEMENT auth-constraint (description?, role-name*)>
<!--
The role-name element contains the name of a security role.
-->
<!ELEMENT role-name (#PCDATA)>
<!--
The login-config element is used to configure the authentication
method that should be used, the realm name that should be used for
this application, and the attributes that are needed by the form login
mechanism.
-->
<!ELEMENT login-config (auth-method?, realm-name?, form-login-config?)>
<!--
The realm name element specifies the realm name to use in HTTP
Basic authorization
-->
<!ELEMENT realm-name (#PCDATA)>
<!--
The form-login-config element specifies the login and error pages
that should be used in form based login. If form based authentication
is not used, these elements are ignored.
-->
<!ELEMENT form-login-config (form-login-page, form-error-page)>
<!--
The form-login-page element defines the location in the web app
where the page that can be used for login can be found
-->
<!ELEMENT form-login-page (#PCDATA)>
<!--
The form-error-page element defines the location in the web app
where the error page that is displayed when login is not successful
can be found
-->
<!ELEMENT form-error-page (#PCDATA)>
<!--
The auth-method element is used to configure the authentication
mechanism for the web application. As a prerequisite to gaining access
to any web resources which are protected by an authorization
constraint, a user must have authenticated using the configured
mechanism. Legal values for this element are "BASIC", "DIGEST",
"FORM", or "CLIENT-CERT".
-->
<!ELEMENT auth-method (#PCDATA)>
<!--
The security-role element contains the declaration of a security
role which is used in the security-constraints placed on the web
application.
-->
<!ELEMENT security-role (description?, role-name)>
<!--
The role-name element contains the name of a role. This element
must contain a non-empty string.
-->
<!ELEMENT security-role-ref (description?, role-name, role-link)>
<!--
The role-link element is used to link a security role reference
to a defined security role. The role-link element must contain the
name of one of the security roles defined in the security-role
elements.
-->
<!ELEMENT role-link (#PCDATA)>
<!--
The env-entry element contains the declaration of an
application's environment entry. This element is required to be
honored on in J2EE compliant servlet containers.
-->
<!ELEMENT env-entry (description?, env-entry-name, env-entry-value?,
env-entry-type)>
<!--
The env-entry-name contains the name of an application's
environment entry
-->
<!ELEMENT env-entry-name (#PCDATA)>
<!--
The env-entry-value element contains the value of an
application's environment entry
-->
<!ELEMENT env-entry-value (#PCDATA)>
<!--
The env-entry-type element contains the fully qualified Java type
of the environment entry value that is expected by the application
code. The following are the legal values of env-entry-type:
java.lang.Boolean, java.lang.String, java.lang.Integer,
java.lang.Double, java.lang.Float.
-->
<!ELEMENT env-entry-type (#PCDATA)>
<!--
The ejb-ref element is used to declare a reference to an
enterprise bean.
-->
<!ELEMENT ejb-ref (description?, ejb-ref-name, ejb-ref-type, home, remote,
ejb-link?)>
<!--
The ejb-ref-name element contains the name of an EJB
reference. This is the JNDI name that the servlet code uses to get a
reference to the enterprise bean.
-->
<!ELEMENT ejb-ref-name (#PCDATA)>
<!--
The ejb-ref-type element contains the expected java class type of
the referenced EJB.
-->
<!ELEMENT ejb-ref-type (#PCDATA)>
<!--
The ejb-home element contains the fully qualified name of the
EJB's home interface
-->
<!ELEMENT home (#PCDATA)>
<!--
The ejb-remote element contains the fully qualified name of the
EJB's remote interface
-->
<!ELEMENT remote (#PCDATA)>
<!--
The ejb-link element is used in the ejb-ref element to specify
that an EJB reference is linked to an EJB in an encompassing Java2
Enterprise Edition (J2EE) application package. The value of the
ejb-link element must be the ejb-name of and EJB in the J2EE
application package.
-->
<!ELEMENT ejb-link (#PCDATA)>
<!--
The ID mechanism is to allow tools to easily make tool-specific
references to the elements of the deployment descriptor. This allows
tools that produce additional deployment information (i.e information
beyond the standard deployment descriptor information) to store the
non-standard information in a separate file, and easily refer from
these tools-specific files to the information in the standard web-app
deployment descriptor.
-->
<!ATTLIST web-app id ID #IMPLIED>
<!ATTLIST icon id ID #IMPLIED>
<!ATTLIST small-icon id ID #IMPLIED>
<!ATTLIST large-icon id ID #IMPLIED>
<!ATTLIST display-name id ID #IMPLIED>
<!ATTLIST description id ID #IMPLIED>
<!ATTLIST distributable id ID #IMPLIED>
<!ATTLIST context-param id ID #IMPLIED>
<!ATTLIST param-name id ID #IMPLIED>
<!ATTLIST param-value id ID #IMPLIED>
<!ATTLIST servlet id ID #IMPLIED>
<!ATTLIST servlet-name id ID #IMPLIED>
<!ATTLIST servlet-class id ID #IMPLIED>
<!ATTLIST jsp-file id ID #IMPLIED>
<!ATTLIST init-param id ID #IMPLIED>
<!ATTLIST load-on-startup id ID #IMPLIED>
<!ATTLIST servlet-mapping id ID #IMPLIED>
<!ATTLIST url-pattern id ID #IMPLIED>
<!ATTLIST session-config id ID #IMPLIED>
<!ATTLIST session-timeout id ID #IMPLIED>
<!ATTLIST mime-mapping id ID #IMPLIED>
<!ATTLIST extension id ID #IMPLIED>
<!ATTLIST mime-type id ID #IMPLIED>
<!ATTLIST welcome-file-list id ID #IMPLIED>
<!ATTLIST welcome-file id ID #IMPLIED>
<!ATTLIST taglib id ID #IMPLIED>
<!ATTLIST taglib-uri id ID #IMPLIED>
<!ATTLIST taglib-location id ID #IMPLIED>
<!ATTLIST error-page id ID #IMPLIED>
<!ATTLIST error-code id ID #IMPLIED>
<!ATTLIST exception-type id ID #IMPLIED>
<!ATTLIST location id ID #IMPLIED>
<!ATTLIST resource-ref id ID #IMPLIED>
<!ATTLIST res-ref-name id ID #IMPLIED>
<!ATTLIST res-type id ID #IMPLIED>
<!ATTLIST res-auth id ID #IMPLIED>
<!ATTLIST security-constraint id ID #IMPLIED>
<!ATTLIST web-resource-collection id ID #IMPLIED>
<!ATTLIST web-resource-name id ID #IMPLIED>
<!ATTLIST http-method id ID #IMPLIED>
<!ATTLIST user-data-constraint id ID #IMPLIED>
<!ATTLIST transport-guarantee id ID #IMPLIED>
<!ATTLIST auth-constraint id ID #IMPLIED>
<!ATTLIST role-name id ID #IMPLIED>
<!ATTLIST login-config id ID #IMPLIED>
<!ATTLIST realm-name id ID #IMPLIED>
<!ATTLIST form-login-config id ID #IMPLIED>
<!ATTLIST form-login-page id ID #IMPLIED>
<!ATTLIST form-error-page id ID #IMPLIED>
<!ATTLIST auth-method id ID #IMPLIED>
<!ATTLIST security-role id ID #IMPLIED>
<!ATTLIST security-role-ref id ID #IMPLIED>
<!ATTLIST role-link id ID #IMPLIED>
<!ATTLIST env-entry id ID #IMPLIED>
<!ATTLIST env-entry-name id ID #IMPLIED>
<!ATTLIST env-entry-value id ID #IMPLIED>
<!ATTLIST env-entry-type id ID #IMPLIED>
<!ATTLIST ejb-ref id ID #IMPLIED>
<!ATTLIST ejb-ref-name id ID #IMPLIED>
<!ATTLIST ejb-ref-type id ID #IMPLIED>
<!ATTLIST home id ID #IMPLIED>
<!ATTLIST remote id ID #IMPLIED>
<!ATTLIST ejb-link id ID #IMPLIED>

1022
web-app_2_3.dtd Normal file

File diff suppressed because it is too large Load Diff

1242
web-app_2_4.xsd Normal file

File diff suppressed because it is too large Load Diff