Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for hasPort (2.86 sec)

  1. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

          assertTrue(badDefaultPort);
        }
    
        // Check the pre-withDefaultPort() instance.
        if (expectHasExplicitPort) {
          assertTrue(hp.hasPort());
          assertEquals(expectPort, hp.getPort());
        } else {
          assertFalse(hp.hasPort());
          try {
            hp.getPort();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/HostAndPort.java

       *     to prevent this from occurring.
       */
      public int getPort() {
        checkState(hasPort());
        return port;
      }
    
      /** Returns the current port number, with a default if no port is defined. */
      public int getPortOrDefault(int defaultPort) {
        return hasPort() ? port : defaultPort;
      }
    
      /**
       * Build a HostAndPort instance from separate host and port values.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 22:02:22 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. internal/rest/client.go

    // return true if the string includes a port.
    func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") }
    
    // removeEmptyPort strips the empty port in ":port" to ""
    // as mandated by RFC 3986 Section 6.2.3.
    func removeEmptyPort(host string) string {
    	if hasPort(host) {
    		return strings.TrimSuffix(host, ":")
    	}
    	return host
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java

        byte subCommand;
        boolean hasMore = true;
        boolean isPrimary = true;
        byte[] txn_buf;
    
        /* for doNetEnum and doFindFirstNext */
        int status;
        int numEntries;
        FileEntry[] results;
    
        SmbComTransactionResponse() {
            txn_buf = null;
        }
    
        void reset() {
            super.reset();
            bufDataStart = 0;
            isPrimary = hasMore = true; 
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

        public void reset () {
            super.reset();
            this.bufDataStart = 0;
            this.isPrimary = this.hasMore = true;
            this.parametersDone = this.dataDone = false;
        }
    
    
        @Override
        public boolean hasMoreElements () {
            return this.errorCode == 0 && this.hasMore;
        }
    
    
        @Override
        public SmbComTransactionResponse nextElement () {
            if ( this.isPrimary ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 9.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

    
        @Override
        public void reset () {
            super.reset();
            this.isPrimary = this.hasMore = true;
        }
    
    
        protected void reset ( int key, String lastName ) {
            reset();
        }
    
    
        @Override
        public boolean hasMoreElements () {
            return this.hasMore;
        }
    
    
        @Override
        public SmbComTransaction nextElement () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 13:43:42 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

            secondaryParameterOffset = SECONDARY_PARAMETER_OFFSET;
        }
    
        void reset() {
            super.reset();
            isPrimary = hasMore = true; 
        }
        void reset( int key, String lastName ) {
            reset();
        }
        public boolean hasMoreElements() {
            return hasMore;
        }
        public Object nextElement() {
            if( isPrimary ) {
                isPrimary = false;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.5K bytes
    - Viewed (0)
  8. cmd/callhome.go

    				DeploymentID: globalDeploymentID(),
    			},
    		},
    	}
    
    	go fetchHealthInfo(healthCtx, objectAPI, &query, healthInfoCh, healthInfo)
    
    	for {
    		select {
    		case hi, hasMore := <-healthInfoCh:
    			if !hasMore {
    				auditOptions := AuditLogOptions{Event: "callhome:diagnostics"}
    				// Received all data. Send to SUBNET and return
    				err := sendHealthInfo(ctx, healthInfo)
    				if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 17 16:53:34 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/net/MediaType.java

          this.input = input;
        }
    
        @CanIgnoreReturnValue
        String consumeTokenIfPresent(CharMatcher matcher) {
          checkState(hasMore());
          int startPosition = position;
          position = matcher.negate().indexIn(input, startPosition);
          return hasMore() ? input.substring(startPosition, position) : input.substring(startPosition);
        }
    
        String consumeToken(CharMatcher matcher) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/entity/QueryContext.java

        }
    
        public void addSorts(final SortBuilder<?>... sortBuilders) {
            stream(sortBuilders).of(stream -> stream.forEach(sortBuilder -> sortBuilderList.add(sortBuilder)));
        }
    
        public boolean hasSorts() {
            return !sortBuilderList.isEmpty();
        }
    
        public List<SortBuilder<?>> sortBuilders() {
            return sortBuilderList;
        }
    
        public QueryBuilder getQueryBuilder() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top