Interface WebConnection

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface WebConnection
    extends java.lang.AutoCloseable
    The interface used by an HttpUpgradeHandler to interact with an upgraded HTTP connection.
    Since:
    Servlet 3.1
    • Method Detail

      • getInputStream

        ServletInputStream getInputStream()
                                   throws java.io.IOException
        Provides access to the ServletInputStream for reading data from the client.
        Returns:
        the input stream
        Throws:
        java.io.IOException - If an I/O occurs while obtaining the stream
      • getOutputStream

        ServletOutputStream getOutputStream()
                                     throws java.io.IOException
        Provides access to the ServletOutputStream for writing data to the client.
        Returns:
        the output stream
        Throws:
        java.io.IOException - If an I/O occurs while obtaining the stream