Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for createCancel (0.06 sec)

  1. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            verify(request, times(1)).createCancel();
        }
    
        @Test
        @DisplayName("Test createCancel returns null when cancel not supported")
        void testCreateCancelReturnsNull() {
            // Given
            when(request.createCancel()).thenReturn(null);
    
            // When
            CommonServerMessageBlockRequest result = request.createCancel();
    
            // Then
            assertNull(result);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/Smb2CancelRequest.java

            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#createCancel()
         */
        @Override
        public CommonServerMessageBlockRequest createCancel() {
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Request#setRequestCredits(int)
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/RequestTest.java

            when(request.getNext()).thenReturn(nextRequest);
            when(request.split()).thenReturn(nextRequest);
            when(request.allowChain(nextRequest)).thenReturn(true);
            when(request.createCancel()).thenReturn(nextRequest);
            when(request.size()).thenReturn(1024);
            when(request.getOverrideTimeout()).thenReturn(5000);
    
            // When & Then
            assertTrue(request.isResponseAsync());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#createCancel()
         */
        @Override
        public CommonServerMessageBlockRequest createCancel() {
            return new Smb2CancelRequest(getConfig(), getMid(), getAsyncId());
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/CommonServerMessageBlockRequest.java

         */
        int size();
    
        /**
         * Creates a cancel request for this request.
         *
         * @return create cancel request
         */
        CommonServerMessageBlockRequest createCancel();
    
        /**
         * Checks if chaining is allowed with the next request.
         *
         * @param next the next request in the chain
         * @return whether to allow chaining
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransaction.java

            this.secondaryParameterOffset = NTT_SECONDARY_PARAMETER_OFFSET;
        }
    
        /**
         *
         * @return a cancel request
         */
        @Override
        public CommonServerMessageBlockRequest createCancel() {
            return new SmbComNtCancel(getConfig(), (int) getMid());
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#createCancel()
         */
        @Override
        public CommonServerMessageBlockRequest createCancel() {
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockResponse#getNextResponse()
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                assertNull(testBlock.getNext());
                assertFalse(testBlock.allowChain(mock(CommonServerMessageBlockRequest.class)));
                assertNull(testBlock.split());
                assertNull(testBlock.createCancel());
                assertNull(testBlock.getNextResponse());
                assertFalse(testBlock.isCancel());
                assertEquals(1, testBlock.getCreditCost());
                assertEquals(1, testBlock.getGrantedCredits());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
Back to top