Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for getAddress (0.06 seconds)

  1. src/main/java/org/codelibs/core/net/UuidUtil.java

            StringUtil.appendHex(buf, lowTime);
            StringUtil.appendHex(buf, RANDOM.nextInt());
            return buf.toString();
        }
    
        private static byte[] getAddress() {
            try {
                return InetAddress.getLocalHost().getAddress();
            } catch (final UnknownHostException ignore) {
                return DEFAULT_ADDRESS;
            }
        }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/witness/WitnessNotificationTest.java

            assertEquals(ipv4, newIPv4.getAddress());
            assertTrue(newIPv4.isIPv4());
            assertFalse(newIPv4.isIPv6());
            assertEquals(WitnessNotification.WitnessIPAddress.IPV4, newIPv4.getFlags());
    
            // Check IPv6 address
            WitnessNotification.WitnessIPAddress newIPv6 = newAddresses.get(1);
            assertEquals(ipv6, newIPv6.getAddress());
            assertFalse(newIPv6.isIPv4());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 5K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaChannelInfo.java

         */
        public int getRemoteKey() {
            return transform.getToken();
        }
    
        /**
         * Get remote memory address
         *
         * @return remote memory address (offset)
         */
        public long getAddress() {
            return transform.getOffset();
        }
    
        /**
         * Get length of memory region
         *
         * @return length in bytes
         */
        public int getLength() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  4. src/test/java/jcifs/SmbResourceLocatorTest.java

            URL returned = loc.getURL();
            if (returned != null) {
                assertEquals(url, returned.toString());
            }
    
            // Test that getAddress returns null for our dummy implementation
            assertNull(loc.getAddress());
        }
    
        @Test
        @DisplayName("Test DFS referral data")
        void testDfsReferralData() throws Exception {
            String url = "smb://server/share/path/";
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/witness/MockWitnessService.java

        }
    
        /**
         * Get the address the service is listening on
         *
         * @return the service address
         * @throws IOException if address cannot be determined
         */
        public InetAddress getAddress() throws IOException {
            if (serverSocket == null) {
                throw new IOException("Service not started");
            }
            return InetAddress.getLocalHost();
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/UniAddressTest.java

        }
    
        @Test
        void getAddressReturnsOriginalObject() {
            InetAddress dummy = mock(InetAddress.class);
            UniAddress ua = new UniAddress(dummy);
            assertSame(dummy, ua.getAddress(), "getAddress should return the wrapped address");
        }
    
        @Test
        void getHostNameDelegatesToWrappedInetAddress() {
            InetAddress dummy = mock(InetAddress.class);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/witness/WitnessNotification.java

            public WitnessIPAddress(InetAddress address) {
                this.address = address;
                this.flags = address.getAddress().length == 4 ? IPV4 : IPV6;
            }
    
            /**
             * Gets the IP address.
             *
             * @return the IP address
             */
            public InetAddress getAddress() {
                return address;
            }
    
            /**
             * Gets the address flags.
             *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java

         */
        public int getRemoteKey() {
            return remoteKey;
        }
    
        /**
         * Get memory address
         *
         * @return memory address
         */
        public long getAddress() {
            return address;
        }
    
        /**
         * Get size of memory region
         *
         * @return size in bytes
         */
        public int getSize() {
            return buffer.limit();
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  9. src/main/java/jcifs/netbios/UniAddress.java

            }
            return null;
        }
    
        /**
         * Return the underlying <code>NbtAddress</code> or {@code InetAddress}.
         *
         * @return wrapped address
         */
        public Object getAddress() {
            return this.addr;
        }
    
        /**
         * Return the hostname of this address such as "MYCOMPUTER".
         *
         * @return the hostname associated with the address
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

            ASN1EncodableVector addressVector = new ASN1EncodableVector();
            addressVector.add(new ASN1Integer(KerberosConstants.AF_INTERNET));
            addressVector.add(new DEROctetString(InetAddress.getByName("127.0.0.1").getAddress()));
            addressesVector.add(new DERSequence(addressVector));
            vector.add(new DERTaggedObject(9, new DERSequence(addressesVector)));
    
            ASN1EncodableVector authDataVector = new ASN1EncodableVector();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.7K bytes
    - Click Count (0)
Back to Top