Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SmbPipeHandle (0.13 sec)

  1. src/main/java/jcifs/SmbPipeHandle.java

     */
    package jcifs;
    
    import java.io.InputStream;
    import java.io.OutputStream;
    
    /**
     * Handle to an open named pipe
     *
     * @author mbechler
     *
     */
    public interface SmbPipeHandle extends AutoCloseable {
    
        /**
         * Gets the pipe resource associated with this handle.
         *
         * @return the pipe
         */
        SmbPipeResource getPipe();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbPipeHandleTest.java

            // Create a mock implementation of the SmbPipeHandle interface
            smbPipeHandle = mock(SmbPipeHandle.class);
    
            // Define behavior for the mock handle
            when(smbPipeHandle.getPipe()).thenReturn(mockPipeResource);
            when(smbPipeHandle.getInput()).thenReturn(mockInputStream);
            when(smbPipeHandle.getOutput()).thenReturn(mockOutputStream);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

            this.uncPath = this.pipe.getUncPath();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbPipeHandle#unwrap(java.lang.Class)
         */
        @SuppressWarnings("unchecked")
        @Override
        public <T extends SmbPipeHandle> T unwrap(final Class<T> type) {
            if (type.isAssignableFrom(this.getClass())) {
                return (T) this;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            // Act
            SmbPipeHandle handle = pipe.openPipe();
    
            // Assert: observable handle behavior without network I/O
            assertNotNull(handle, "Handle must not be null");
            assertSame(pipe, handle.getPipe(), "Handle should reference originating pipe");
            assertSame(handle, handle.unwrap(SmbPipeHandle.class), "unwrap should return same instance for interface type");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

     */
    package jcifs.smb;
    
    import java.io.IOException;
    
    import jcifs.CIFSException;
    import jcifs.SmbFileHandle;
    import jcifs.SmbPipeHandle;
    
    /**
     * Internal interface for SMB pipe handle operations.
     *
     * This interface extends SmbPipeHandle with additional methods needed
     * for internal pipe management and provides access to low-level pipe details.
     *
     * @author mbechler
     *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Happy path: unwrap to interface and concrete type
            SmbPipeHandle unwrapped1 = handle.unwrap(SmbPipeHandle.class);
            SmbPipeHandleImpl unwrapped2 = handle.unwrap(SmbPipeHandleImpl.class);
            assertSame(handle, unwrapped1);
            assertSame(handle, unwrapped2);
    
            // Invalid type
            class OtherPipeHandle implements SmbPipeHandle {
                @Override
                public SmbPipeResource getPipe() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbNamedPipe.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb;
    
    import java.net.MalformedURLException;
    
    import jcifs.CIFSContext;
    import jcifs.SmbPipeHandle;
    import jcifs.SmbPipeResource;
    import jcifs.internal.smb1.com.SmbComNTCreateAndX;
    import jcifs.internal.smb1.com.SmbComNTCreateAndXResponse;
    
    /**
     * This class will allow a Java program to read and write data to Named
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    import org.mockito.junit.jupiter.MockitoSettings;
    import org.mockito.quality.Strictness;
    
    import jcifs.CIFSException;
    import jcifs.Configuration;
    import jcifs.SmbPipeHandle;
    import jcifs.SmbPipeResource;
    import jcifs.internal.smb2.ioctl.Smb2IoctlRequest;
    import jcifs.internal.smb2.ioctl.Smb2IoctlResponse;
    
    @ExtendWith(MockitoExtension.class)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.BufferCache;
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.SmbPipeHandle;
    import jcifs.SmbPipeResource;
    import jcifs.SmbResourceLocator;
    import jcifs.smb.SmbNamedPipe;
    import jcifs.smb.SmbPipeHandleInternal;
    import jcifs.util.Encdec;
    
    /**
     * Test class for DcerpcPipeHandle
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbPipeResource.java

         *
         * @return the type of the pipe
         */
        int getPipeType();
    
        /**
         * Create a pipe handle
         *
         * @return pipe handle, needs to be closed when finished
         */
        SmbPipeHandle openPipe();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top