Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ResourceHandler (0.15 sec)

  1. src/main/java/org/codelibs/core/io/ResourceHandler.java

     */
    package org.codelibs.core.io;
    
    import java.io.InputStream;
    
    /**
     * リソースを処理するハンドラのインターフェースです。
     *
     * @author taedium
     */
    public interface ResourceHandler {
    
        /**
         * リソースを処理します。
         *
         * @param path
         *            パス
         * @param is
         *            リソースを読み込むための{@link InputStream}
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

            final int pos = path.lastIndexOf("/");
            final String baseDirectory = path.substring(0, pos);
            ResourceTraversalUtil.forEach(rootDir, baseDirectory, (ResourceHandler) (path1, is) -> {
                try {
                    if (count < 10) {
                        System.out.println(path1);
                    }
                    assertThat(path1, is(notNullValue()));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

    import java.util.zip.ZipInputStream;
    
    import org.codelibs.core.jar.JarFileUtil;
    import org.codelibs.core.zip.ZipInputStreamUtil;
    
    /**
     * リソースをトラバースするためのクラスです。
     *
     * @author taedium
     * @see ResourceHandler
     * @see TraversalUtil
     */
    public abstract class ResourceTraversalUtil {
    
        /**
         * ファイルシステムに含まれるリソースをトラバースします。
         *
         * @param rootDir
         *            ルートディレクトリ。{@literal null}であってはいけません
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

        }
    
        public CrawlerWebServer(final int port, final File docRoot) {
            this.port = port;
            this.docRoot = docRoot;
    
            server = new Server(port);
    
            final ResourceHandler resource_handler = new ResourceHandler();
            resource_handler.setWelcomeFiles(new String[] { "index.html" });
            resource_handler.setResourceBase(docRoot.getAbsolutePath());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

            tempDocRoot = true;
        }
    
        public CrawlerWebServer(final int port, final File docRoot) {
            this.docRoot = docRoot;
    
            server = new Server(port);
    
            final ResourceHandler resource_handler = new ResourceHandler();
            resource_handler.setWelcomeFiles(new String[] { "index.html" });
            resource_handler.setResourceBase(docRoot.getAbsolutePath());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

        }
    
        public CrawlerWebServer(final int port, final File docRoot) {
            this.port = port;
            this.docRoot = docRoot;
    
            server = new Server(port);
    
            final ResourceHandler resource_handler = new ResourceHandler();
            resource_handler.setWelcomeFiles(new String[] { "index.html" });
            resource_handler.setResourceBase(docRoot.getAbsolutePath());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/TraverserUtilTest.java

            assertThat(traverser, is(notNullValue()));
            assertThat(traverser instanceof FileSystemTraverser, is(true));
    
            final List<String> list = new ArrayList<String>();
            traverser.forEach((ResourceHandler) (path, is) -> list.add(path));
            assertThat(list.size(), is(1));
            assertThat(list.get(0).endsWith("DummyTest.class"), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/Traverser.java

        /**
         * このインスタンスが扱うリソースを探して
         * {@link ResourceHandler#processResource(String, java.io.InputStream) ハンドラ}
         * をコールバックします。
         * <p>
         * インスタンス構築時にルートディレクトリが指定されている場合は、 ルートディレクトリ以下のリソースのみが対象となります。
         * </p>
         *
         * @param handler
         *            リソースを処理するハンドラ
         */
        void forEach(ResourceHandler handler);
    
        /**
         * リソースの後処理を行います。
         */
        void close();
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. istioctl/pkg/admin/istiodconfig_test.go

    				tt.args.stackTraceLevel, tt.args.outputFormat); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("chooseClientFlag() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func resourceHandler(writer http.ResponseWriter, request *http.Request) {
    	const getResponse = `{"name":"resource","description":"Core resource model scope","output_level":"info","stack_trace_level":"none","log_callers":false}`
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/io/TraversalUtil.java

                        handler.processClass(packageName, shortClassName);
                    }
                });
            }
    
            @Override
            public void forEach(final ResourceHandler handler) {
                ResourceTraversalUtil.forEach(jarFile, (ResourceHandler) (path, is) -> {
                    if (rootDir == null || path.startsWith(rootDir)) {
                        handler.processResource(path, is);
                    }
                });
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top