org.apache.jmeter.protocol.http.util

## Class LoopbackHTTPSocket

- java.lang.Object
- - java.net.Socket
  - - org.apache.jmeter.protocol.http.util.LoopbackHTTPSocket

- All Implemented Interfaces:
    Closeable, AutoCloseable

      public class LoopbackHTTPSocket
      extends Socket

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LoopbackHTTPSocket(String host, int port)`
    `LoopbackHTTPSocket(String host, int port, InetAddress localAddr, int localPort)`
    `LoopbackHTTPSocket(String host, int port, InetAddress localAddress, int localPort, int timeout)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `getInputStream()`
    `OutputStream` | `getOutputStream()`

    - ### Methods inherited from class java.net.Socket

      `bind, close, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### LoopbackHTTPSocket

          public LoopbackHTTPSocket(String host,
                                    int port,
                                    InetAddress localAddress,
                                    int localPort,
                                    int timeout)
                             throws IOException

      Throws:
        `IOException`

    - #### LoopbackHTTPSocket

          public LoopbackHTTPSocket(String host,
                                    int port,
                                    InetAddress localAddr,
                                    int localPort)
                             throws IOException

      Throws:
        `IOException`

    - #### LoopbackHTTPSocket

          public LoopbackHTTPSocket(String host,
                                    int port)
                             throws UnknownHostException,
                                    IOException

      Throws:
        `UnknownHostException`
        `IOException`

  - ### Method Detail

    - #### getOutputStream

          public OutputStream getOutputStream()
                                       throws IOException

      Overrides:
        `getOutputStream` in class `Socket`
      Throws:
        `IOException`

    - #### getInputStream

          public InputStream getInputStream()
                                     throws IOException

      Overrides:
        `getInputStream` in class `Socket`
      Throws:
        `IOException`

Copyright © 1998-2022 Apache Software Foundation. All Rights Reserved.