summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2011-04-07 04:56:56 (EDT)
committerCaspar De Groot2011-04-07 04:56:56 (EDT)
commit8940511aacc50b6fb83a50910a5e94c6bdd996e1 (patch)
tree143abd6ac980462278255278c15e1e94070df40f
parent1584524b169d9713c7744828bd86f69995c37a50 (diff)
downloadcdo-8940511aacc50b6fb83a50910a5e94c6bdd996e1.zip
cdo-8940511aacc50b6fb83a50910a5e94c6bdd996e1.tar.gz
cdo-8940511aacc50b6fb83a50910a5e94c6bdd996e1.tar.bz2
[Bug 340108] SSL transport implementation for Net4J
https://bugs.eclipse.org/bugs/show_bug.cgi?id=340108 (Removing stray Java files.)
-rw-r--r--plugins/org.eclipse.net4j.tcp/SSLSelector.java31
-rw-r--r--plugins/org.eclipse.net4j.tcp/SSLSelectorFactory.java44
-rw-r--r--plugins/org.eclipse.net4j.tcp/SSLSelectorInjector.java61
3 files changed, 0 insertions, 136 deletions
diff --git a/plugins/org.eclipse.net4j.tcp/SSLSelector.java b/plugins/org.eclipse.net4j.tcp/SSLSelector.java
deleted file mode 100644
index 66ab261..0000000
--- a/plugins/org.eclipse.net4j.tcp/SSLSelector.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) 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:
- * Teerawat Chaiyakijpichet (No Magic Asia Ltd.) - initial API and implementation
- * Caspar De Groot (No Magic Asia Ltd.) - initial API and implementation
- */
-package org.eclipse.net4j.internal.tcp.ssl;
-
-import org.eclipse.net4j.internal.tcp.TCPSelector;
-
-/**
- * SSLSelector's functionality same as TCPSelector. Just override toString method in order to return the name of
- * SSLSelector.
- *
- * @author Teerawat Chaiyakijpichet (No Magic Asia Ltd.)
- * @author Caspar De Groot (No Magic Asia Ltd.)
- * @since 4.0
- */
-public class SSLSelector extends TCPSelector
-{
- @Override
- public String toString()
- {
- return "SSLSelector"; //$NON-NLS-1$
- }
-}
diff --git a/plugins/org.eclipse.net4j.tcp/SSLSelectorFactory.java b/plugins/org.eclipse.net4j.tcp/SSLSelectorFactory.java
deleted file mode 100644
index 27f63d2..0000000
--- a/plugins/org.eclipse.net4j.tcp/SSLSelectorFactory.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) 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:
- * Teerawat Chaiyakijpichet (No Magic Asia Ltd.) - initial API and implementation
- * Caspar De Groot (No Magic Asia Ltd.) - initial API and implementation
- */
-package org.eclipse.net4j.internal.tcp.ssl;
-
-import org.eclipse.net4j.util.container.IManagedContainer;
-import org.eclipse.net4j.util.factory.Factory;
-
-/**
- * SSLSelectorFactory responses to create SSLSelector.
- *
- * @author Teerawat Chaiyakijpichet (No Magic Asia Ltd.)
- * @author Caspar De Groot (No Magic Asia Ltd.)
- * @since 4.0
- */
-public class SSLSelectorFactory extends Factory
-{
- public static final String PRODUCT_GROUP = "org.eclipse.net4j.selectors"; //$NON-NLS-1$
-
- public static final String TYPE = "ssl"; //$NON-NLS-1$
-
- public SSLSelectorFactory()
- {
- super(PRODUCT_GROUP, TYPE);
- }
-
- public SSLSelector create(String description)
- {
- return new SSLSelector();
- }
-
- public static SSLSelector get(IManagedContainer container, String description)
- {
- return (SSLSelector)container.getElement(PRODUCT_GROUP, TYPE, description);
- }
-}
diff --git a/plugins/org.eclipse.net4j.tcp/SSLSelectorInjector.java b/plugins/org.eclipse.net4j.tcp/SSLSelectorInjector.java
deleted file mode 100644
index 0bad0bb..0000000
--- a/plugins/org.eclipse.net4j.tcp/SSLSelectorInjector.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) 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:
- * Teerawat Chaiyakijpichet (No Magic Asia Ltd.) - initial API and implementation
- * Caspar De Groot (No Magic Asia Ltd.) - initial API and implementation
- */
-package org.eclipse.net4j.internal.tcp.ssl;
-
-import org.eclipse.net4j.internal.tcp.TCPConnector;
-import org.eclipse.net4j.util.container.IElementProcessor;
-import org.eclipse.net4j.util.container.IManagedContainer;
-
-/**
- * SSLSelectorInjector responses to set the SSLSelector into SSLAcceptor for server side and SSLSelector into
- * SSLClientConnector for client side.
- *
- * @author Teerawat Chaiyakijpichet (No Magic Asia Ltd.)
- * @author Caspar De Groot (No Magic Asia Ltd.)
- * @since 4.0
- */
-public class SSLSelectorInjector implements IElementProcessor
-{
- public static final String TYPE = null;
-
- public SSLSelectorInjector()
- {
- }
-
- public Object process(IManagedContainer container, String productGroup, String factoryType, String description,
- Object element)
- {
- if (element instanceof SSLAcceptor)
- {
- SSLAcceptor acceptor = (SSLAcceptor)element;
- if (acceptor.getSelector() == null)
- {
- acceptor.setSelector(getSelector(container));
- }
- }
- else if (element instanceof TCPConnector)
- {
- TCPConnector connector = (TCPConnector)element;
- if (connector.getSelector() == null)
- {
- connector.setSelector(getSelector(container));
- }
- }
-
- return element;
- }
-
- protected SSLSelector getSelector(IManagedContainer container)
- {
- return SSLSelectorFactory.get(container, null);
- }
-}