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 17 java.naming.jmod - Naming Module
JDK 17 java.naming.jmod is the JMOD file for JDK 17 Naming module.
JDK 17 Naming module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.naming.jmod.
JDK 17 Naming module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Naming module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.naming.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/jndi/ldap/LdapRequest.java
/* * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.jndi.ldap; import java.io.IOException; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import javax.naming.CommunicationException; import javax.naming.NamingException; import java.util.concurrent.TimeUnit; final class LdapRequest { private static final BerDecoder EOF = new BerDecoder(new byte[]{}, -1, 0); private static final String CLOSE_MSG = "LDAP connection has been closed"; private static final String TIMEOUT_MSG_FMT = "LDAP response read timed out, timeout used: %d ms."; LdapRequest next; // Set/read in synchronized Connection methods final int msgId; // read-only private final BlockingQueue<BerDecoder> replies; private volatile boolean cancelled; private volatile boolean closed; private volatile boolean completed; private final boolean pauseAfterReceipt; LdapRequest(int msgId, boolean pause, int replyQueueCapacity) { this.msgId = msgId; this.pauseAfterReceipt = pause; if (replyQueueCapacity == -1) { this.replies = new LinkedBlockingQueue<>(); } else { this.replies = new LinkedBlockingQueue<>(8 * replyQueueCapacity / 10); } } void cancel() { cancelled = true; replies.offer(EOF); } synchronized void close() { closed = true; replies.offer(EOF); } private boolean isClosed() { return closed && (replies.size() == 0 || replies.peek() == EOF); } synchronized boolean addReplyBer(BerDecoder ber) { // check the closed boolean value here as we don't want anything // to be added to the queue after close() has been called. if (cancelled || closed) { return false; } // peek at the BER buffer to check if it is a SearchResultDone PDU try { ber.parseSeq(null); ber.parseInt(); completed = (ber.peekByte() == LdapClient.LDAP_REP_RESULT); } catch (IOException e) { // ignore } ber.reset(); // Add a new reply to the queue of unprocessed replies. try { replies.put(ber); } catch (InterruptedException e) { // ignore } return pauseAfterReceipt; } /** * Read reply BER * @param millis timeout, infinite if the value is negative * @return BerDecoder if reply was read successfully * @throws CommunicationException request has been canceled and request does not need to be abandoned * @throws NamingException request has been closed or timed out. Request does need to be abandoned * @throws InterruptedException LDAP operation has been interrupted */ BerDecoder getReplyBer(long millis) throws NamingException, InterruptedException { if (cancelled) { throw new CommunicationException("Request: " + msgId + " cancelled"); } if (isClosed()) { throw new NamingException(CLOSE_MSG); } BerDecoder result = millis > 0 ? replies.poll(millis, TimeUnit.MILLISECONDS) : replies.take(); if (cancelled) { throw new CommunicationException("Request: " + msgId + " cancelled"); } // poll from 'replies' blocking queue ended-up with timeout if (result == null) { throw new NamingException(String.format(TIMEOUT_MSG_FMT, millis)); } // Unexpected EOF can be caused by connection closure or cancellation if (result == EOF) { throw new NamingException(CLOSE_MSG); } return result; } boolean hasSearchCompleted() { return completed; } }
⏎ com/sun/jndi/ldap/LdapRequest.java
Or download all of them as a single archive file:
File name: java.naming-17.0.5-src.zip File size: 490626 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.net.http.jmod - Net HTTP Module
2023-09-23, 6563👍, 0💬
Popular Posts:
JDK 17 jdk.localedata.jmod is the JMOD file for JDK 17 Localedata module. JDK 17 Locale Data module ...
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
JDK 8 jconsole.jar is the JAR file for JDK 8 JConsole, which is a graphical monitoring tool to monit...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...