Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for Cookie (0.08 sec)

  1. docs/en/docs/tutorial/cookie-params.md

    # Cookie Parameters { #cookie-parameters }
    
    You can define Cookie parameters the same way you define `Query` and `Path` parameters.
    
    ## Import `Cookie` { #import-cookie }
    
    First import `Cookie`:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare `Cookie` parameters { #declare-cookie-parameters }
    
    Then declare the cookie parameters using the same structure as with `Path` and `Query`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/cookie-param-models.md

    You can use Pydantic's model configuration to `forbid` any `extra` fields:
    
    {* ../../docs_src/cookie_param_models/tutorial002_an_py39.py hl[10] *}
    
    If a client tries to send some **extra cookies**, they will receive an **error** response.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                final Cookie[] cookies = req.getCookies();
                if (cookies != null) {
                    for (final Cookie cookie : cookies) {
                        if (cookieName.equals(cookie.getName())) {
                            try {
                                final String encoded = cookie.getValue();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 35.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

            final Cookie cookie = new Cookie(cookieName, userCode);
            cookie.setMaxAge(age);
            cookie.setHttpOnly(httpOnly);
            if (StringUtil.isNotBlank(cookieDomain)) {
                cookie.setDomain(cookieDomain);
            }
            if (StringUtil.isNotBlank(cookiePath)) {
                cookie.setPath(cookiePath);
            }
            cookie.setSecure(isSecureCookie());
            LaResponseUtil.getResponse().addCookie(cookie);
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

         * @param request The HTTP request.
         * @param roleSet The set of roles.
         */
        protected void buildByCookieNameMapping(final HttpServletRequest request, final Set<String> roleSet) {
            final Cookie[] cookies = request.getCookies();
            if (cookies != null) {
                for (final Cookie cookie : cookies) {
                    addRoleFromCookieMapping(roleSet, cookie);
                }
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/header-params.md

    You can define Header parameters the same way you define `Query`, `Path` and `Cookie` parameters.
    
    ## Import `Header` { #import-header }
    
    First import `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare `Header` parameters { #declare-header-parameters }
    
    Then declare the header parameters using the same structure as with `Path`, `Query` and `Cookie`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

            Cookie[] cookies = getMockResponse().getCookies();
            boolean found = false;
            for (Cookie cookie : cookies) {
                if ("FESS_SEARCH_PARAM".equals(cookie.getName())) {
                    found = true;
                    assertNotNull(cookie.getValue());
                }
            }
            assertTrue(found);
            getMockRequest().addCookie(cookies[0]);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

            roleQueryHelper.addCookieNameMapping("admin", "administrator");
            roleQueryHelper.addCookieNameMapping("user", "regular_user");
    
            Cookie adminCookie = new Cookie("admin", "true");
            Cookie userCookie = new Cookie("user", "true");
            Cookie otherCookie = new Cookie("other", "value");
            getMockRequest().addCookie(adminCookie);
            getMockRequest().addCookie(userCookie);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.5K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

            // cookie
            if (cookieSpec != null) {
                requestConfigBuilder.setCookieSpec(cookieSpec);
            }
    
            // cookie store
            httpClientBuilder.setDefaultCookieStore(cookieStore);
            if (cookieStore != null) {
                final Cookie[] cookies = getInitParameter(COOKIES_PROPERTY, new Cookie[0], Cookie[].class);
                for (final Cookie cookie : cookies) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 52.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/UserInfoHelperTest.java

                    final Cookie[] cookies = request.getCookies();
                    if (cookies != null) {
                        for (final Cookie cookie : cookies) {
                            if ("fsid".equals(cookie.getName()) && "12345abcde12345ABCDE".equals(cookie.getValue())) {
                                return cookie.getValue();
                            }
                        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top