Permalink
Browse files

- The engine has been moved from "com.noelios.restlet" to

   the "org.restlet.engine" package, simplifying the packaging.
 - All engine extensions have been moved to "org.restlet.ext"
   packages.
 - The com.noelios.restlet.ext.spring extension has been merged
   with org.restlet.ext.spring.
  • Loading branch information...
Jérôme Louvel
Jérôme Louvel committed Nov 19, 2008
1 parent 6fb9daa commit 70fb14f8ffc3b85a6d0863d920578c3fc2b9b576
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.restlet.ext.ssl</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,21 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Noelios Restlet Engine - Extension - Java ssl utils
+Bundle-SymbolicName: org.restlet.ext.ssl
+Bundle-Version: 1.1
+Bundle-Vendor: Noelios Technologies
+Export-Package: org.restlet.ext.ssl;uses:="org.restlet.engine.util,jsslutils.sslcontext,jsslutils.sslcontext.trustmanagers"
+Import-Package: org.jsslutils.keystores,
+ org.jsslutils.sslcontext,
+ org.jsslutils.sslcontext.keymanagers,
+ org.jsslutils.sslcontext.trustmanagers,
+ org.restlet,
+ org.restlet.data,
+ org.restlet.engine,
+ org.restlet.engine.util,
+ org.restlet.resource,
+ org.restlet.service,
+ org.restlet.util
+ionEnvironment: J2SE-1.5
+Bundle-RequiredExecutionEnvironment: J2SE-1.5,
+ J2SE-1.5
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
@@ -0,0 +1,86 @@
+/**
+ * Copyright 2005-2008 Noelios Technologies.
+ *
+ * The contents of this file are subject to the terms of the following open
+ * source licenses: LGPL 3.0 or LGPL 2.1 or CDDL 1.0 (the "Licenses"). You can
+ * select the license that you prefer but you may not use this file except in
+ * compliance with one of these Licenses.
+ *
+ * You can obtain a copy of the LGPL 3.0 license at
+ * http://www.gnu.org/licenses/lgpl-3.0.html
+ *
+ * You can obtain a copy of the LGPL 2.1 license at
+ * http://www.gnu.org/licenses/lgpl-2.1.html
+ *
+ * You can obtain a copy of the CDDL 1.0 license at
+ * http://www.sun.com/cddl/cddl.html
+ *
+ * See the Licenses for the specific language governing permissions and
+ * limitations under the Licenses.
+ *
+ * Alternatively, you can obtain a royaltee free commercial license with less
+ * limitations, transferable or non-transferable, directly at
+ * http://www.noelios.com/products/restlet-engine
+ *
+ * Restlet is a registered trademark of Noelios Technologies.
+ */
+package org.restlet.ext.ssl;
+
+import javax.net.ssl.SSLContext;
+
+import org.jsslutils.sslcontext.SSLContextFactory;
+
+import org.restlet.data.Parameter;
+import org.restlet.engine.util.SslContextFactory;
+import org.restlet.util.Series;
+
+
+/**
+ * This SslContextFactory is a wrapper for the SSLContextFactory of <a
+ * href="http://code.google.com/p/jsslutils/">jSSLutils</a>.
+ *
+ * @author Bruno Harbulot (Bruno.Harbulot@manchester.ac.uk)
+ */
+public class JsslutilsSslContextFactory extends SslContextFactory {
+ /**
+ * The wrapped SSLContextFactory.
+ */
+ private final SSLContextFactory sslContextFactory;
+
+ /**
+ * Builds JsslutilsSslContextFactory that wraps an instance of
+ * jsslutils.sslcontext.SSLContextFactory.
+ *
+ * @param sslContextFactory
+ * SSLContextFactory (from jSSLutils) to wrap.
+ */
+ public JsslutilsSslContextFactory(SSLContextFactory sslContextFactory) {
+ this.sslContextFactory = sslContextFactory;
+ }
+
+ /**
+ * Creates a configured and initialised SSLContext by delegating the call to
+ * the SSLContextFactory with which the target instance was built. Please
+ * set the SSLContext protocol in that factory; it is 'SSLv3' in version 0.3
+ * of jSSLutils.
+ *
+ * @see SSLContextFactory#buildSSLContext()
+ */
+ @Override
+ public SSLContext createSslContext() throws Exception {
+ return this.sslContextFactory.buildSSLContext();
+ }
+
+ /**
+ * Returns the wrapped SSLContextFactory with which this instance was built.
+ *
+ * @return the wrapped SSLContextFactory.
+ */
+ public SSLContextFactory getSslContextFactory() {
+ return this.sslContextFactory;
+ }
+
+ @Override
+ public void init(Series<Parameter> parameters) {
+ }
+}
Oops, something went wrong.

0 comments on commit 70fb14f

Please sign in to comment.