Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for decoder (0.04 sec)

  1. 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
  2. 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
  3. User.java

    getRoleNames() { L62: return stream(getRoles()).get(stream -> stream.map(this::decode).toArray(n -> new String[n])); L63: } L64: L65: @Override L66: public String[] getGroupNames() { L67: return stream(getGroups()).get(stream -> stream.map(this::decode).toArray(n -> new String[n])); L68: } L69: L70: private String decode(final String value) { L71: return new String(Base64.getDecoder().decode(value), Constants.CHARSET_UTF_8); L72: } L73: L74: @Override L75: public...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      3.8K bytes
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
Back to top