Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for getOptionalRequest (0.27 sec)

  1. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    }
                });
    
        protected FessFunctions() {
            // nothing
        }
    
        public static Boolean labelExists(final String value) {
            return LaRequestUtil.getOptionalRequest().map(req -> {
                @SuppressWarnings("unchecked")
                final Map<String, String> labelValueMap = (Map<String, String>) req.getAttribute(Constants.LABEL_VALUE_MAP);
                if (labelValueMap != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/WebApiUtil.java

            LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(WEB_API_EXCEPTION, new WebApiException(statusCode, message)));
        }
    
        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)
  3. 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)
  4. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

        protected String cookiePath = "/";
    
        protected Boolean cookieSecure;
    
        protected boolean httpOnly = true;
    
        public String getUserCode() {
            return LaRequestUtil.getOptionalRequest().map(request -> {
                String userCode = (String) request.getAttribute(Constants.USER_CODE);
                if (StringUtil.isNotBlank(userCode)) {
                    return 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)
  5. src/main/java/org/codelibs/fess/app/web/base/SearchForm.java

            return stream(lang).get(stream -> stream.filter(StringUtil::isNotBlank).distinct().toArray(n -> new String[n]));
        }
    
        @Override
        public GeoInfo getGeoInfo() {
            return LaRequestUtil.getOptionalRequest().map(this::createGeoInfo)
                    .orElseGet(() -> ComponentUtil.getQueryHelper().getDefaultGeoInfo());
        }
    
        @Override
        public FacetInfo getFacetInfo() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

            });
            return new SettingsBuilder().fromValues(params).build();
        }
    
        @Override
        public LoginCredential getLoginCredential() {
            return LaRequestUtil.getOptionalRequest().map(request -> {
                if (logger.isDebugEnabled()) {
                    logger.debug("Logging in with SAML Authenticator");
                }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/UserAgentHelper.java

        protected static final String USER_AGENT = "user-agent";
    
        protected static final String USER_AGENT_TYPE = "ViewHelper.UserAgent";
    
        public UserAgentType getUserAgentType() {
            return LaRequestUtil.getOptionalRequest().map(request -> {
                UserAgentType uaType = (UserAgentType) request.getAttribute(USER_AGENT_TYPE);
                if (uaType == null) {
                    final String userAgent = request.getHeader(USER_AGENT);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SearchHelper.java

            final long startTime = systemHelper.getCurrentTimeAsLong();
            final long requestedTime = startTime;
    
            final SearchRequestParams params = rewrite(searchRequestParams);
    
            LaRequestUtil.getOptionalRequest().ifPresent(request -> {
                request.setAttribute(Constants.REQUEST_LANGUAGES, params.getLanguages());
                request.setAttribute(Constants.REQUEST_QUERIES, params.getQuery());
            });
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/api/BaseApiManager.java

            } else {
                buf.append(contentType);
            }
            buf.append("; charset=");
            final String enc;
            if (encoding == null) {
                enc = LaRequestUtil.getOptionalRequest().map(HttpServletRequest::getCharacterEncoding).orElse(Constants.UTF_8);
            } else {
                enc = encoding;
            }
            buf.append(enc);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

            if (!pathMapping.hasUAMathcer()) {
                return true;
            }
    
            if (SingletonLaContainerFactory.getExternalContext().getRequest() != null) {
                return LaRequestUtil.getOptionalRequest().map(request -> {
                    final String userAgent = request.getHeader("user-agent");
                    if (StringUtil.isBlank(userAgent)) {
                        return false;
                    }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top