- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for getOptionalRequest (0.12 sec)
-
src/main/java/org/codelibs/fess/util/WebApiUtil.java
* * @param name The attribute name * @param value The attribute value */ public static void setObject(final String name, final Object value) { LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(name, value)); } /** * Gets an object from the current request attributes. * * @param <T> The type of the object * @param name The attribute name
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
* @return HTML opening tag with language attribute or closing tag */ public static String html(final boolean isOpen) { if (isOpen) { return "<html lang=\"" + LaRequestUtil.getOptionalRequest().map(req -> { if (req.getAttribute(LastaWebKey.USER_LOCALE_KEY) instanceof Locale locale) { return locale; } return Locale.ENGLISH;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 25.3K bytes - Viewed (1) -
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 Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/UserInfoHelper.java
* * @return the user code string, or null if no valid session exists */ public String getUserCode() { return LaRequestUtil.getOptionalRequest().map(request -> { String userCode = (String) request.getAttribute(Constants.USER_CODE); if (StringUtil.isNotBlank(userCode)) { return userCode; }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 14.9K bytes - Viewed (0) -
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 Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 35.8K bytes - Viewed (0) -
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 Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 16.4K bytes - Viewed (3) -
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 Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 5.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/UserAgentHelper.java
* * @return the detected user agent type, or OTHER if no specific type is detected */ 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 Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/BaseApiManager.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.9K bytes - Viewed (0) -
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 Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 9.5K bytes - Viewed (0)