Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.naming.jmod - Naming Module
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module.
JDK 11 Naming module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.naming.jmod.
JDK 11 Naming module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Naming module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.naming.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ javax/naming/ReferralException.java
/* * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.naming; import java.util.Hashtable; /** * This abstract class is used to represent a referral exception, * which is generated in response to a <em>referral</em> * such as that returned by LDAP v3 servers. * <p> * A service provider provides * a subclass of {@code ReferralException} by providing implementations * for {@code getReferralInfo()} and {@code getReferralContext()} (and appropriate * constructors and/or corresponding "set" methods). * <p> * The following code sample shows how {@code ReferralException} can be used. * <blockquote><pre>{@code * while (true) { * try { * bindings = ctx.listBindings(name); * while (bindings.hasMore()) { * b = bindings.next(); * ... * } * break; * } catch (ReferralException e) { * ctx = e.getReferralContext(); * } * } * }</pre></blockquote> *<p> * {@code ReferralException} is an abstract class. Concrete implementations * determine its synchronization and serialization properties. *<p> * An environment parameter passed to the {@code getReferralContext()} * method is owned by the caller. * The service provider will not modify the object or keep a reference to it, * but may keep a reference to a clone of it. * * @author Rosanna Lee * @author Scott Seligman * * @since 1.3 * */ public abstract class ReferralException extends NamingException { /** * Constructs a new instance of ReferralException using the * explanation supplied. All other fields are set to null. * * @param explanation Additional detail about this exception. Can be null. * @see java.lang.Throwable#getMessage */ protected ReferralException(String explanation) { super(explanation); } /** * Constructs a new instance of ReferralException. * All fields are set to null. */ protected ReferralException() { super(); } /** * Retrieves information (such as URLs) related to this referral. * The program may examine or display this information * to the user to determine whether to continue with the referral, * or to determine additional information needs to be supplied in order * to continue with the referral. * * @return Non-null referral information related to this referral. */ public abstract Object getReferralInfo(); /** * Retrieves the context at which to continue the method. * Regardless of whether a referral is encountered directly during a * context operation, or indirectly, for example, during a search * enumeration, the referral exception should provide a context * at which to continue the operation. The referral context is * created using the environment properties of the context * that threw the ReferralException. * *<p> * To continue the operation, the client program should re-invoke * the method using the same arguments as the original invocation. * * @return The non-null context at which to continue the method. * @exception NamingException If a naming exception was encountered. * Call either {@code retryReferral()} or {@code skipReferral()} * to continue processing referrals. */ public abstract Context getReferralContext() throws NamingException; /** * Retrieves the context at which to continue the method using * environment properties. * Regardless of whether a referral is encountered directly during a * context operation, or indirectly, for example, during a search * enumeration, the referral exception should provide a context * at which to continue the operation. *<p> * The referral context is created using {@code env} as its environment * properties. * This method should be used instead of the no-arg overloaded form * when the caller needs to use different environment properties for * the referral context. It might need to do this, for example, when * it needs to supply different authentication information to the referred * server in order to create the referral context. *<p> * To continue the operation, the client program should re-invoke * the method using the same arguments as the original invocation. * * @param env The possibly null environment to use when retrieving the * referral context. If null, no environment properties will be used. * * @return The non-null context at which to continue the method. * @exception NamingException If a naming exception was encountered. * Call either {@code retryReferral()} or {@code skipReferral()} * to continue processing referrals. */ public abstract Context getReferralContext(Hashtable<?,?> env) throws NamingException; /** * Discards the referral about to be processed. * A call to this method should be followed by a call to * {@code getReferralContext} to allow the processing of * other referrals to continue. * The following code fragment shows a typical usage pattern. * <blockquote><pre> * } catch (ReferralException e) { * if (!shallIFollow(e.getReferralInfo())) { * if (!e.skipReferral()) { * return; * } * } * ctx = e.getReferralContext(); * } * </pre></blockquote> * * @return true If more referral processing is pending; false otherwise. */ public abstract boolean skipReferral(); /** * Retries the referral currently being processed. * A call to this method should be followed by a call to * {@code getReferralContext} to allow the current * referral to be retried. * The following code fragment shows a typical usage pattern. * <blockquote><pre> * } catch (ReferralException e) { * while (true) { * try { * ctx = e.getReferralContext(env); * break; * } catch (NamingException ne) { * if (! shallIRetry()) { * return; * } * // modify environment properties (env), if necessary * e.retryReferral(); * } * } * } * </pre></blockquote> * */ public abstract void retryReferral(); /** * Use serialVersionUID from JNDI 1.1.1 for interoperability */ private static final long serialVersionUID = -2881363844695698876L; }
⏎ javax/naming/ReferralException.java
Or download all of them as a single archive file:
File name: java.naming-11.0.1-src.zip File size: 461792 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.net.http.jmod - Net HTTP Module
2020-09-30, 56460👍, 0💬
Popular Posts:
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
XStream is a simple library to serialize objects to XML and back again. JAR File Size and Download L...
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...