Class SimpleServer.ServerErrorExchange

  • All Implemented Interfaces:
    Exchange
    Enclosing class:
    SimpleServer

    public static class SimpleServer.ServerErrorExchange
    extends java.lang.Object
    implements Exchange
    • Constructor Detail

      • ServerErrorExchange

        public ServerErrorExchange​(RequestHandler requestHandler)
    • Method Detail

      • matchResponseByString

        public boolean matchResponseByString​(java.lang.String response)
        Description copied from interface: Exchange

        matchResponseByString

        Specified by:
        matchResponseByString in interface Exchange
        Parameters:
        response - a String object.
        Returns:
        a boolean.
      • processResponse

        public boolean processResponse​(java.io.BufferedReader in)
                                throws java.io.IOException
        Description copied from interface: Exchange

        processResponse

        Specified by:
        processResponse in interface Exchange
        Parameters:
        in - a BufferedReader object.
        Returns:
        a boolean.
        Throws:
        java.io.IOException - if any.
      • sendRequest

        public boolean sendRequest​(java.io.OutputStream out)
                            throws java.io.IOException
        Description copied from interface: Exchange

        sendRequest

        Specified by:
        sendRequest in interface Exchange
        Parameters:
        out - a OutputStream object.
        Returns:
        a boolean.
        Throws:
        java.io.IOException - if any.