summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/certsrv
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv')
-rw-r--r--pki/base/common/src/com/netscape/certsrv/dbs/IDBVirtualList.java6
-rw-r--r--pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecordList.java2
-rw-r--r--pki/base/common/src/com/netscape/certsrv/logging/ConsoleLog.java12
-rw-r--r--pki/base/common/src/com/netscape/certsrv/logging/ILogEventListener.java8
-rw-r--r--pki/base/common/src/com/netscape/certsrv/logging/ILogSubsystem.java8
5 files changed, 18 insertions, 18 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/IDBVirtualList.java b/pki/base/common/src/com/netscape/certsrv/dbs/IDBVirtualList.java
index 8e627520c..7d175c452 100644
--- a/pki/base/common/src/com/netscape/certsrv/dbs/IDBVirtualList.java
+++ b/pki/base/common/src/com/netscape/certsrv/dbs/IDBVirtualList.java
@@ -27,7 +27,7 @@ import com.netscape.certsrv.base.EBaseException;
*
* @version $Revision$, $Date$
*/
-public interface IDBVirtualList {
+public interface IDBVirtualList<E> {
/**
* Sets the paging size of this virtual list.
@@ -107,7 +107,7 @@ public interface IDBVirtualList {
*
* @param index the index of the element to fetch
*/
- public Object getElementAt(int index);
+ public E getElementAt(int index);
/**
* Retrieves and jumps to element in the given position.
@@ -115,7 +115,7 @@ public interface IDBVirtualList {
* @param i position
* @return object
*/
- public Object getJumpToElementAt(int i);
+ public E getJumpToElementAt(int i);
/**
* Processes elements as soon as it arrives. It is
diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecordList.java b/pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecordList.java
index a77458880..616bd5db1 100644
--- a/pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecordList.java
+++ b/pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecordList.java
@@ -91,6 +91,6 @@ public interface ICertRecordList {
* @return object
* @exception EBaseException failed to retrieve
*/
- public Object getCertRecord(int index)
+ public ICertRecord getCertRecord(int index)
throws EBaseException;
}
diff --git a/pki/base/common/src/com/netscape/certsrv/logging/ConsoleLog.java b/pki/base/common/src/com/netscape/certsrv/logging/ConsoleLog.java
index c18b062c2..8dee67ef8 100644
--- a/pki/base/common/src/com/netscape/certsrv/logging/ConsoleLog.java
+++ b/pki/base/common/src/com/netscape/certsrv/logging/ConsoleLog.java
@@ -88,7 +88,7 @@ public class ConsoleLog implements ILogEventListener {
* @exception IOException
* @exception EBaseException
*/
- public synchronized NameValuePairs retrieveLogContent(Hashtable req) throws ServletException,
+ public synchronized NameValuePairs retrieveLogContent(Hashtable<String, String> req) throws ServletException,
IOException, EBaseException {
return null;
}
@@ -97,7 +97,7 @@ public class ConsoleLog implements ILogEventListener {
* Retrieve log file list.
* <br> unimplemented
*/
- public synchronized NameValuePairs retrieveLogList(Hashtable req) throws ServletException,
+ public synchronized NameValuePairs retrieveLogList(Hashtable<String, String> req) throws ServletException,
IOException, EBaseException {
return null;
}
@@ -110,14 +110,14 @@ public class ConsoleLog implements ILogEventListener {
return "ConsoleLog";
}
- public Vector getDefaultParams() {
- Vector v = new Vector();
+ public Vector<String> getDefaultParams() {
+ Vector<String> v = new Vector<String>();
return v;
}
- public Vector getInstanceParams() {
- Vector v = new Vector();
+ public Vector<String> getInstanceParams() {
+ Vector<String> v = new Vector<String>();
return v;
}
diff --git a/pki/base/common/src/com/netscape/certsrv/logging/ILogEventListener.java b/pki/base/common/src/com/netscape/certsrv/logging/ILogEventListener.java
index 12c09b0bc..80953ead6 100644
--- a/pki/base/common/src/com/netscape/certsrv/logging/ILogEventListener.java
+++ b/pki/base/common/src/com/netscape/certsrv/logging/ILogEventListener.java
@@ -95,14 +95,14 @@ public interface ILogEventListener extends EventListener {
* @exception IOException For input/output problems.
* @exception EBaseException For other problems.
*/
- public NameValuePairs retrieveLogContent(Hashtable req) throws ServletException,
+ public NameValuePairs retrieveLogContent(Hashtable<String, String> req) throws ServletException,
IOException, EBaseException;
/**
* Retrieve list of log files.
*
*/
- public NameValuePairs retrieveLogList(Hashtable req) throws ServletException,
+ public NameValuePairs retrieveLogList(Hashtable<String, String> req) throws ServletException,
IOException, EBaseException;
/**
@@ -121,11 +121,11 @@ public interface ILogEventListener extends EventListener {
* Return list of default config parameters for this log event listener.
* @return Vector of default parameters.
*/
- public Vector getDefaultParams();
+ public Vector<String> getDefaultParams();
/**
* Return list of instance config parameters for this log event listener.
* @return Vector of instance parameters.
*/
- public Vector getInstanceParams();
+ public Vector<String> getInstanceParams();
}
diff --git a/pki/base/common/src/com/netscape/certsrv/logging/ILogSubsystem.java b/pki/base/common/src/com/netscape/certsrv/logging/ILogSubsystem.java
index 438c42508..2bdba0abf 100644
--- a/pki/base/common/src/com/netscape/certsrv/logging/ILogSubsystem.java
+++ b/pki/base/common/src/com/netscape/certsrv/logging/ILogSubsystem.java
@@ -65,7 +65,7 @@ public interface ILogSubsystem extends ISubsystem {
* Hashtable contains the name/value pair of pluginName/LogPlugin
* @see LogPlugin
*/
- public Hashtable getLogPlugins();
+ public Hashtable<String, LogPlugin> getLogPlugins();
/**
* get the list of log instances that are available
@@ -73,7 +73,7 @@ public interface ILogSubsystem extends ISubsystem {
* Hashtable contains the name/value pair of instName/ILogEventListener
* @see LogPlugin
*/
- public Hashtable getLogInsts();
+ public Hashtable<String, ILogEventListener> getLogInsts();
/**
* Get the default configuration parameter names associated with a
@@ -87,7 +87,7 @@ public interface ILogSubsystem extends ISubsystem {
* @exception ELogException when instantiation of the plugin
* implementation fails.
*/
- public Vector getLogDefaultParams(String implName) throws
+ public Vector<String> getLogDefaultParams(String implName) throws
ELogException;
/**
@@ -99,6 +99,6 @@ public interface ILogSubsystem extends ISubsystem {
* @return a Vector of default configuration paramter names
* associated with this log instance.
*/
- public Vector getLogInstanceParams(String insName)
+ public Vector<String> getLogInstanceParams(String insName)
throws ELogException;
}