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/spi/ContinuationDirContext.java
/* * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.naming.spi; import java.util.Hashtable; import javax.naming.Name; import javax.naming.NamingEnumeration; import javax.naming.CompositeName; import javax.naming.NamingException; import javax.naming.CannotProceedException; import javax.naming.OperationNotSupportedException; import javax.naming.Context; import javax.naming.directory.DirContext; import javax.naming.directory.Attributes; import javax.naming.directory.SearchControls; import javax.naming.directory.SearchResult; import javax.naming.directory.ModificationItem; /** * This class is the continuation context for invoking DirContext methods. * * @author Rosanna Lee * @author Scott Seligman * @since 1.3 */ class ContinuationDirContext extends ContinuationContext implements DirContext { ContinuationDirContext(CannotProceedException cpe, Hashtable<?,?> env) { super(cpe, env); } protected DirContextNamePair getTargetContext(Name name) throws NamingException { if (cpe.getResolvedObj() == null) throw (NamingException)cpe.fillInStackTrace(); Context ctx = NamingManager.getContext(cpe.getResolvedObj(), cpe.getAltName(), cpe.getAltNameCtx(), env); if (ctx == null) throw (NamingException)cpe.fillInStackTrace(); if (ctx instanceof DirContext) return new DirContextNamePair((DirContext)ctx, name); if (ctx instanceof Resolver) { Resolver res = (Resolver)ctx; ResolveResult rr = res.resolveToClass(name, DirContext.class); // Reached a DirContext; return result. DirContext dctx = (DirContext)rr.getResolvedObj(); return (new DirContextNamePair(dctx, rr.getRemainingName())); } // Resolve all the way using lookup(). This may allow the operation // to succeed if it doesn't require the penultimate context. Object ultimate = ctx.lookup(name); if (ultimate instanceof DirContext) { return (new DirContextNamePair((DirContext)ultimate, new CompositeName())); } throw (NamingException)cpe.fillInStackTrace(); } protected DirContextStringPair getTargetContext(String name) throws NamingException { if (cpe.getResolvedObj() == null) throw (NamingException)cpe.fillInStackTrace(); Context ctx = NamingManager.getContext(cpe.getResolvedObj(), cpe.getAltName(), cpe.getAltNameCtx(), env); if (ctx instanceof DirContext) return new DirContextStringPair((DirContext)ctx, name); if (ctx instanceof Resolver) { Resolver res = (Resolver)ctx; ResolveResult rr = res.resolveToClass(name, DirContext.class); // Reached a DirContext; return result. DirContext dctx = (DirContext)rr.getResolvedObj(); Name tmp = rr.getRemainingName(); String remains = (tmp != null) ? tmp.toString() : ""; return (new DirContextStringPair(dctx, remains)); } // Resolve all the way using lookup(). This may allow the operation // to succeed if it doesn't require the penultimate context. Object ultimate = ctx.lookup(name); if (ultimate instanceof DirContext) { return (new DirContextStringPair((DirContext)ultimate, "")); } throw (NamingException)cpe.fillInStackTrace(); } public Attributes getAttributes(String name) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().getAttributes(res.getString()); } public Attributes getAttributes(String name, String[] attrIds) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().getAttributes(res.getString(), attrIds); } public Attributes getAttributes(Name name) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().getAttributes(res.getName()); } public Attributes getAttributes(Name name, String[] attrIds) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().getAttributes(res.getName(), attrIds); } public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException { DirContextNamePair res = getTargetContext(name); res.getDirContext().modifyAttributes(res.getName(), mod_op, attrs); } public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException { DirContextStringPair res = getTargetContext(name); res.getDirContext().modifyAttributes(res.getString(), mod_op, attrs); } public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException { DirContextNamePair res = getTargetContext(name); res.getDirContext().modifyAttributes(res.getName(), mods); } public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException { DirContextStringPair res = getTargetContext(name); res.getDirContext().modifyAttributes(res.getString(), mods); } public void bind(Name name, Object obj, Attributes attrs) throws NamingException { DirContextNamePair res = getTargetContext(name); res.getDirContext().bind(res.getName(), obj, attrs); } public void bind(String name, Object obj, Attributes attrs) throws NamingException { DirContextStringPair res = getTargetContext(name); res.getDirContext().bind(res.getString(), obj, attrs); } public void rebind(Name name, Object obj, Attributes attrs) throws NamingException { DirContextNamePair res = getTargetContext(name); res.getDirContext().rebind(res.getName(), obj, attrs); } public void rebind(String name, Object obj, Attributes attrs) throws NamingException { DirContextStringPair res = getTargetContext(name); res.getDirContext().rebind(res.getString(), obj, attrs); } public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().createSubcontext(res.getName(), attrs); } public DirContext createSubcontext(String name, Attributes attrs) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().createSubcontext(res.getString(), attrs); } public NamingEnumeration<SearchResult> search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().search(res.getName(), matchingAttributes, attributesToReturn); } public NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().search(res.getString(), matchingAttributes, attributesToReturn); } public NamingEnumeration<SearchResult> search(Name name, Attributes matchingAttributes) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().search(res.getName(), matchingAttributes); } public NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().search(res.getString(), matchingAttributes); } public NamingEnumeration<SearchResult> search(Name name, String filter, SearchControls cons) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().search(res.getName(), filter, cons); } public NamingEnumeration<SearchResult> search(String name, String filter, SearchControls cons) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().search(res.getString(), filter, cons); } public NamingEnumeration<SearchResult> search(Name name, String filterExpr, Object[] args, SearchControls cons) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().search(res.getName(), filterExpr, args, cons); } public NamingEnumeration<SearchResult> search(String name, String filterExpr, Object[] args, SearchControls cons) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().search(res.getString(), filterExpr, args, cons); } public DirContext getSchema(String name) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().getSchema(res.getString()); } public DirContext getSchema(Name name) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().getSchema(res.getName()); } public DirContext getSchemaClassDefinition(String name) throws NamingException { DirContextStringPair res = getTargetContext(name); return res.getDirContext().getSchemaClassDefinition(res.getString()); } public DirContext getSchemaClassDefinition(Name name) throws NamingException { DirContextNamePair res = getTargetContext(name); return res.getDirContext().getSchemaClassDefinition(res.getName()); } } class DirContextNamePair { DirContext ctx; Name name; DirContextNamePair(DirContext ctx, Name name) { this.ctx = ctx; this.name = name; } DirContext getDirContext() { return ctx; } Name getName() { return name; } } class DirContextStringPair { DirContext ctx; String str; DirContextStringPair(DirContext ctx, String str) { this.ctx = ctx; this.str = str; } DirContext getDirContext() { return ctx; } String getString() { return str; } }
⏎ javax/naming/spi/ContinuationDirContext.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, 61451👍, 0💬
Popular Posts:
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...