Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for learner (0.22 sec)

  1. src/test/java/org/codelibs/fess/helper/AccessTokenHelperTest.java

        public void test_getAccessTokenFromRequest_ok0() {
            final String token = accessTokenHelper.generateAccessToken();
            MockletHttpServletRequest req = getMockRequest();
            req.addHeader("Authorization", "Bearer " + token);
            assertEquals(token, accessTokenHelper.getAccessTokenFromRequest(req));
        }
    
        public void test_getAccessTokenFromRequest_ok1() {
            final String token = accessTokenHelper.generateAccessToken();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Functions.java

       * is defined as the function h such that {@code h(a) == g(f(a))} for each {@code a}.
       *
       * <p><b>Java 8+ users:</b> use {@code g.compose(f)} or (probably clearer) {@code f.andThen(g)}
       * instead.
       *
       * @param g the second function to apply
       * @param f the first function to apply
       * @return the composition of {@code f} and {@code g}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

                        // is undefined in shutdown hooks.
                        // This is because the logging code installs a shutdown hook of its
                        // own. See Cleaner class inside {@link LogManager}.
                        service.shutdown();
                        service.awaitTermination(terminationTimeout, timeUnit);
                      } catch (InterruptedException ignored) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/AccessTokenHelper.java

    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.exception.InvalidAccessTokenException;
    import org.codelibs.fess.util.ComponentUtil;
    
    public class AccessTokenHelper {
    
        protected static final String BEARER = "Bearer";
    
        protected Random random = new SecureRandom();
    
        public String generateAccessToken() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              format(
                  "estimated size of spliterator after trySplit (%s) is larger than original size (%s)",
                  spliterator.estimateSize(), originalSize));
        }
        if (trySplit != null) {
          if (trySplit.estimateSize() > originalSize) {
            fail(
                format(
                    "estimated size of trySplit result (%s) is larger than original size (%s)",
                    trySplit.estimateSize(), originalSize));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       amounts of computation (creating a thread, calling a few methods, etc) needed to reach a
     *       timeout point. Similarly, a SMALL is always discriminable as larger than SHORT and smaller
     *       than MEDIUM. And so on. These constants are set to conservative values, but even so, if
     *       there is ever any doubt, they can all be increased in one spot to rerun tests on slower
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java

            if (logger.isDebugEnabled()) {
                logger.debug("url: {}", url);
            }
            try (CurlResponse response = Curl.get(url).header("Authorization", "Bearer " + user.getAuthenticationResult().getAccessToken())
                    .header("Accept", "application/json").execute()) {
                final Map<String, Object> contentMap = response.getContent(OpenSearchCurl.jsonParser());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

                  /*
                   * requireNonNull is safe because we've initialized these if
                   * !GENERATE_CANCELLATION_CAUSES.
                   *
                   * TODO(cpovirk): Maybe it would be cleaner to define a CancellationSupplier interface
                   * with two implementations, one that contains causeless Cancellation instances and
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       amounts of computation (creating a thread, calling a few methods, etc) needed to reach a
     *       timeout point. Similarly, a SMALL is always discriminable as larger than SHORT and smaller
     *       than MEDIUM. And so on. These constants are set to conservative values, but even so, if
     *       there is ever any doubt, they can all be increased in one spot to rerun tests on slower
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                }
            }
            final HttpServletResponse response = LaResponseUtil.getResponse();
            if (t instanceof final InvalidAccessTokenException e) {
                response.setHeader("WWW-Authenticate", "Bearer error=\"" + e.getType() + "\"");
                writeJsonResponse(HttpServletResponse.SC_UNAUTHORIZED, message);
            } else {
                writeJsonResponse(status, message);
            }
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 02:17:23 GMT 2024
    - 50.3K bytes
    - Viewed (0)
Back to top