Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 618 for switches (0.06 sec)

  1. mockwebserver/README.md

    ### Java
    ```java
    final Dispatcher dispatcher = new Dispatcher() {
    
        @Override
        public MockResponse dispatch (RecordedRequest request) throws InterruptedException {
    
            switch (request.getUrl().encodedPath()) {
              case "/v1/login/auth/":
                  return new MockResponse.Builder()
                      .code(200)
                      .build();
              case "/v1/check/version/":
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:40:52 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. cmd/storage-rest-client.go

    			return true
    		}
    		if errors.Is(nerr.Err, rest.ErrClientClosed) {
    			return true
    		}
    	}
    	if errors.Is(err, grid.ErrDisconnected) {
    		return true
    	}
    	// More corner cases suitable for storage REST API
    	switch {
    	// A peer node can be in shut down phase and proactively
    	// return 503 server closed error, consider it as an offline node
    	case strings.Contains(err.Error(), http.ErrServerClosed.Error()):
    		return true
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 08 02:38:41 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  3. cmd/object-api-errors.go

    func toObjectErr(oerr error, params ...string) error {
    	if oerr == nil {
    		return nil
    	}
    
    	// Unwarp the error first
    	err := unwrapAll(oerr)
    
    	if err == context.Canceled {
    		return context.Canceled
    	}
    
    	switch err.Error() {
    	case errVolumeNotFound.Error():
    		apiErr := BucketNotFound{}
    		if len(params) >= 1 {
    			apiErr.Bucket = params[0]
    		}
    		return apiErr
    	case errVolumeNotEmpty.Error():
    		apiErr := BucketNotEmpty{}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. cmd/storage-rest-server.go

    }
    
    func (s *storageRESTServer) getStorage() StorageAPI {
    	return getStorageViaEndpoint(s.endpoint)
    }
    
    func (s *storageRESTServer) writeErrorResponse(w http.ResponseWriter, err error) {
    	err = unwrapAll(err)
    	switch err {
    	case errDiskStale:
    		w.WriteHeader(http.StatusPreconditionFailed)
    	case errFileNotFound, errFileVersionNotFound:
    		w.WriteHeader(http.StatusNotFound)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 45.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/boostdoc/AdminBoostdocAction.java

        private static OptionalEntity<BoostDocumentRule> getEntity(final CreateForm form, final String username, final long currentTime) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new BoostDocumentRule()).map(entity -> {
                    entity.setCreatedBy(username);
                    entity.setCreatedTime(currentTime);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java

         * @return optional entity containing the role data, or empty if creation fails
         */
        private static OptionalEntity<Role> getEntity(final CreateForm form) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new Role()).map(entity -> {
                    entity.setId(Base64.getUrlEncoder().encodeToString(form.name.getBytes(Constants.CHARSET_UTF_8)));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            DirectoryCacheEntry entry = directoryCache.get(directoryPath);
            if (entry == null)
                return;
    
            switch (changeType) {
            case FILE_ADDED:
                // Invalidate cache - we need to fetch new file info
                entry.invalidate();
                break;
    
            case FILE_REMOVED:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigImplTest.java

                    if (systemValue != null) {
                        return systemValue;
                    }
    
                    // Return test values for specific properties
                    switch (propertyKey) {
                    case "domain.title":
                        return "Test Fess";
                    case "search_engine.type":
                        return "opensearch";
                    case "test.property":
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/PercentEscaper.java

       * @throws IllegalArgumentException if any of the parameters were invalid
       */
      public PercentEscaper(String safeChars, boolean plusForSpace) {
        // TODO(dbeaumont): Switch to static factory methods for creation now that class is final.
        // TODO(dbeaumont): Support escapers where alphanumeric chars are not safe.
        checkNotNull(safeChars); // eager for GWT.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. apache-maven/src/assembly/maven/bin/mvn

    MAVEN_OPTS="$MAVEN_OPTS `concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config"`"
    LAUNCHER_JAR=`echo "$MAVEN_HOME"/boot/plexus-classworlds-*.jar`
    LAUNCHER_CLASS=org.codehaus.plexus.classworlds.launcher.Launcher
    
    # For Cygwin and MinGW, switch paths to Windows format before running java(1) command
    if $cygwin || $mingw ; then
      [ -n "$JAVA_HOME" ] &&
        JAVA_HOME=`cygpath --windows "$JAVA_HOME"`
      LAUNCHER_JAR=`cygpath --windows "$LAUNCHER_JAR"`
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jul 24 09:49:07 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top