Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for HostAndPort (0.22 sec)

  1. android/guava/src/com/google/common/net/HostAndPort.java

       */
      @CanIgnoreReturnValue
      public HostAndPort requireBracketsForIPv6() {
        checkArgument(!hasBracketlessColons, "Possible bracketless IPv6 literal: %s", host);
        return this;
      }
    
      @Override
      public boolean equals(@CheckForNull Object other) {
        if (this == other) {
          return true;
        }
        if (other instanceof HostAndPort) {
          HostAndPort that = (HostAndPort) other;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertEquals(123, HostAndPort.fromString("host").getPortOrDefault(123));
      }
    
      public void testHashCodeAndEquals() {
        HostAndPort hpNoPort1 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort2 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort3 = HostAndPort.fromString("[foo::123]");
        HostAndPort hpNoPort4 = HostAndPort.fromHost("[foo::123]");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertEquals(123, HostAndPort.fromString("host").getPortOrDefault(123));
      }
    
      public void testHashCodeAndEquals() {
        HostAndPort hpNoPort1 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort2 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort3 = HostAndPort.fromString("[foo::123]");
        HostAndPort hpNoPort4 = HostAndPort.fromHost("[foo::123]");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 10K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMailDeliveryDepartmentCreator.java

            final SMailPostalMotorbike motorbike = new SMailPostalMotorbike();
            final String hostAndPort = fessConfig.getMailSmtpServerMainHostAndPort();
            final List<String> hostPortList = DfStringUtil.splitListTrimmed(hostAndPort, ":");
            motorbike.registerConnectionInfo(hostPortList.get(0), Integer.parseInt(hostPortList.get(1)));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

          if (!path.startsWith("/")) {
            path = "/"
          }
          this.path = path
    
          val scheme = if (socket is SSLSocket) "https" else "http"
          val localPort = socket.localPort
          val hostAndPort =
            headers[":authority"]
              ?: headers["Host"]
              ?: when (val inetAddress = socket.localAddress) {
                is Inet6Address -> "[${inetAddress.hostAddress}]:$localPort"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.8K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/net/HostSpecifier.java

       */
      public static HostSpecifier fromValid(String specifier) {
        // Verify that no port was specified, and strip optional brackets from
        // IPv6 literals.
        HostAndPort parsedHost = HostAndPort.fromString(specifier);
        Preconditions.checkArgument(!parsedHost.hasPort());
        String host = parsedHost.getHost();
    
        // Try to interpret the specifier as an IP address. Note we build
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 05 09:18:40 GMT 2023
    - 6K bytes
    - Viewed (0)
Back to top