jdk/src/java.naming/share/classes/com/sun/jndi/ldap/LdapReferralException.java
changeset 45987 1fac9185cc2d
parent 36969 3176f6c55af1
equal deleted inserted replaced
45986:b9015c99d2dd 45987:1fac9185cc2d
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   115         this.nextName = nextName;
   115         this.nextName = nextName;
   116         this.handleReferrals = handleReferrals;
   116         this.handleReferrals = handleReferrals;
   117 
   117 
   118         // If following referral, request controls are passed to referral ctx
   118         // If following referral, request controls are passed to referral ctx
   119         this.reqCtls =
   119         this.reqCtls =
   120             (handleReferrals == LdapClient.LDAP_REF_FOLLOW ? reqCtls : null);
   120             (handleReferrals == LdapClient.LDAP_REF_FOLLOW ||
       
   121                     handleReferrals == LdapClient.LDAP_REF_FOLLOW_SCHEME ? reqCtls : null);
   121     }
   122     }
   122 
   123 
   123     /**
   124     /**
   124      * Gets a context at which to continue processing.
   125      * Gets a context at which to continue processing.
   125      * The current environment properties are re-used.
   126      * The current environment properties are re-used.