+ *
+ */
+public class BridgeFilter extends BridgeServlet implements Filter {
+
+ private static final long serialVersionUID = 1309373924501049438L;
+
+ private ServletConfigAdaptor servletConfig;
+
+ public void init(FilterConfig filterConfig) throws ServletException {
+ this.servletConfig = new ServletConfigAdaptor(filterConfig);
+ super.init();
+ }
+
+ public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
+ HttpServletRequest req = (HttpServletRequest) request;
+ HttpServletResponse resp = (HttpServletResponse) response;
+ // Call process class with FilterChain.
+ super.process(req, resp, chain);
+ }
+
+ public ServletConfig getServletConfig() {
+ return servletConfig;
+ }
+
+ /**
+ *
+ * Class which adapt {@link FilterConfig} to a {@link ServletConfig}.
+ *
+ */
+ private static class ServletConfigAdaptor implements ServletConfig {
+
+ private FilterConfig filterConfig;
+
+ public ServletConfigAdaptor(FilterConfig filterConfig) {
+ this.filterConfig = filterConfig;
+ }
+
+ public String getInitParameter(String arg0) {
+ return filterConfig.getInitParameter(arg0);
+ }
+
+ public Enumeration getInitParameterNames() {
+ return filterConfig.getInitParameterNames();
+ }
+
+ public ServletContext getServletContext() {
+ return filterConfig.getServletContext();
+ }
+
+ public String getServletName() {
+ return filterConfig.getFilterName();
+ }
+
+ }
+}
diff --git a/org.adempiere.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/BridgeServlet.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/BridgeServlet.java
similarity index 97%
rename from org.adempiere.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/BridgeServlet.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/BridgeServlet.java
index 61388768f1..b5f1590d57 100644
--- a/org.adempiere.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/BridgeServlet.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/BridgeServlet.java
@@ -11,15 +11,14 @@
* Angelo Zerr - give the capability to use resources (JSP, HTML, Servlet...)
* from the Bridge webapp with HTTP Filter.
*******************************************************************************/
-package org.eclipse.equinox.servletbridge;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
-import org.eclipse.equinox.http.servlet.HttpServiceServlet;
-
/**
+ * Adapted from org.eclipse.equinox.servletbridge.BridgeServlet
* The BridgeServlet provides a means to bridge the servlet and OSGi
* runtimes. This class has 3 main responsibilities:
* 1) Control the lifecycle of the associated FrameworkLauncher in line with its own lifecycle
@@ -129,7 +128,7 @@ public class BridgeServlet extends HttpServlet {
}
private void initDelegate() throws ServletException {
- delegate = new HttpServiceServlet();
+ delegate = new ProxyServlet();
delegate.init(getServletConfig());
delegateIsFilter = (delegate instanceof Filter);
}
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/DefaultHttpContext.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/DefaultHttpContext.java
similarity index 96%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/DefaultHttpContext.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/DefaultHttpContext.java
index b4d43fc5ab..850564088d 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/DefaultHttpContext.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/DefaultHttpContext.java
@@ -10,7 +10,7 @@
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.IOException;
import java.net.URL;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterChainImpl.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterChainImpl.java
new file mode 100644
index 0000000000..a14c0d602b
--- /dev/null
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterChainImpl.java
@@ -0,0 +1,55 @@
+/**********************************************************************
+* This file is part of iDempiere ERP Open Source *
+* http://www.idempiere.org *
+* *
+* Copyright (C) Contributors *
+* *
+* This program is free software; you can redistribute it and/or *
+* modify it under the terms of the GNU General Public License *
+* as published by the Free Software Foundation; either version 2 *
+* of the License, or (at your option) any later version. *
+* *
+* This program is distributed in the hope that it will be useful, *
+* but WITHOUT ANY WARRANTY; without even the implied warranty of *
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+* GNU General Public License for more details. *
+* *
+* You should have received a copy of the GNU General Public License *
+* along with this program; if not, write to the Free Software *
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
+* MA 02110-1301, USA. *
+* *
+* Contributors: *
+* - Trek Global Corporation *
+* - Heng Sin Low *
+**********************************************************************/
+package org.adempiere.eclipse.equinox.http.servlet;
+
+import java.io.IOException;
+import java.util.List;
+import javax.servlet.*;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+public class FilterChainImpl implements FilterChain {
+
+ private List matchingFilterRegistrations;
+ private ServletRegistration registration;
+ private int filterIndex = 0;
+ private int filterCount;
+
+ public FilterChainImpl(List matchingFilterRegistrations, ServletRegistration registration) {
+ this.matchingFilterRegistrations = matchingFilterRegistrations;
+ this.registration = registration;
+ this.filterCount = matchingFilterRegistrations.size();
+ }
+
+ public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException {
+ if (filterIndex < filterCount) {
+ FilterRegistration filterRegistration = (FilterRegistration) matchingFilterRegistrations.get(filterIndex++);
+ filterRegistration.doFilter((HttpServletRequest) request, (HttpServletResponse) response, this);
+ return;
+ }
+ registration.service((HttpServletRequest) request, (HttpServletResponse) response);
+ }
+}
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterConfigImpl.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterConfigImpl.java
similarity index 97%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterConfigImpl.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterConfigImpl.java
index 82440e47b9..c1fc3673b7 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterConfigImpl.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterConfigImpl.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.util.*;
import javax.servlet.*;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterRegistration.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterRegistration.java
similarity index 67%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterRegistration.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterRegistration.java
index 348c9e0668..fcb4961c1c 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterRegistration.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/FilterRegistration.java
@@ -1,4 +1,29 @@
-package org.eclipse.equinox.http.servlet.internal;
+/**********************************************************************
+* This file is part of iDempiere ERP Open Source *
+* http://www.idempiere.org *
+* *
+* Copyright (C) Contributors *
+* *
+* This program is free software; you can redistribute it and/or *
+* modify it under the terms of the GNU General Public License *
+* as published by the Free Software Foundation; either version 2 *
+* of the License, or (at your option) any later version. *
+* *
+* This program is distributed in the hope that it will be useful, *
+* but WITHOUT ANY WARRANTY; without even the implied warranty of *
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+* GNU General Public License for more details. *
+* *
+* You should have received a copy of the GNU General Public License *
+* along with this program; if not, write to the Free Software *
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
+* MA 02110-1301, USA. *
+* *
+* Contributors: *
+* - Trek Global Corporation *
+* - Heng Sin Low *
+**********************************************************************/
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.IOException;
import javax.servlet.*;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceImpl.java
similarity index 98%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceImpl.java
index a1b21c4e96..163cbaadc1 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceImpl.java
@@ -10,7 +10,7 @@
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.util.*;
import javax.servlet.*;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceProxy.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceProxy.java
similarity index 99%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceProxy.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceProxy.java
index f156fdead9..ff1be6c0cb 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceProxy.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceProxy.java
@@ -11,7 +11,7 @@
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.util.ArrayList;
import java.util.Dictionary;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceProxyFactory.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceProxyFactory.java
similarity index 98%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceProxyFactory.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceProxyFactory.java
index 937dd9d112..8eb94b9494 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceProxyFactory.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServiceProxyFactory.java
@@ -11,7 +11,7 @@
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.util.ArrayList;
import java.util.HashMap;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServletRequestAdaptor.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServletRequestAdaptor.java
similarity index 99%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServletRequestAdaptor.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServletRequestAdaptor.java
index 761ff36b5f..c424df5adc 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServletRequestAdaptor.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpServletRequestAdaptor.java
@@ -11,7 +11,7 @@
* Angelo Zerr - give the capability to use resources (JSP, HTML, Servlet...)
* from the Bridge webapp with HTTP Filter.
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import javax.servlet.*;
import javax.servlet.http.*;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpSessionAdaptor.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpSessionAdaptor.java
similarity index 97%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpSessionAdaptor.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpSessionAdaptor.java
index bdf59905d4..85169bf043 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpSessionAdaptor.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/HttpSessionAdaptor.java
@@ -9,7 +9,7 @@
* Cognos Incorporated - initial API and implementation
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.util.Enumeration;
import javax.servlet.Servlet;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ProxyContext.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ProxyContext.java
similarity index 98%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ProxyContext.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ProxyContext.java
index 5fd5b6b4c4..a5af14fa86 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ProxyContext.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ProxyContext.java
@@ -9,7 +9,7 @@
* Cognos Incorporated - initial API and implementation
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.File;
import java.util.*;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ProxyServlet.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ProxyServlet.java
similarity index 99%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ProxyServlet.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ProxyServlet.java
index 9b5bc22eff..0e52f9c64d 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ProxyServlet.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ProxyServlet.java
@@ -11,7 +11,7 @@
* Angelo Zerr - give the capability to use resources (JSP, HTML, Servlet...)
* from the Bridge webapp with HTTP Filter.
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.IOException;
import java.security.AccessController;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/Registration.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/Registration.java
similarity index 96%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/Registration.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/Registration.java
index 155346aee6..232b5f2d90 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/Registration.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/Registration.java
@@ -9,7 +9,7 @@
* Cognos Incorporated - initial API and implementation
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
public abstract class Registration {
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/RequestDispatcherAdaptor.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/RequestDispatcherAdaptor.java
similarity index 96%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/RequestDispatcherAdaptor.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/RequestDispatcherAdaptor.java
index 4e48e403a8..406f263fc5 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/RequestDispatcherAdaptor.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/RequestDispatcherAdaptor.java
@@ -9,7 +9,7 @@
* Cognos Incorporated - initial API and implementation
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.IOException;
import javax.servlet.*;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ResourceServlet.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ResourceServlet.java
similarity index 99%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ResourceServlet.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ResourceServlet.java
index bfcb3a8d99..eb6bc494aa 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ResourceServlet.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ResourceServlet.java
@@ -11,7 +11,7 @@
* Angelo Zerr - give the capability to use resources (JSP, HTML, Servlet...)
* from the Bridge webapp with HTTP Filter.
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.*;
import java.net.URL;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletConfigImpl.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletConfigImpl.java
similarity index 97%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletConfigImpl.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletConfigImpl.java
index 1738c944db..0b43e29518 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletConfigImpl.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletConfigImpl.java
@@ -9,7 +9,7 @@
* Cognos Incorporated - initial API and implementation
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.util.*;
import javax.servlet.*;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletContextAdaptor.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletContextAdaptor.java
similarity index 99%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletContextAdaptor.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletContextAdaptor.java
index edec8e377d..c7cdda0cbd 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletContextAdaptor.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletContextAdaptor.java
@@ -9,7 +9,7 @@
* Cognos Incorporated - initial API and implementation
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.*;
import java.lang.reflect.Method;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletRegistration.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletRegistration.java
similarity index 98%
rename from org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletRegistration.java
rename to org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletRegistration.java
index 84cf5da32c..751fff94ba 100644
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/ServletRegistration.java
+++ b/org.adempiere.eclipse.equinox.http.servlet/src/org/adempiere/eclipse/equinox/http/servlet/ServletRegistration.java
@@ -9,7 +9,7 @@
* Cognos Incorporated - initial API and implementation
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
-package org.eclipse.equinox.http.servlet.internal;
+package org.adempiere.eclipse.equinox.http.servlet;
import java.io.IOException;
import javax.servlet.*;
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/ExtendedHttpService.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/ExtendedHttpService.java
deleted file mode 100644
index f8df39c460..0000000000
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/ExtendedHttpService.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.eclipse.equinox.http.servlet;
-
-import java.util.Dictionary;
-import javax.servlet.Filter;
-import javax.servlet.ServletException;
-import org.osgi.service.http.*;
-
-/**
- * @since 1.1
- */
-public interface ExtendedHttpService extends HttpService {
- /**
- * @param alias name in the URI namespace at which the filter is registered
- * @param filter the filter object to register
- * @param initparams initialization arguments for the filter or
- * null if there are none. This argument is used by the
- * filter's FilterConfig object.
- * @param context the HttpContext object for the registered
- * filter, or null if a default HttpContext is
- * to be created and used.
- * @throws javax.servlet.ServletException if the filter's init
- * method throws an exception, or the given filter object has
- * already been registered at a different alias.
- * @throws java.lang.IllegalArgumentException if any of the arguments are
- * invalid
- */
- public void registerFilter(String alias, Filter filter, Dictionary initparams, HttpContext context) throws ServletException, NamespaceException;
-
- /**
- * Unregisters a previous filter registration done by the
- * registerFilter method.
- *
- *
- * After this call, the registered filter will no
- * longer be available. The Http Service must call the destroy
- * method of the filter before returning.
- *
- * If the bundle which performed the registration is stopped or otherwise
- * "unget"s the Http Service without calling {@link #unregisterFilter} then the Http
- * Service must automatically unregister the filter registration. However, the
- * destroy method of the filter will not be called in this case since
- * the bundle may be stopped.
- * {@link #unregisterFilter} must be explicitly called to cause the
- * destroy method of the filter to be called. This can be done
- * in the BundleActivator.stop method of the
- * bundle registering the filter.
- *
- * @param filter the filter object to unregister
- * @throws java.lang.IllegalArgumentException if there is no registration
- * for the filter or the calling bundle was not the bundle which
- * registered the filter.
- */
- public void unregisterFilter(Filter filter);
-
-}
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/HttpServiceServlet.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/HttpServiceServlet.java
deleted file mode 100644
index a511ae9c6d..0000000000
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/HttpServiceServlet.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2008 Cognos Incorporated, IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Cognos Incorporated - initial API and implementation
- * IBM Corporation - bug fixes and enhancements
- *******************************************************************************/
-package org.eclipse.equinox.http.servlet;
-
-import org.eclipse.equinox.http.servlet.internal.ProxyServlet;
-
-/**
- * The HttpServiceServlet is the "public" side of a Servlet that when registered (and init() called) in a servlet container
- * will in-turn register and provide an OSGi Http Service implementation.
- * This class is not meant for extending or even using directly and is purely meant for registering
- * in a servlet container.
- * @noextend This class is not intended to be subclassed by clients.
- */
-public class HttpServiceServlet extends ProxyServlet {
- private static final long serialVersionUID = -3647550992964861187L;
-}
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterChainImpl.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterChainImpl.java
deleted file mode 100644
index ae94c5f1f3..0000000000
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/FilterChainImpl.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.eclipse.equinox.http.servlet.internal;
-
-import java.io.IOException;
-import java.util.List;
-import javax.servlet.*;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-public class FilterChainImpl implements FilterChain {
-
- private List matchingFilterRegistrations;
- private ServletRegistration registration;
- private int filterIndex = 0;
- private int filterCount;
-
- public FilterChainImpl(List matchingFilterRegistrations, ServletRegistration registration) {
- this.matchingFilterRegistrations = matchingFilterRegistrations;
- this.registration = registration;
- this.filterCount = matchingFilterRegistrations.size();
- }
-
- public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException {
- if (filterIndex < filterCount) {
- FilterRegistration filterRegistration = (FilterRegistration) matchingFilterRegistrations.get(filterIndex++);
- filterRegistration.doFilter((HttpServletRequest) request, (HttpServletResponse) response, this);
- return;
- }
- registration.service((HttpServletRequest) request, (HttpServletResponse) response);
- }
-}
diff --git a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceFactory.java b/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceFactory.java
deleted file mode 100644
index 4c6ed3b034..0000000000
--- a/org.adempiere.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceFactory.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 Cognos Incorporated, IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Cognos Incorporated - initial API and implementation
- * IBM Corporation - bug fixes and enhancements
- *******************************************************************************/
-
-package org.eclipse.equinox.http.servlet.internal;
-
-import org.osgi.framework.*;
-import org.osgi.service.http.HttpService;
-
-// Factory to create http services. This is because the service needs to be customized for each bundle in order to implement the default resource lookups.
-public class HttpServiceFactory implements ServiceFactory {
-
- private ProxyServlet proxy;
-
- public HttpServiceFactory(ProxyServlet proxy) {
- this.proxy = proxy;
- }
-
- public HttpService getService(Bundle bundle, ServiceRegistration registration) {
- return new HttpServiceImpl(bundle, proxy);
- }
-
- public void ungetService(Bundle bundle, ServiceRegistration registration, HttpService service) {
- ((HttpServiceImpl) service).shutdown();
-
- }
-
-}
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/.classpath b/org.adempiere.eclipse.equinox.http.servletbridge/.classpath
deleted file mode 100644
index 423c974870..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/.classpath
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/.project b/org.adempiere.eclipse.equinox.http.servletbridge/.project
deleted file mode 100644
index ddc1960c6e..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
- org.adempiere.eclipse.equinox.http.servletbridge
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.eclipse.m2e.core.maven2Nature
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.core.resources.prefs b/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 99f26c0203..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.jdt.core.prefs b/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 6783713ef0..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.release=enabled
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.m2e.core.prefs b/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index f897a7f1cb..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.pde.core.prefs b/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.pde.core.prefs
deleted file mode 100644
index 7c19d8aff0..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/.settings/org.eclipse.pde.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-#Fri Dec 24 14:43:16 MYT 2010
-eclipse.preferences.version=1
-pluginProject.extensions=false
-resolve.requirebundle=false
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/META-INF/MANIFEST.MF b/org.adempiere.eclipse.equinox.http.servletbridge/META-INF/MANIFEST.MF
deleted file mode 100644
index 40abdde3f3..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,20 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Vendor: %providerName
-Bundle-Localization: plugin
-Bundle-RequiredExecutionEnvironment: JavaSE-11
-Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version>=11))"
-Bundle-Name: %bundleName
-Bundle-SymbolicName: org.adempiere.eclipse.equinox.http.servletbridge;singleton:=true
-Eclipse-SourceReferences: scm:cvs:pserver:dev.eclipse.org:/cvsroot/rt:
- org.eclipse.equinox/server-side/bundles/org.eclipse.equinox.http.serv
- letbridge;tag=v20100503
-Bundle-Activator: org.eclipse.equinox.http.servletbridge.internal.Acti
- vator
-Bundle-Version: 7.1.0.qualifier
-Import-Package: javax.servlet;version="2.3",javax.servlet.http;version
- ="2.3",org.eclipse.equinox.http.servlet;version="1.0.0",org.eclipse.e
- quinox.servletbridge;version="1.0.0",org.osgi.framework;version="1.3.
- 0",org.osgi.service.http;version="1.2.0"
-Bundle-ManifestVersion: 2
-Bundle-ClassPath: .
-Automatic-Module-Name: org.adempiere.eclipse.equinox.http.servletbridge
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/about.html b/org.adempiere.eclipse.equinox.http.servletbridge/about.html
deleted file mode 100644
index d7e1cdf1e2..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
January 30, 2007
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/build.properties b/org.adempiere.eclipse.equinox.http.servletbridge/build.properties
deleted file mode 100644
index 140c228807..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/build.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-bin.includes = META-INF/,\
- plugin.properties,\
- .
-javacErrors.. = -assertIdentifier,-enumIdentifier
-output.. = target/classes/
-source.. = src/
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/plugin.properties b/org.adempiere.eclipse.equinox.http.servletbridge/plugin.properties
deleted file mode 100644
index f2626ac746..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/plugin.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-##Source Bundle Localization
-#Thu Jun 24 08:29:00 EDT 2010
-bundleName=Servletbridge Http Service Source
-providerName=Eclipse.org - Equinox
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/pom.xml b/org.adempiere.eclipse.equinox.http.servletbridge/pom.xml
deleted file mode 100644
index e4b544e8c0..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/pom.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
- 4.0.0
-
- org.idempiere
- org.idempiere.parent
- 7.1.0-SNAPSHOT
- ../org.idempiere.parent/pom.xml
-
- org.adempiere.eclipse.equinox.http.servletbridge
- eclipse-plugin
-
\ No newline at end of file
diff --git a/org.adempiere.eclipse.equinox.http.servletbridge/src/org/eclipse/equinox/http/servletbridge/internal/Activator.java b/org.adempiere.eclipse.equinox.http.servletbridge/src/org/eclipse/equinox/http/servletbridge/internal/Activator.java
deleted file mode 100644
index 1173751801..0000000000
--- a/org.adempiere.eclipse.equinox.http.servletbridge/src/org/eclipse/equinox/http/servletbridge/internal/Activator.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 Cognos Incorporated, IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Cognos Incorporated - initial API and implementation
- * IBM Corporation - bug fixes and enhancements
- *******************************************************************************/
-package org.eclipse.equinox.http.servletbridge.internal;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-public class Activator implements BundleActivator {
-
- public void start(BundleContext context) throws Exception {
- }
-
- public void stop(BundleContext context) throws Exception {
- }
-}
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.classpath b/org.adempiere.eclipse.equinox.servletbridge/.classpath
deleted file mode 100644
index 423c974870..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.classpath
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.project b/org.adempiere.eclipse.equinox.servletbridge/.project
deleted file mode 100644
index b4f0f2d7e0..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.project
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
- org.adempiere.eclipse.equinox.servletbridge
-
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.eclipse.m2e.core.maven2Nature
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.settings/.jsdtscope b/org.adempiere.eclipse.equinox.servletbridge/.settings/.jsdtscope
deleted file mode 100644
index d799103564..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.settings/.jsdtscope
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.core.resources.prefs b/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 99f26c0203..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.jdt.core.prefs b/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b5eacefd65..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.release=enabled
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.m2e.core.prefs b/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index f897a7f1cb..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.pde.core.prefs b/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.pde.core.prefs
deleted file mode 100644
index 26dd37f080..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.pde.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-#Fri Dec 24 14:44:01 MYT 2010
-eclipse.preferences.version=1
-pluginProject.extensions=false
-resolve.requirebundle=false
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.wst.jsdt.ui.superType.container b/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a480..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.wst.jsdt.ui.superType.name b/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b6ec..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/org.adempiere.eclipse.equinox.servletbridge/META-INF/MANIFEST.MF b/org.adempiere.eclipse.equinox.servletbridge/META-INF/MANIFEST.MF
deleted file mode 100644
index 6414c3d4d0..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,18 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Vendor: %providerName
-Bundle-Localization: plugin
-Bundle-RequiredExecutionEnvironment: JavaSE-11
-Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version>=11))"
-Bundle-Name: %bundleName
-Bundle-SymbolicName: org.adempiere.eclipse.equinox.servletbridge;singleton:=true
-Eclipse-SourceReferences: scm:cvs:pserver:dev.eclipse.org:/cvsroot/rt:
- org.eclipse.equinox/server-side/bundles/org.eclipse.equinox.servletbr
- idge;tag=v20100503
-Bundle-Version: 7.1.0.qualifier
-Export-Package: org.eclipse.equinox.servletbridge;version="1.1.0"
-Import-Package: javax.servlet;version="2.3.0",
- javax.servlet.http;version="2.3.0",
- org.eclipse.equinox.http.servlet;version="1.1.0"
-Bundle-ManifestVersion: 2
-Bundle-ClassPath: .
-Automatic-Module-Name: org.adempiere.eclipse.equinox.servletbridge
diff --git a/org.adempiere.eclipse.equinox.servletbridge/about.html b/org.adempiere.eclipse.equinox.servletbridge/about.html
deleted file mode 100644
index d7e1cdf1e2..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
January 30, 2007
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/org.adempiere.eclipse.equinox.servletbridge/build.properties b/org.adempiere.eclipse.equinox.servletbridge/build.properties
deleted file mode 100644
index 140c228807..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/build.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-bin.includes = META-INF/,\
- plugin.properties,\
- .
-javacErrors.. = -assertIdentifier,-enumIdentifier
-output.. = target/classes/
-source.. = src/
diff --git a/org.adempiere.eclipse.equinox.servletbridge/plugin.properties b/org.adempiere.eclipse.equinox.servletbridge/plugin.properties
deleted file mode 100644
index 8390460842..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/plugin.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-##Source Bundle Localization
-#Thu Jun 24 08:29:00 EDT 2010
-bundleName=Servletbridge Source
-providerName=Eclipse.org - Equinox
diff --git a/org.adempiere.eclipse.equinox.servletbridge/pom.xml b/org.adempiere.eclipse.equinox.servletbridge/pom.xml
deleted file mode 100644
index 7b7a156c81..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/pom.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
- 4.0.0
-
- org.idempiere
- org.idempiere.parent
- 7.1.0-SNAPSHOT
- ../org.idempiere.parent/pom.xml
-
- org.adempiere.eclipse.equinox.servletbridge
- eclipse-plugin
-
\ No newline at end of file
diff --git a/org.adempiere.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java b/org.adempiere.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java
deleted file mode 100644
index 7562e98664..0000000000
--- a/org.adempiere.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java
+++ /dev/null
@@ -1,391 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2009 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-/**
- * The java.net.URLClassLoader class allows one to load resources from arbitrary URLs and in particular is optimized to handle
- * "jar" URLs. Unfortunately for jar files this optimization ends up holding the file open which ultimately prevents the file from
- * being deleted or update until the VM is shutdown.
- *
- * The CloseableURLClassLoader is meant to replace the URLClassLoader and provides an additional method to allow one to "close" any
- * resources left open. In the current version the CloseableURLClassLoader will only ensure the closing of jar file resources. The
- * jar handling behavior in this class will also provides a construct to allow one to turn off jar file verification in performance
- * sensitive situations where the verification us not necessary.
- *
- * also see https://bugs.eclipse.org/bugs/show_bug.cgi?id=190279
- */
-
-package org.eclipse.equinox.servletbridge;
-
-import java.io.*;
-import java.net.*;
-import java.security.*;
-import java.util.*;
-import java.util.jar.*;
-import java.util.jar.Attributes.Name;
-
-public class CloseableURLClassLoader extends URLClassLoader {
- static final String DOT_CLASS = ".class"; //$NON-NLS-1$
- static final String BANG_SLASH = "!/"; //$NON-NLS-1$
- static final String JAR = "jar"; //$NON-NLS-1$
-
- // @GuardedBy("loaders")
- final ArrayList loaders = new ArrayList(); // package private to avoid synthetic access.
- // @GuardedBy("loaders")
- private final ArrayList loaderURLs = new ArrayList(); // note: protected by loaders
- // @GuardedBy("loaders")
- boolean closed = false; // note: protected by loaders, package private to avoid synthetic access.
-
- private final AccessControlContext context;
- private final boolean verifyJars;
-
- private static class CloseableJarURLConnection extends JarURLConnection {
- private final JarFile jarFile;
- // @GuardedBy("this")
- private JarEntry entry;
-
- public CloseableJarURLConnection(URL url, JarFile jarFile) throws MalformedURLException {
- super(url);
- this.jarFile = jarFile;
- }
-
- public void connect() throws IOException {
- internalGetEntry();
- }
-
- private synchronized JarEntry internalGetEntry() throws IOException {
- if (entry != null)
- return entry;
- entry = jarFile.getJarEntry(getEntryName());
- if (entry == null)
- throw new FileNotFoundException(getEntryName());
- return entry;
- }
-
- public InputStream getInputStream() throws IOException {
- return jarFile.getInputStream(internalGetEntry());
- }
-
- /**
- * @throws IOException
- * Documented to avoid warning
- */
- public JarFile getJarFile() throws IOException {
- return jarFile;
- }
-
- public JarEntry getJarEntry() throws IOException {
- return internalGetEntry();
- }
- }
-
- private static class CloseableJarURLStreamHandler extends URLStreamHandler {
- private final JarFile jarFile;
-
- public CloseableJarURLStreamHandler(JarFile jarFile) {
- this.jarFile = jarFile;
- }
-
- protected URLConnection openConnection(URL u) throws IOException {
- return new CloseableJarURLConnection(u, jarFile);
- }
-
- protected void parseURL(URL u, String spec, int start, int limit) {
- setURL(u, JAR, null, 0, null, null, spec.substring(start, limit), null, null);
- }
- }
-
- private static class CloseableJarFileLoader {
- private final JarFile jarFile;
- private final Manifest manifest;
- private final CloseableJarURLStreamHandler jarURLStreamHandler;
- private final String jarFileURLPrefixString;
-
- public CloseableJarFileLoader(File file, boolean verify) throws IOException {
- this.jarFile = new JarFile(file, verify);
- this.manifest = jarFile.getManifest();
- this.jarURLStreamHandler = new CloseableJarURLStreamHandler(jarFile);
- this.jarFileURLPrefixString = file.toURI().toURL().toString() + BANG_SLASH;
- }
-
- public URL getURL(String name) {
- if (jarFile.getEntry(name) != null)
- try {
- return new URL(JAR, null, -1, jarFileURLPrefixString + name, jarURLStreamHandler);
- } catch (MalformedURLException e) {
- // ignore
- }
- return null;
- }
-
- public Manifest getManifest() {
- return manifest;
- }
-
- public void close() {
- try {
- jarFile.close();
- } catch (IOException e) {
- // ignore
- }
- }
- }
-
- /**
- * @param urls the array of URLs to use for loading resources
- * @see URLClassLoader
- */
- public CloseableURLClassLoader(URL[] urls) {
- this(urls, ClassLoader.getSystemClassLoader(), true);
- }
-
- /**
- * @param urls the URLs from which to load classes and resources
- * @param parent the parent class loader used for delegation
- * @see URLClassLoader
- */
- public CloseableURLClassLoader(URL[] urls, ClassLoader parent) {
- this(excludeFileJarURLS(urls), parent, true);
- }
-
- /**
- * @param urls the URLs from which to load classes and resources
- * @param parent the parent class loader used for delegation
- * @param verifyJars flag to determine if jar file verification should be performed
- * @see URLClassLoader
- */
- public CloseableURLClassLoader(URL[] urls, ClassLoader parent, boolean verifyJars) {
- super(excludeFileJarURLS(urls), parent);
- this.context = AccessController.getContext();
- this.verifyJars = verifyJars;
- for (int i = 0; i < urls.length; i++) {
- if (isFileJarURL(urls[i])) {
- loaderURLs.add(urls[i]);
- safeAddLoader(urls[i]);
- }
- }
- }
-
- // @GuardedBy("loaders")
- private void safeAddLoader(URL url) {
- String path = url.getPath();
- File file = new File(path);
- if (file.exists()) {
- try {
- loaders.add(new CloseableJarFileLoader(file, verifyJars));
- } catch (IOException e) {
- // ignore
- }
- }
- }
-
- private static URL[] excludeFileJarURLS(URL[] urls) {
- ArrayList urlList = new ArrayList();
- for (int i = 0; i < urls.length; i++) {
- if (!isFileJarURL(urls[i]))
- urlList.add(urls[i]);
- }
- return (URL[]) urlList.toArray(new URL[urlList.size()]);
- }
-
- private static boolean isFileJarURL(URL url) {
- if (!url.getProtocol().equals("file")) //$NON-NLS-1$
- return false;
-
- String path = url.getPath();
- if (path != null && path.endsWith("/")) //$NON-NLS-1$
- return false;
-
- return true;
- }
-
- /* (non-Javadoc)
- * @see java.net.URLClassLoader#findClass(java.lang.String)
- */
- protected Class> findClass(final String name) throws ClassNotFoundException {
- try {
- Class> clazz = (Class>) AccessController.doPrivileged(new PrivilegedExceptionAction