Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for origFn (0.04 sec)

  1. src/test/java/org/codelibs/fess/cors/CorsHandlerFactoryTest.java

            // Execute
            corsHandlerFactory.add(origin1, handler1);
            corsHandlerFactory.add(origin2, handler2);
            corsHandlerFactory.add(origin3, handler3);
    
            // Verify
            assertEquals(handler1, corsHandlerFactory.get(origin1));
            assertEquals(handler2, corsHandlerFactory.get(origin2));
            assertEquals(handler3, corsHandlerFactory.get(origin3));
        }
    
        public void test_get_wildcardOrigin() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/cors/DefaultCorsHandler.java

         * Headers include allowed origin, methods, headers, max age, and credentials setting.
         *
         * @param origin the origin of the request
         * @param request the servlet request
         * @param response the servlet response to add CORS headers to
         */
        @Override
        public void process(final String origin, final ServletRequest request, final ServletResponse response) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

        }
    
        // Test with different origin formats
        public void test_doFilter_differentOrigins() throws Exception {
            String[] origins = { "http://localhost:8080", "https://example.com", "http://subdomain.example.com", "https://example.com:3000" };
    
            for (String origin : origins) {
                setUp(); // Reset for each test
                mockRequest.setHeader("Origin", origin);
                mockRequest.setMethod("GET");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/cors/CorsHandlerFactory.java

            if (logger.isDebugEnabled()) {
                logger.debug("Loaded {}", origin);
            }
            handerMap.put(origin, handler);
        }
    
        /**
         * Gets the CORS handler for the specified origin.
         * If no specific handler is found, returns the wildcard handler.
         *
         * @param origin the origin to look up
         * @return the CORS handler for the origin, or null if none found
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/cors/CorsHandlerTest.java

                corsHandler.process(origin, request, response);
    
                assertTrue("process should be called for origin: " + origin, processCalled);
                assertEquals(origin, processOrigin);
    
                List<String> originHeaders = responseHeaders.get("Access-Control-Allow-Origin");
                assertNotNull("Headers should be set for origin: " + origin, originHeaders);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/cors/CorsHandler.java

        /**
         * Processes the CORS request by setting appropriate headers.
         *
         * @param origin the origin of the request
         * @param request the servlet request
         * @param response the servlet response
         */
        public abstract void process(String origin, ServletRequest request, ServletResponse response);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/HttpHeaders.java

        public static final String SAME_ORIGIN = "same-origin";
        public static final String ORIGIN = "origin";
        public static final String STRICT_ORIGIN = "strict-origin";
        public static final String ORIGIN_WHEN_CROSS_ORIGIN = "origin-when-cross-origin";
        public static final String STRICT_ORIGIN_WHEN_CROSS_ORIGIN = "strict-origin-when-cross-origin";
        public static final String UNSAFE_URL = "unsafe-url";
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 27 20:37:16 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/filter/CorsFilter.java

            final String origin = httpRequest.getHeader("Origin");
            if (StringUtil.isNotBlank(origin)) {
                if (logger.isDebugEnabled()) {
                    logger.debug("HTTP Request: {}", httpRequest.getMethod());
                }
                final CorsHandlerFactory factory = ComponentUtil.getCorsHandlerFactory();
                final CorsHandler handler = factory.get(origin);
                if (handler != null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/EndpointPair.java

       * returns an arbitrary (but consistent) endpoint of the origin edge.
       */
      public final N nodeU() {
        return nodeU;
      }
    
      /**
       * Returns the node {@link #adjacentNode(Object) adjacent} to {@link #nodeU()} along the origin
       * edge. If this {@link EndpointPair} {@link #isOrdered()}, this is equal to {@link #target()}.
       */
      public final N nodeV() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/EndpointPair.java

       * returns an arbitrary (but consistent) endpoint of the origin edge.
       */
      public final N nodeU() {
        return nodeU;
      }
    
      /**
       * Returns the node {@link #adjacentNode(Object) adjacent} to {@link #nodeU()} along the origin
       * edge. If this {@link EndpointPair} {@link #isOrdered()}, this is equal to {@link #target()}.
       */
      public final N nodeV() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top