From eb4fd2d1e1bc848412fbde7288b98a13bac20bdd Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 03 Jan 2012 17:42:33 +0000
Subject: [PATCH] Fix OPENDJ-395: Consolidate OpenDJ SDK examples into single package
---
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Modify.java | 6 +-
/dev/null | 36 ------------
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/package-info.java | 8 +-
opendj3/opendj-ldap-sdk-examples/src/site/xdoc/index.xml | 22 +++++--
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SearchAsync.java | 8 +-
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Search.java | 6 +-
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Proxy.java | 6 +-
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SASLAuth.java | 6 +-
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/GetInfo.java | 6 +-
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Server.java | 6 +-
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/ReadSchema.java | 6 +-
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SimpleAuth.java | 6 +-
12 files changed, 46 insertions(+), 76 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/getinfo/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/GetInfo.java
similarity index 97%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/getinfo/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/GetInfo.java
index 245b81f..d4beab3 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/getinfo/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/GetInfo.java
@@ -24,7 +24,7 @@
*
* Copyright 2012 ForgeRock AS
*/
-package org.forgerock.opendj.examples.getinfo;
+package org.forgerock.opendj.examples;
@@ -39,7 +39,7 @@
/**
* Demonstrates accessing server information about capabilities and schema.
*/
-public final class Main
+public final class GetInfo
{
// Connection information
private static String host;
@@ -178,7 +178,7 @@
- private Main()
+ private GetInfo()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/modify/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Modify.java
similarity index 97%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/modify/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Modify.java
index 8c9f116..79de470 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/modify/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Modify.java
@@ -26,7 +26,7 @@
* Portions copyright 2011 ForgeRock AS
*/
-package org.forgerock.opendj.examples.modify;
+package org.forgerock.opendj.examples;
@@ -50,7 +50,7 @@
* <host> <port> <username> <password> [<ldifFile>]
* </pre>
*/
-public final class Main
+public final class Modify
{
/**
* Main method.
@@ -157,7 +157,7 @@
- private Main()
+ private Modify()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/proxy/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Proxy.java
similarity index 98%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/proxy/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Proxy.java
index 9f90dd0..99aac0d 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/proxy/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Proxy.java
@@ -26,7 +26,7 @@
* Portions copyright 2011-2012 ForgeRock AS
*/
-package org.forgerock.opendj.examples.proxy;
+package org.forgerock.opendj.examples;
@@ -60,7 +60,7 @@
* [<remoteAddress2> <remotePort2> ...]
* </pre>
*/
-public final class Main
+public final class Proxy
{
private static final class ProxyBackend implements
RequestHandler<RequestContext>
@@ -586,7 +586,7 @@
- private Main()
+ private Proxy()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/schema/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/ReadSchema.java
similarity index 97%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/schema/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/ReadSchema.java
index 2fc706c..1dbf0f7 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/schema/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/ReadSchema.java
@@ -26,7 +26,7 @@
* Portions copyright 2011 ForgeRock AS
*/
-package org.forgerock.opendj.examples.schema;
+package org.forgerock.opendj.examples;
@@ -45,7 +45,7 @@
* <host> <port> <username> <password>
* </pre>
*/
-public final class Main
+public final class ReadSchema
{
/**
* Main method.
@@ -140,7 +140,7 @@
- private Main()
+ private ReadSchema()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/saslauth/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SASLAuth.java
similarity index 97%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/saslauth/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SASLAuth.java
index f7b2dd4..1db4eee 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/saslauth/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SASLAuth.java
@@ -31,7 +31,7 @@
*
* Set up StartTLS before using this example.
*/
-package org.forgerock.opendj.examples.saslauth;
+package org.forgerock.opendj.examples;
import java.security.GeneralSecurityException;
@@ -77,7 +77,7 @@
* u:bjensen
* </pre>
*/
-public final class Main
+public final class SASLAuth
{
/**
* Authenticate to the directory using SASL PLAIN.
@@ -203,7 +203,7 @@
- private Main()
+ private SASLAuth()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/search/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Search.java
similarity index 97%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/search/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Search.java
index 4112ce7..0098552 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/search/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Search.java
@@ -26,7 +26,7 @@
* Portions copyright 2011 ForgeRock AS
*/
-package org.forgerock.opendj.examples.search;
+package org.forgerock.opendj.examples;
@@ -48,7 +48,7 @@
* <baseDN> <scope> <filter> [<attibute> <attribute> ...]
* </pre>
*/
-public final class Main
+public final class Search
{
/**
* Main method.
@@ -181,7 +181,7 @@
- private Main()
+ private Search()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/searchasync/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SearchAsync.java
similarity index 97%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/searchasync/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SearchAsync.java
index 95ff441..6cacf31 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/searchasync/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SearchAsync.java
@@ -26,7 +26,7 @@
* Portions copyright 2011 ForgeRock AS
*/
-package org.forgerock.opendj.examples.searchasync;
+package org.forgerock.opendj.examples;
@@ -50,7 +50,7 @@
* <baseDN> <scope> <filter> [<attibute> <attribute> ...]
* </pre>
*/
-public final class Main
+public final class SearchAsync
{
private static final class BindResultHandlerImpl implements
ResultHandler<BindResult>
@@ -109,7 +109,7 @@
public void handleResult(final Connection connection)
{
// Connect succeeded: save connection and initiate bind.
- Main.connection = connection;
+ SearchAsync.connection = connection;
final BindRequest request = Requests.newSimpleBindRequest(
userName, password.toCharArray());
@@ -310,7 +310,7 @@
- private Main()
+ private SearchAsync()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/server/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Server.java
similarity index 98%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/server/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Server.java
index 113c2a3..f87cd59 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/server/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/Server.java
@@ -26,7 +26,7 @@
* Portions copyright 2011-2012 ForgeRock AS
*/
-package org.forgerock.opendj.examples.server;
+package org.forgerock.opendj.examples;
@@ -62,7 +62,7 @@
* <listenAddress> <listenPort> [<ldifFile>]
* </pre>
*/
-public final class Main
+public final class Server
{
private static final class MemoryBackend implements
RequestHandler<RequestContext>
@@ -561,7 +561,7 @@
- private Main()
+ private Server()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/simpleauth/Main.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SimpleAuth.java
similarity index 98%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/simpleauth/Main.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SimpleAuth.java
index 5242d9d..7591949 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/simpleauth/Main.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/SimpleAuth.java
@@ -25,7 +25,7 @@
* Copyright 2011 ForgeRock AS
*/
-package org.forgerock.opendj.examples.simpleauth;
+package org.forgerock.opendj.examples;
@@ -57,7 +57,7 @@
* The host, port, bind-dn, and bind-password are required. The use-starttls
* and use-ssl parameters are optional and mutually exclusive.
*/
-public final class Main
+public final class SimpleAuth
{
/**
@@ -257,7 +257,7 @@
- private Main()
+ private SimpleAuth()
{
// Not used.
}
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/modify/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/modify/package-info.java
deleted file mode 100755
index 0fedf53..0000000
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/modify/package-info.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- * add the following below this CDDL HEADER, with the fields enclosed
- * by brackets "[]" replaced with your own identifying information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2009-2010 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS
- */
-
-/**
- * An example client application which applies update operations to a Directory
- * Server. The update operations will be read from an LDIF file, or stdin if no
- * filename is provided.
- */
-package org.forgerock.opendj.examples.modify;
-
-
-
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/getinfo/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/package-info.java
similarity index 87%
rename from opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/getinfo/package-info.java
rename to opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/package-info.java
index 8a0a6b1..4e60328 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/getinfo/package-info.java
+++ b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/package-info.java
@@ -26,9 +26,7 @@
*/
/**
- * Demonstrates accessing server information about capabilities and schema.
+ * This package includes examples illustrating various use cases of the
+ * OpenDJ LDAP SDK.
*/
-package org.forgerock.opendj.examples.getinfo;
-
-
-
+package org.forgerock.opendj.examples;
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/proxy/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/proxy/package-info.java
deleted file mode 100755
index 897d1e2..0000000
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/proxy/package-info.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- * add the following below this CDDL HEADER, with the fields enclosed
- * by brackets "[]" replaced with your own identifying information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2009-2010 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS
- */
-
-/**
- * An example LDAP proxy which forwards requests to a remote Directory Server.
- */
-package org.forgerock.opendj.examples.proxy;
-
-
-
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/saslauth/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/saslauth/package-info.java
deleted file mode 100644
index 31ab1aa..0000000
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/saslauth/package-info.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- * add the following below this CDDL HEADER, with the fields enclosed
- * by brackets "[]" replaced with your own identifying information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2011 ForgeRock AS
- */
-
-/**
- * An example client application which performs SASL authentication to a
- * directory server, displays a result, and closes the connection.
- */
-package org.forgerock.opendj.examples.saslauth;
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/schema/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/schema/package-info.java
deleted file mode 100755
index 6ea8a0c..0000000
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/schema/package-info.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- * add the following below this CDDL HEADER, with the fields enclosed
- * by brackets "[]" replaced with your own identifying information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2011 ForgeRock AS
- */
-
-/**
- * An example client application which prints a summary of the schema on the
- * named server as well as any warnings encountered while parsing the schema.
- */
-package org.forgerock.opendj.examples.schema;
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/search/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/search/package-info.java
deleted file mode 100755
index 4ea4a0d..0000000
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/search/package-info.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- * add the following below this CDDL HEADER, with the fields enclosed
- * by brackets "[]" replaced with your own identifying information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2009-2010 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS
- */
-
-/**
- * An example client application which searches a Directory Server.
- */
-package org.forgerock.opendj.examples.search;
-
-
-
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/searchasync/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/searchasync/package-info.java
deleted file mode 100755
index 270e65b..0000000
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/searchasync/package-info.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- * add the following below this CDDL HEADER, with the fields enclosed
- * by brackets "[]" replaced with your own identifying information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2009-2010 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS
- */
-
-/**
- * An example client application which searches a Directory Server using the
- * asynchronous APIs.
- */
-package org.forgerock.opendj.examples.searchasync;
-
-
-
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/server/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/server/package-info.java
deleted file mode 100755
index 22146fc..0000000
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/server/package-info.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- * add the following below this CDDL HEADER, with the fields enclosed
- * by brackets "[]" replaced with your own identifying information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2009-2010 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS
- */
-
-/**
- * An example LDAP data store which exposes data which is contained within an
- * LDIF file.
- */
-package org.forgerock.opendj.examples.server;
-
-
-
diff --git a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/simpleauth/package-info.java b/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/simpleauth/package-info.java
deleted file mode 100755
index 0221098..0000000
--- a/opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/simpleauth/package-info.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at
- * trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- * add the following below this CDDL HEADER, with the fields enclosed
- * by brackets "[]" replaced with your own identifying information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2009-2010 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS
- */
-
-/**
- * An example client application which performs simple authentication to a
- * Directory Server, displays a result, and closes the connection.
- */
-package org.forgerock.opendj.examples.simpleauth;
-
-
-
diff --git a/opendj3/opendj-ldap-sdk-examples/src/site/xdoc/index.xml b/opendj3/opendj-ldap-sdk-examples/src/site/xdoc/index.xml
index f90de96..26b3adb 100644
--- a/opendj3/opendj-ldap-sdk-examples/src/site/xdoc/index.xml
+++ b/opendj3/opendj-ldap-sdk-examples/src/site/xdoc/index.xml
@@ -35,36 +35,44 @@
OpenDJ LDAP SDK:</p>
<ul>
<li>
- <a href="xref/org/forgerock/opendj/examples/search/Main.html">LDAP search</a>
+ <a href="xref/org/forgerock/opendj/examples/Search.html">LDAP search</a>
- illustrates how to perform an LDAP search operation using the
synchronous APIs
</li>
<li>
- <a href="xref/org/forgerock/opendj/examples/searchasync/Main.html">LDAP asynchronous search</a>
+ <a href="xref/org/forgerock/opendj/examples/SearchAsync.html">LDAP asynchronous search</a>
- illustrates how to perform an LDAP search operation using the
asynchronous APIs
</li>
<li>
- <a href="xref/org/forgerock/opendj/examples/modify/Main.html">LDAP modify</a>
+ <a href="xref/org/forgerock/opendj/examples/Modify.html">LDAP modify</a>
- illustrates how to perform an LDAP modify operation using the
synchronous APIs
</li>
<li>
- <a href="xref/org/forgerock/opendj/examples/server/Main.html">LDAP server</a>
+ <a href="xref/org/forgerock/opendj/examples/Server.html">LDAP server</a>
- illustrates how to implement a very simple LDAP server
</li>
<li>
- <a href="xref/org/forgerock/opendj/examples/proxy/Main.html">LDAP proxy</a>
+ <a href="xref/org/forgerock/opendj/examples/Proxy.html">LDAP proxy</a>
- illustrates how to implement a very simple LDAP proxy
</li>
<li>
- <a href="xref/org/forgerock/opendj/examples/simpleauth/Main.html">LDAP bind</a>
+ <a href="xref/org/forgerock/opendj/examples/SimpleAuth.html">LDAP bind</a>
- illustrates how to bind to an LDAP server
</li>
<li>
- <a href="xref/org/forgerock/opendj/examples/saslauth/Main.html">LDAP SASL bind</a>
+ <a href="xref/org/forgerock/opendj/examples/SASLAuth.html">LDAP SASL bind</a>
- illustrates how to implement a SASL PLAIN bind to an LDAP server
</li>
+ <li>
+ <a href="xref/org/forgerock/opendj/examples/ReadSchema.html">Read LDAP schema</a>
+ - illustrates how to read and verify an LDAP server's schema
+ </li>
+ <li>
+ <a href="xref/org/forgerock/opendj/examples/GetInfo.html">Read Root DSE</a>
+ - illustrates how to read an LDAP server's capabilities and schema
+ </li>
</ul>
</section>
<section name="Get the OpenDJ LDAP SDK Examples">
--
Gitblit v1.10.0