Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for encodeUrl (0.06 sec)

  1. src/test/java/org/codelibs/fess/crawler/transformer/FessFileTransformerTest.java

            url = "file:/" + encodeUrl("ホーム") + "/user";
            exp = "localhost";
            assertEquals(exp, transformer.getHostOnFile(url));
    
            url = "file:/c:/" + encodeUrl("ホーム") + "/user";
            exp = "localhost";
            assertEquals(exp, transformer.getHostOnFile(url));
    
            url = "file:////" + encodeUrl("サーバー") + "/home/user";
            exp = "サーバー";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 04 06:20:49 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/go/GoAction.java

                }
            } else {
                hash = StringUtil.EMPTY;
            }
    
            if (!isFileSystemPath(targetUrl)) {
                return HtmlResponse.fromRedirectPathAsIs(DocumentUtil.encodeUrl(targetUrl + hash));
            }
            if (!fessConfig.isSearchFileProxyEnabled()) {
                return HtmlResponse.fromRedirectPathAsIs(targetUrl + hash);
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformerTest.java

            assertEquals(result, htmlTransformer.encodeUrl(url, "UTF-8"));
    
            url = ".-*_:/+%=&?#[]@~!$'(),;";
            result = ".-*_:/+%=&?#[]@~!$'(),;";
            assertEquals(result, htmlTransformer.encodeUrl(url, "UTF-8"));
        }
    
        public void test_isSupportedCharset_valid() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/DocumentUtil.java

                    return (T) value;
                }
                return (T) Boolean.valueOf(value.toString());
            }
            return null;
        }
    
        public static String encodeUrl(final String url) {
            final String enc = LaRequestUtil.getOptionalRequest().filter(req -> req.getCharacterEncoding() != null)
                    .map(HttpServletRequest::getCharacterEncoding).orElse(Constants.UTF_8);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

            if (FUNCTION_ENCODEURL_MATCHER.equals(replacement)) {
                return (u, m) -> DocumentUtil.encodeUrl(u);
            }
            if (!replacement.startsWith(GROOVY_MATCHER)) {
                return (u, m) -> m.replaceAll(replacement);
            }
            final String template = replacement.substring(GROOVY_MATCHER.length());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                final URL childUrl =
                        childUrlValue.startsWith("?") ? new URL(url.toExternalForm() + childUrlValue) : new URL(url, childUrlValue);
                final String u = encodeUrl(normalizeUrl(childUrl.toExternalForm()), encoding);
                if (logger.isDebugEnabled()) {
                    logger.debug("{} -> {}", attrValue, u);
                }
                if (StringUtil.isNotBlank(u)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    }
                } catch (final ExecutionException e) {
                    logger.debug("Failed to access {}", input, e);
                }
            }
            return LaResponseUtil.getResponse().encodeURL(sb.toString());
        }
    
        public static String sdh(final String input) {
            if (StringUtil.isBlank(input)) {
                return input;
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

                u = encodeUrl(normalizeUrl(childUrl.toExternalForm()), encoding);
            } catch (final MalformedURLException e) {
                final int pos = urlValue.indexOf(':');
                if (pos > 0 && pos < 10) {
                    u = encodeUrl(normalizeUrl(urlValue), encoding);
                }
            }
    
            if (u == null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  9. fastapi/encoders.py

        if isinstance(obj, BaseModel):
            # TODO: remove when deprecating Pydantic v1
            encoders: Dict[Any, Any] = {}
            if not PYDANTIC_V2:
                encoders = getattr(obj.__config__, "json_encoders", {})  # type: ignore[attr-defined]
                if custom_encoder:
                    encoders.update(custom_encoder)
            obj_dict = _model_dump(
                obj,
                mode="json",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. docs/uk/docs/tutorial/encoder.md

    Вона приймає об'єкт, такий як Pydantic model, і повертає його версію, сумісну з JSON:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="4  21"
    {!> ../../docs_src/encoder/tutorial001_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="5  22"
    {!> ../../docs_src/encoder/tutorial001.py!}
    ```
    
    ////
    
    У цьому прикладі вона конвертує Pydantic model у `dict`, а `datetime` у `str`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top