From df59285898b635c3c9f3011609eb7a73e779ecb9 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 07 Feb 2014 10:10:50 +0000
Subject: [PATCH] OPENDJ-1307 Migrate server ASN1 classes to SDK 

---
 opendj3-server-dev/src/server/org/opends/server/tools/tasks/TaskClient.java |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/tools/tasks/TaskClient.java b/opendj3-server-dev/src/server/org/opends/server/tools/tasks/TaskClient.java
index 7299cda..91de469 100644
--- a/opendj3-server-dev/src/server/org/opends/server/tools/tasks/TaskClient.java
+++ b/opendj3-server-dev/src/server/org/opends/server/tools/tasks/TaskClient.java
@@ -45,7 +45,7 @@
 import org.opends.server.backends.task.FailedDependencyAction;
 import org.opends.server.backends.task.TaskState;
 import org.opends.server.config.ConfigConstants;
-import org.opends.server.protocols.asn1.ASN1Exception;
+import org.forgerock.opendj.ldap.DecodeException;
 import org.opends.server.protocols.ldap.AddRequestProtocolOp;
 import org.opends.server.protocols.ldap.AddResponseProtocolOp;
 import org.opends.server.protocols.ldap.DeleteRequestProtocolOp;
@@ -300,11 +300,11 @@
    * @throws IOException if there is a stream communication problem
    * @throws LDAPException if there is a problem getting information
    *         out to the directory
-   * @throws ASN1Exception if there is a problem with the encoding
+   * @throws DecodeException if there is a problem with the encoding
    * @throws TaskClientException if there is a problem with the task entry
    */
   public synchronized TaskEntry schedule(TaskScheduleInformation information)
-          throws LDAPException, IOException, ASN1Exception, TaskClientException
+          throws LDAPException, IOException, DecodeException, TaskClientException
   {
     LDAPReader reader = connection.getLDAPReader();
     LDAPWriter writer = connection.getLDAPWriter();
@@ -356,10 +356,10 @@
    * @throws IOException if there is a stream communication problem
    * @throws LDAPException if there is a problem getting information
    *         out to the directory
-   * @throws ASN1Exception if there is a problem with the encoding
+   * @throws DecodeException if there is a problem with the encoding
    */
   public synchronized List<TaskEntry> getTaskEntries()
-          throws LDAPException, IOException, ASN1Exception {
+          throws LDAPException, IOException, DecodeException {
     List<Entry> entries = new ArrayList<Entry>();
 
     writeSearch(new SearchRequestProtocolOp(
@@ -406,11 +406,11 @@
    * @throws IOException if there is a stream communication problem
    * @throws LDAPException if there is a problem getting information
    *         out to the directory
-   * @throws ASN1Exception if there is a problem with the encoding
+   * @throws DecodeException if there is a problem with the encoding
    * @throws TaskClientException if there is no task with the requested id
    */
   public synchronized TaskEntry getTaskEntry(String id)
-          throws LDAPException, IOException, ASN1Exception, TaskClientException
+          throws LDAPException, IOException, DecodeException, TaskClientException
   {
     Entry entry = null;
 
@@ -455,11 +455,11 @@
    * @throws IOException if there is a stream communication problem
    * @throws LDAPException if there is a problem getting information
    *         out to the directory
-   * @throws ASN1Exception if there is a problem with the encoding
+   * @throws DecodeException if there is a problem with the encoding
    * @throws TaskClientException if there is no task with the requested id
    */
   public synchronized void cancelTask(String id)
-          throws TaskClientException, IOException, ASN1Exception, LDAPException
+          throws TaskClientException, IOException, DecodeException, LDAPException
   {
     LDAPReader reader = connection.getLDAPReader();
     LDAPWriter writer = connection.getLDAPWriter();

--
Gitblit v1.10.0