- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for decoder (0.04 sec)
-
PermissionHelperTest.java
} L101: L102: public void test_decode() { L103: assertNull(permissionHelper.decode(null)); L104: assertNull(permissionHelper.decode("")); L105: assertNull(permissionHelper.decode(" ")); L106: assertNull(permissionHelper.decode("D")); L107: L108: assertEquals("{user}guest", permissionHelper.decode("1guest")); L109: assertEquals("{role}guest", permissionHelper.decode("Rguest")); L110: assertEquals("{group}guest", permissionHelper.decode("2guest"));...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 5.9K bytes -
AdminStorageAction.java
String(Base64.getUrlEncoder().encode(objectName.getBytes(Constants.UTF_8_CHARSET)), Constants.UTF_8_CHARSET); L421: } L422: L423: protected static String decodeId(final String id) { L424: if (id == null) { L425: return StringUtil.EMPTY; L426: } L427: return new String(Base64.getUrlDecoder().decode(id.getBytes(Constants.UTF_8_CHARSET)), Constants.UTF_8_CHARSET); L428: } L429: L430: private HtmlResponse asListHtml(final String path) { L431: return asHtml(p...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 19.9K bytes -
AdminDataconfigAction.java
}); L157: final PermissionHelper permissionHelper = ComponentUtil.getPermissionHelper(); L158: form.permissions = stream(entity.getPermissions()).get(stream -> stream.map(s -> permissionHelper.decode(s)) L159: .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining("\n"))); L160: form.virtualHosts = stream(entity.getVirtualHosts()) L161: .get(stream -> stre...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 17.5K bytes -
DocumentHelper.java
hash.startsWith(SIMILAR_DOC_HASH_PREFIX) && hash.length() > SIMILAR_DOC_HASH_PREFIX.length()) { L227: final byte[] decode = Base64.getUrlDecoder().decode(hash.substring(SIMILAR_DOC_HASH_PREFIX.length())); L228: try (BufferedReader reader = L229: new BufferedReader(new InputStreamReader(new GZIPInputStream(new ByteArrayInputStream(decode)), Constants.UTF_8))) { L230: return ReaderUtil.readText(reader); L231: } catch (final IOException...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 12K bytes -
FacetResponse.java
final Filter queryFacet = (Filter) aggregation; L43: final String encodedQuery = queryFacet.getName().substring(Constants.FACET_QUERY_PREFIX.length()); L44: queryCountMap.put(new String(BaseEncoding.base64().decode(encodedQuery), StandardCharsets.UTF_8), queryFacet.getDocCount()); L45: } L46: L47: }); L48: } L49: L50: public boolean hasFacetResponse() { L51: return queryCountMap != null || fieldList != null; L52: } L53: L54:...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 3.3K bytes -
FessTransformer.java
"US-ASCII".equalsIgnoreCase(encoding))) { L93: enc = getFessConfig().getCrawlerDocumentSiteEncoding(); L94: } else { L95: enc = encoding; L96: } L97: L98: try { L99: url = URLDecoder.decode(url, enc); L100: } catch (final Exception e) {} L101: } L102: L103: return abbreviateSite(url); L104: } L105: L106: default void putResultDataBody(final Map<String, Object> dataMap, final String key, final Object value)...github.com/codelibs/fess/src/main/java/org/code...Fri Oct 11 21:11:58 UTC 2024 9.5K bytes -
AdminFileconfigAction.java
}); L152: final PermissionHelper permissionHelper = ComponentUtil.getPermissionHelper(); L153: form.permissions = stream(entity.getPermissions()).get(stream -> stream.map(s -> permissionHelper.decode(s)) L154: .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining("\n"))); L155: form.virtualHosts = stream(entity.getVirtualHosts()) L156: .get(stream -> stre...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 17.1K bytes -
AdminWebconfigAction.java
}); L156: final PermissionHelper permissionHelper = ComponentUtil.getPermissionHelper(); L157: form.permissions = stream(entity.getPermissions()).get(stream -> stream.map(s -> permissionHelper.decode(s)) L158: .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining("\n"))); L159: form.virtualHosts = stream(entity.getVirtualHosts()) L160: .get(stream -> stre...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 17.2K bytes -
EncodingFilter.java
L136: final String key = urlCodec.decode(pair.substring(0, pos), enc); L137: List<String> list = paramListMap.get(key); L138: if (list == null) { L139: list = new ArrayList<>(); L140: paramListMap.put(key, list); L141: } L142: if (pos + 1 < pair.length()) { L143: list.add(urlCodec.decode(pair.substring(pos + 1), enc)); L144: ...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 6.9K bytes -
AdminLogAction.java
HtmlResponse index() { L67: return asIndexHtml(); L68: } L69: L70: @Execute L71: @Secured({ ROLE, ROLE + VIEW }) L72: public ActionResponse download(final String id) { L73: final String filename = new String(Base64.getDecoder().decode(id), StandardCharsets.UTF_8).replace("..", "").replaceAll("\\s", ""); L74: final String logFilePath = systemHelper.getLogFilePath(); L75: if (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) { L76: final Path...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 4.7K bytes