Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 616 for asStream (0.54 sec)

  1. src/main/java/org/codelibs/fess/app/web/api/admin/labeltype/ApiAdminLabeltypeAction.java

     */
    package org.codelibs.fess.app.web.api.admin.labeltype;
    
    import static org.codelibs.core.stream.StreamUtil.stream;
    import static org.codelibs.fess.app.web.admin.labeltype.AdminLabeltypeAction.getLabelType;
    
    import java.util.List;
    import java.util.stream.Collectors;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.lang.StringUtil;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

                if (searchLog != null) {
                    final String userAgent = searchLog.getUserAgent();
                    final boolean isBot =
                            userAgent != null && stream(botNames).get(stream -> stream.anyMatch(botName -> userAgent.indexOf(botName) >= 0));
                    if (!isBot) {
                        searchLog.getUserInfo().ifPresent(userInfo -> {
                            final String code = userInfo.getId();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/EnumBiMap.java

       */
      @GwtIncompatible // java.io.ObjectOutputStream
      private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        stream.writeObject(keyTypeOrObjectUnderJ2cl);
        stream.writeObject(valueTypeOrObjectUnderJ2cl);
        Serialization.writeMap(this, stream);
      }
    
      @SuppressWarnings("unchecked") // reading fields populated by writeObject
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          is CloseStream -> {
            if (stream != null) {
              stream.close(ErrorCode.fromHttp2(effect.http2ErrorCode)!!, null)
            } else {
              socket.close()
            }
          }
    
          ShutdownConnection -> {
            if (stream != null) {
              stream.connection.shutdown(ErrorCode.NO_ERROR)
            } else {
              socket.close()
            }
          }
    
          is CloseSocket -> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            assertThrows(IOException.class, () -> sis.read());
        }
    
        @Test
        @DisplayName("Available returns underlying stream available when no message buffered")
        void availableReturnsUnderlyingWhenNoMessage() throws IOException {
            // Mock input stream that reports available bytes
            InputStream mockIn = mock(InputStream.class);
            when(mockIn.available()).thenReturn(42);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.Mockito.doAnswer;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    import java.security.SecureRandom;
    import java.util.stream.Stream;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

                }
            }
    
            if (code >= 400 && stream != null) {
                when(conn.getErrorStream()).thenReturn(stream);
            } else if (stream != null) {
                when(conn.getInputStream()).thenReturn(stream);
            }
        }
    
        /**
         * Test helper class for mocking URL.openConnection() behavior
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/AccessTokenService.java

                    }
                    stream(accessToken.getPermissions()).of(stream -> stream.forEach(permissionSet::add));
                    final String name = accessToken.getParameterName();
                    stream(request.getParameterValues(name)).of(stream -> stream.filter(StringUtil::isNotBlank).forEach(permissionSet::add));
                    return OptionalEntity.of(permissionSet);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/base/login/AzureAdCredential.java

                        }
                    }
                    stream(groups).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByGroup(s))));
                    stream(roles).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByRole(s))));
                    permissions = permissionSet.stream().filter(StringUtil::isNotBlank).distinct().toArray(n -> new String[n]);
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 28 09:13:08 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

                            if (!errors.isEmpty()) {
                                logger.warn("{}", errors.stream().collect(Collectors.joining(", ")));
                                if (auth.isDebugActive() && StringUtil.isNotBlank(auth.getLastErrorReason())) {
                                    logger.warn("Authentication Failure: {} - Reason: {}", errors.stream().collect(Collectors.joining(", ")),
                                            auth.getLastErrorReason());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 16.4K bytes
    - Viewed (1)
Back to top