- Sort Score
- Num 10 results
- Language All
Results 1471 - 1480 of 3,180 for when (0.02 seconds)
-
src/test/java/org/codelibs/fess/helper/RateLimitHelperTest.java
assertEquals("203.0.113.50", rateLimitHelper.getClientIp(request)); } @Test public void test_getClientIp_untrustedProxy_headersIgnored() { // When remoteAddr is not a trusted proxy, headers should be ignored final MockletHttpServletRequest request = getMockRequest(); request.setRemoteAddr("192.168.1.100");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/LruHashMap.java
*/ package org.codelibs.core.collection; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; /** * {@link HashMap} with an upper limit on the number of entries. When a new entry is added, the oldest entry is discarded using LRU if the limit is exceeded. * <p> * <strong>Thread-Safety:</strong> This class is <strong>NOT thread-safe</strong>.Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 3K bytes - Click Count (0) -
docs/en/docs/advanced/response-headers.md
You can declare a parameter of type `Response` in your *path operation function* (as you can do for cookies). And then you can set headers in that *temporal* response object. {* ../../docs_src/response_headers/tutorial002_py310.py hl[1, 7:8] *} And then you can return any object you need, as you normally would (a `dict`, a database model, etc).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
value = -1; // -1 is 0xFFFFFFFF NtlmMessage.writeULong(data, 0, value); expectedBuffer.putInt(0, value); assertArrayEquals(expectedBuffer.array(), data, "Should interpret -1 as unsigned max ULong when writing."); } @Test void testWriteUShort() { // Test writeUShort byte[] data = new byte[2]; ByteBuffer expectedBuffer = ByteBuffer.allocate(2).order(ByteOrder.LITTLE_ENDIAN);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
internal/grid/muxserver.go
if msg.DeadlineMS == 0 || msg.DeadlineMS > uint32(4*c.clientPingInterval/time.Millisecond) { go func() { wg.Wait() m.checkRemoteAlive() }() } return &m } // handleInbound sends unblocks when we have delivered the message to the handler. func (m *muxServer) handleInbound(c *Connection, inbound <-chan []byte, handlerIn chan<- []byte) { for { select { case <-m.ctx.Done(): return
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue May 27 15:19:03 GMT 2025 - 9.7K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
// Should throw exception due to authentication tag failure assertThrows(GeneralSecurityException.class, () -> { storage.decryptCredentials(encrypted); }, "Should throw GeneralSecurityException when decrypting tampered data"); // Clean up Arrays.fill(plaintext, '\0'); } @Test public void testDecryptWithWrongSalt() throws Exception {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
tests/helper_test.go
} func doCheckPet(t *testing.T, pet Pet, expect Pet, unscoped bool) { if pet.ID != 0 { var newPet Pet if err := db(unscoped).Where("id = ?", pet.ID).First(&newPet).Error; err != nil { t.Fatalf("errors happened when query: %v", err) } else { AssertObjEqual(t, newPet, pet, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") AssertObjEqual(t, newPet, expect, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:27:38 GMT 2026 - 8.6K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import org.junit.jupiter.api.Test; import jcifs.Configuration; class AvSingleHostTest { /** * Test constructor AvSingleHost(byte[] raw). * Should correctly parse the raw bytes. */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/exception/ContainerNotAvailableException.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.exception; /** * Exception thrown when a dependency injection container or component is not available. * This exception indicates that the required container or a specific component within it cannot be accessed. */
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Nov 19 08:04:23 GMT 2025 - 2.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/SMBProtocolDecodingException.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.internal; import jcifs.CIFSException; /** * Exception thrown when errors occur during SMB protocol message decoding. * Indicates that an SMB message could not be properly parsed or decoded due to * malformed data, protocol violations, or unsupported message formats. * * @author mbechler
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0)