Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for setAttribute (0.11 sec)

  1. src/main/java/org/codelibs/fess/util/WebApiUtil.java

        }
    
        public static void setError(final int statusCode, final Exception e) {
            LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(WEB_API_EXCEPTION, new WebApiException(statusCode, e)));
        }
    
        public static void validate() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

            String userCode = sessionManager.getAttribute(USER_BEAN, TypicalUserBean.class)
                    .filter(u -> !Constants.EMPTY_USER_ID.equals(u.getUserId())).map(u -> u.getUserId().toString()).orElse(StringUtil.EMPTY);
            if (StringUtil.isBlank(userCode)) {
                return null;
            }
    
            userCode = createUserCodeFromUserId(userCode);
            request.setAttribute(Constants.USER_CODE, userCode);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SearchHelper.java

            final SearchRequestParams params = rewrite(searchRequestParams);
    
            LaRequestUtil.getOptionalRequest().ifPresent(request -> {
                request.setAttribute(Constants.REQUEST_LANGUAGES, params.getLanguages());
                request.setAttribute(Constants.REQUEST_QUERIES, params.getQuery());
            });
    
            String query = ComponentUtil.getQueryStringBuilder().params(params).sortField(params.getSort()).build();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/UserAgentHelper.java

                        }
                    }
                    if (uaType == null) {
                        uaType = UserAgentType.OTHER;
                    }
                    request.setAttribute(USER_AGENT_TYPE, uaType);
                }
                return uaType;
            }).orElse(UserAgentType.OTHER);
        }
    
        public enum UserAgentType {
            IE, FIREFOX, CHROME, SAFARI, OPERA, OTHER;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java

            final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            if (!external) {
                try {
                    factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
                    factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "");
                } catch (final Exception e) {
                    if (logger.isDebugEnabled()) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java

                    formBuf.append(StringEscapeUtils.escapeHtml4(entry.getKey()));
                    formBuf.append("\"/>");
                }
                request.setAttribute(queryKey, queryBuf.toString());
                request.setAttribute(formKey, formBuf.toString());
            }
        }
    
        protected HtmlResponse redirectToLogin() {
            return systemHelper.getRedirectResponseToLogin(redirect(SsoAction.class));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

        }
    
        public String getVirtualHostKey() {
            return LaRequestUtil.getOptionalRequest().map(req -> (String) req.getAttribute(FessConfig.VIRTUAL_HOST_VALUE)).orElseGet(() -> {
                final String value = processVirtualHost(s -> s, StringUtil.EMPTY);
                LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(FessConfig.VIRTUAL_HOST_VALUE, value));
                return value;
            });
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/entity/QueryContext.java

                    highlightedQuerySet = new HashSet<>();
                    request.setAttribute(Constants.HIGHLIGHT_QUERIES, highlightedQuerySet);
                    fieldLogMap = (Map<String, List<String>>) request.getAttribute(Constants.FIELD_LOGS);
                    if (fieldLogMap == null) {
                        fieldLogMap = new HashMap<>();
                        request.setAttribute(Constants.FIELD_LOGS, fieldLogMap);
                    }
                });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/UserGuideTransformTask.groovy

                }
    
                if (linkMetaData.urlFragment) {
                    href = "$href#$linkMetaData.urlFragment"
                }
    
                ulinkElement.setAttribute('url', href)
    
                Element classNameElement = doc.createElement('classname')
                ulinkElement.appendChild(classNameElement)
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/api/BaseApiManager.java

        protected FormatType getFormatType(final HttpServletRequest request) {
            FormatType formatType = (FormatType) request.getAttribute(API_FORMAT_TYPE);
            if (formatType != null) {
                return formatType;
            }
    
            formatType = detectFormatType(request);
            request.setAttribute(API_FORMAT_TYPE, formatType);
            return formatType;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top