Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for endsWith (0.21 sec)

  1. src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java

            final String path = imageFile.getAbsolutePath();
            if (path.endsWith(".png")) {
                return "image/png";
            }
            if (path.endsWith(".gif")) {
                return "image/gif";
            }
            if (path.endsWith(".jpg") || path.endsWith(".jpeg")) {
                return "image/jpeg";
            }
            return "application/octet-stream";
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

            if (fileName.startsWith("system") && fileName.endsWith(".properties")) {
                fileType = 1;
            } else if (fileName.startsWith("gsa") && fileName.endsWith(".xml")) {
                fileType = 2;
            } else if (fileName.endsWith(".bulk")) {
                fileType = 3;
            } else if (fileName.startsWith("fess") && fileName.endsWith(".json")) {
                fileType = 4;
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                final String lowerPath = path.toLowerCase(Locale.ROOT);
                if (lowerPath.endsWith(".html")) {
                    response.setContentType("text/html;charset=utf-8");
                } else if (lowerPath.endsWith(".txt")) {
                    response.setContentType("text/plain");
                } else if (lowerPath.endsWith(".css")) {
                    response.setContentType("text/css");
                }
            }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

        var pattern = pattern
        if (hostname.isNullOrEmpty() ||
          hostname.startsWith(".") ||
          hostname.endsWith("..")
        ) {
          // Invalid domain name.
          return false
        }
        if (pattern.isNullOrEmpty() ||
          pattern.startsWith(".") ||
          pattern.endsWith("..")
        ) {
          // Invalid pattern.
          return false
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java

    import org.junit.jupiter.api.Test;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.hamcrest.MatcherAssert.assertThat;
    import static org.hamcrest.Matchers.endsWith;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    @Deprecated
    class ProjectDependenciesResolverTest extends AbstractCoreMavenComponentTestCase {
        @Inject
        private ProjectDependenciesResolver resolver;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

            }
    
            if (v.startsWith("^")) {
                buf.append(v);
                if (!v.endsWith("$")) {
                    buf.append(".*");
                }
            } else if (v.endsWith("$")) {
                buf.append(".*");
                buf.append(v);
            } else if (v.endsWith("/\\E")) {
                buf.append(".*");
                buf.append(v);
                buf.append(".*");
            } else {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

                }
            }
            return logFileItems;
        }
    
        public static boolean isLogFilename(final String name) {
            return name.endsWith(".log") || name.endsWith(".log.gz");
        }
    
        private HtmlResponse asIndexHtml() {
            return asHtml(path_AdminLog_AdminLogJsp).renderWith(data -> {
                RenderDataUtil.register(data, "logFileItems", getLogFileItems());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/FessAppService.java

            final StringBuilder sb = new StringBuilder();
            if (!query.startsWith("*")) {
                sb.append("*");
            }
            sb.append(query);
            if (!query.endsWith("*")) {
                sb.append("*");
            }
            return sb.toString();
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

            assertArgumentNotNull("jarFile", jarFile);
            assertArgumentNotNull("handler", handler);
    
            if (jarFile.getName().toLowerCase().endsWith(WAR_FILE_EXTENSION)) {
                forEach(jarFile, WEB_INF_CLASSES_PATH, handler);
            } else {
                forEach(jarFile, "", handler);
            }
        }
    
        /**
         * Jarファイルに含まれるクラスをトラバースします。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java

                                out.write(in);
                            }
                        }
                    });
                }
                if (!id.endsWith(NDJSON_EXTENTION)) {
                    final String index;
                    final String filename;
                    if (id.endsWith(".bulk")) {
                        index = id.substring(0, id.length() - 5);
                        filename = id;
                    } else {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.1K bytes
    - Viewed (0)
Back to top