2003-06-27 Michael Koch <konqueror@gmx.de>
* javax/naming/CompositeName.java (serialVersionUID): New member variable. * javax/naming/CompoundName.java (serialVersionUID): New member variable. * javax/naming/InitialContext.java (InitialContext): Throws NamingException. (init): Likewise. * javax/naming/LinkRef.java (serialVersionUID): New member variable. (gteLinkName): Throws NamingException. * javax/naming/NamingException.java (serialVersionUID): New member variable. * javax/naming/NamingSecurityException.java (NamingSecurityException): Made abstract. (serialVersionUID): New member variable. * javax/naming/ReferralException.java (serialVersionUID): New member variable. * javax/naming/StringRefAddr.java (serialVersionUID): New member variable. * javax/naming/directory/BasicAttribute.java: Reworked imports. (serialVersionUID): New member variable. (get): Throws NamingException. (getAll): Throws NamingException. * javax/naming/directory/BasicAttributes.java: Reworked imports. (serialVersionUID): New member variable. * javax/naming/ldap/UnsolicitedNotificationEvent.java (serialVersionUID): New member variable. From-SVN: r68570
This commit is contained in:
parent
3556d877f8
commit
7fc600fc4c
@ -1,3 +1,35 @@
|
||||
2003-06-27 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* javax/naming/CompositeName.java
|
||||
(serialVersionUID): New member variable.
|
||||
* javax/naming/CompoundName.java
|
||||
(serialVersionUID): New member variable.
|
||||
* javax/naming/InitialContext.java
|
||||
(InitialContext): Throws NamingException.
|
||||
(init): Likewise.
|
||||
* javax/naming/LinkRef.java
|
||||
(serialVersionUID): New member variable.
|
||||
(gteLinkName): Throws NamingException.
|
||||
* javax/naming/NamingException.java
|
||||
(serialVersionUID): New member variable.
|
||||
* javax/naming/NamingSecurityException.java
|
||||
(NamingSecurityException): Made abstract.
|
||||
(serialVersionUID): New member variable.
|
||||
* javax/naming/ReferralException.java
|
||||
(serialVersionUID): New member variable.
|
||||
* javax/naming/StringRefAddr.java
|
||||
(serialVersionUID): New member variable.
|
||||
* javax/naming/directory/BasicAttribute.java:
|
||||
Reworked imports.
|
||||
(serialVersionUID): New member variable.
|
||||
(get): Throws NamingException.
|
||||
(getAll): Throws NamingException.
|
||||
* javax/naming/directory/BasicAttributes.java:
|
||||
Reworked imports.
|
||||
(serialVersionUID): New member variable.
|
||||
* javax/naming/ldap/UnsolicitedNotificationEvent.java
|
||||
(serialVersionUID): New member variable.
|
||||
|
||||
2003-06-27 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* Makefile.am
|
||||
|
@ -52,6 +52,8 @@ import java.util.Vector;
|
||||
*/
|
||||
public class CompositeName implements Name, Cloneable, Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1667768148915813118L;
|
||||
|
||||
public CompositeName ()
|
||||
{
|
||||
elts = new Vector ();
|
||||
|
@ -58,6 +58,8 @@ import java.util.Vector;
|
||||
*/
|
||||
public class CompoundName implements Name, Cloneable, Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 3513100557083972036L;
|
||||
|
||||
private CompoundName (Properties syntax)
|
||||
{
|
||||
elts = new Vector ();
|
||||
|
@ -38,6 +38,7 @@ exception statement from your version. */
|
||||
|
||||
package javax.naming;
|
||||
|
||||
import java.applet.Applet;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
@ -46,8 +47,6 @@ import java.net.URL;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Properties;
|
||||
import java.applet.Applet;
|
||||
import java.util.Hashtable;
|
||||
import javax.naming.spi.NamingManager;
|
||||
|
||||
public class InitialContext implements Context
|
||||
@ -57,22 +56,27 @@ public class InitialContext implements Context
|
||||
protected Hashtable myProps;
|
||||
|
||||
public InitialContext (Hashtable environment)
|
||||
throws NamingException
|
||||
{
|
||||
init (environment);
|
||||
}
|
||||
|
||||
protected InitialContext (boolean lazy)
|
||||
throws NamingException
|
||||
{
|
||||
if (! lazy)
|
||||
init (null);
|
||||
}
|
||||
|
||||
public InitialContext ()
|
||||
throws NamingException
|
||||
{
|
||||
init (null);
|
||||
}
|
||||
|
||||
|
||||
/** @since 1.3 */
|
||||
protected void init (Hashtable environment)
|
||||
throws NamingException
|
||||
{
|
||||
// FIXME: Is this enough?
|
||||
final String[] properties = {
|
||||
|
@ -46,6 +46,8 @@ import java.io.Serializable;
|
||||
*/
|
||||
public class LinkRef extends Reference
|
||||
{
|
||||
private static final long serialVersionUID = -5386290613498931298L;
|
||||
|
||||
public LinkRef (Name name)
|
||||
{
|
||||
this (name.toString ());
|
||||
@ -58,6 +60,7 @@ public class LinkRef extends Reference
|
||||
}
|
||||
|
||||
public String getLinkName ()
|
||||
throws NamingException
|
||||
{
|
||||
StringRefAddr sra = (StringRefAddr) get (0);
|
||||
return (String) sra.getContent ();
|
||||
|
@ -55,6 +55,7 @@ import java.io.PrintWriter;
|
||||
*/
|
||||
public class NamingException extends Exception
|
||||
{
|
||||
private static final long serialVersionUID = -1299181962103167177L;
|
||||
|
||||
/**
|
||||
* The root cause of this exception. Might be null. Set by calling
|
||||
|
@ -40,8 +40,10 @@ package javax.naming;
|
||||
|
||||
import java.lang.Exception;
|
||||
|
||||
public class NamingSecurityException extends NamingException
|
||||
public abstract class NamingSecurityException extends NamingException
|
||||
{
|
||||
private static final long serialVersionUID = 5855287647294685775L;
|
||||
|
||||
public NamingSecurityException ()
|
||||
{
|
||||
super ();
|
||||
|
@ -48,6 +48,8 @@ import java.util.Hashtable;
|
||||
|
||||
public abstract class ReferralException extends NamingException
|
||||
{
|
||||
private static final long serialVersionUID = -2881363844695698876L;
|
||||
|
||||
protected ReferralException ()
|
||||
{
|
||||
super ();
|
||||
|
@ -48,6 +48,7 @@ package javax.naming;
|
||||
*/
|
||||
public class StringRefAddr extends RefAddr
|
||||
{
|
||||
private static final long serialVersionUID = -8913762495138505527L;
|
||||
|
||||
/**
|
||||
* The possibly null content of this RefAddr.
|
||||
|
@ -38,8 +38,11 @@ exception statement from your version. */
|
||||
|
||||
package javax.naming.directory;
|
||||
|
||||
import javax.naming.*;
|
||||
import java.util.*;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Vector;
|
||||
import javax.naming.NamingEnumeration;
|
||||
import javax.naming.NamingException;
|
||||
import javax.naming.OperationNotSupportedException;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@redhat.com>
|
||||
@ -47,6 +50,8 @@ import java.util.*;
|
||||
*/
|
||||
public class BasicAttribute implements Attribute
|
||||
{
|
||||
private static final long serialVersionUID = 6743528196119291326L;
|
||||
|
||||
/** The ID of this attribute. */
|
||||
protected String attrID;
|
||||
/** True if this attribute's values are ordered. */
|
||||
@ -159,6 +164,7 @@ public class BasicAttribute implements Attribute
|
||||
}
|
||||
|
||||
public Object get ()
|
||||
throws NamingException
|
||||
{
|
||||
if (values.size () == 0)
|
||||
throw new NoSuchElementException ("no values");
|
||||
@ -166,11 +172,13 @@ public class BasicAttribute implements Attribute
|
||||
}
|
||||
|
||||
public Object get (int index)
|
||||
throws NamingException
|
||||
{
|
||||
return values.get (index);
|
||||
}
|
||||
|
||||
public NamingEnumeration getAll ()
|
||||
throws NamingException
|
||||
{
|
||||
return new BasicAttributeEnumeration ();
|
||||
}
|
||||
|
@ -38,8 +38,10 @@ exception statement from your version. */
|
||||
|
||||
package javax.naming.directory;
|
||||
|
||||
import javax.naming.*;
|
||||
import java.util.*;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Vector;
|
||||
import javax.naming.NamingEnumeration;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@redhat.com>
|
||||
@ -47,6 +49,8 @@ import java.util.*;
|
||||
*/
|
||||
public class BasicAttributes implements Attributes
|
||||
{
|
||||
private static final long serialVersionUID = 4980164073184639448L;
|
||||
|
||||
public BasicAttributes ()
|
||||
{
|
||||
this (false);
|
||||
|
@ -37,15 +37,17 @@ exception statement from your version. */
|
||||
|
||||
|
||||
package javax.naming.ldap;
|
||||
|
||||
import java.util.EventObject;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@redhat.com>
|
||||
* @date June 5, 2001
|
||||
*/
|
||||
|
||||
public class UnsolicitedNotificationEvent extends EventObject
|
||||
{
|
||||
private static final long serialVersionUID = -2382603380799883705L;
|
||||
|
||||
// Serialized fields.
|
||||
private UnsolicitedNotification notice;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user