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.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/net/www/protocol/http/AuthCacheImpl.java
/* * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.net.www.protocol.http; import java.util.LinkedList; import java.util.ListIterator; import java.util.HashMap; /** * @author Michael McMahon */ public class AuthCacheImpl implements AuthCache { HashMap<String,LinkedList<AuthCacheValue>> hashtable; public AuthCacheImpl () { hashtable = new HashMap<String,LinkedList<AuthCacheValue>>(); } public void setMap (HashMap<String,LinkedList<AuthCacheValue>> map) { hashtable = map; } // put a value in map according to primary key + secondary key which // is the path field of AuthenticationInfo public synchronized void put (String pkey, AuthCacheValue value) { LinkedList<AuthCacheValue> list = hashtable.get (pkey); String skey = value.getPath(); if (list == null) { list = new LinkedList<AuthCacheValue>(); hashtable.put(pkey, list); } // Check if the path already exists or a super-set of it exists ListIterator<AuthCacheValue> iter = list.listIterator(); while (iter.hasNext()) { AuthenticationInfo inf = (AuthenticationInfo)iter.next(); if (inf.path == null || inf.path.startsWith (skey)) { iter.remove (); } } iter.add(value); } // get a value from map checking both primary // and secondary (urlpath) key public synchronized AuthCacheValue get (String pkey, String skey) { AuthenticationInfo result = null; LinkedList<AuthCacheValue> list = hashtable.get (pkey); if (list == null || list.size() == 0) { return null; } if (skey == null) { // list should contain only one element return (AuthenticationInfo)list.get (0); } ListIterator<AuthCacheValue> iter = list.listIterator(); while (iter.hasNext()) { AuthenticationInfo inf = (AuthenticationInfo)iter.next(); if (skey.startsWith (inf.path)) { return inf; } } return null; } public synchronized void remove (String pkey, AuthCacheValue entry) { LinkedList<AuthCacheValue> list = hashtable.get (pkey); if (list == null) { return; } if (entry == null) { list.clear(); return; } ListIterator<AuthCacheValue> iter = list.listIterator (); while (iter.hasNext()) { AuthenticationInfo inf = (AuthenticationInfo)iter.next(); if (entry.equals(inf)) { iter.remove (); } } } }
⏎ sun/net/www/protocol/http/AuthCacheImpl.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 207086👍, 0💬
Popular Posts:
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.6.1-src.zip...
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
JDK 11 jrt-fs.jar is the JAR file for JDK 11 JRT-FS (Java RunTime - File System) defined in the "jdk...
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...