Class HttpExchangeCall


@Deprecated public class HttpExchangeCall extends ServerCall
Deprecated.
Will be removed in the next 2.7/3.0 release.
Call that is used by the Basic HTTP server.
Author:
Jerome Louvel
  • Constructor Details

    • HttpExchangeCall

      public HttpExchangeCall(Server server, HttpExchange exchange)
      Deprecated.
      Constructor.
      Parameters:
      server - The parent server.
      exchange - The wrapped HttpExchange instance.
    • HttpExchangeCall

      public HttpExchangeCall(Server server, HttpExchange exchange, boolean confidential)
      Deprecated.
      Constructor.
      Parameters:
      server - The parent server.
      exchange - The wrapped HttpExchange instance.
      confidential - True if the confidentiality of the call is ensured (ex: via SSL)
  • Method Details

    • abort

      public boolean abort()
      Deprecated.
      Description copied from class: ServerCall
      Ask the connector to abort the related network connection, for example immediately closing the socket.
      Specified by:
      abort in class ServerCall
      Returns:
      True if the connection was aborted.
    • flushBuffers

      public void flushBuffers() throws IOException
      Deprecated.
      Description copied from class: ServerCall
      Flushes the buffers onto the network so that for example you can force headers to be written before the entity is becoming available.
      Overrides:
      flushBuffers in class ServerCall
      Throws:
      IOException
    • getClientAddress

      public String getClientAddress()
      Deprecated.
      Description copied from class: Call
      Returns the client address.
      Corresponds to the IP address of the requesting client.
      Overrides:
      getClientAddress in class Call
      Returns:
      The client address.
    • getClientPort

      public int getClientPort()
      Deprecated.
      Description copied from class: Call
      Returns the client port.
      Corresponds to the TCP/IP port of the requesting client.
      Overrides:
      getClientPort in class Call
      Returns:
      The client port.
    • getMethod

      public String getMethod()
      Deprecated.
      Description copied from class: Call
      Returns the request method.
      Overrides:
      getMethod in class Call
      Returns:
      The request method.
    • getRequestHeaders

      public Series<Header> getRequestHeaders()
      Deprecated.
      Description copied from class: Call
      Returns the modifiable list of request headers.
      Overrides:
      getRequestHeaders in class Call
      Returns:
      The modifiable list of request headers.
    • getRequestEntityStream

      public InputStream getRequestEntityStream(long size)
      Deprecated.
      Description copied from class: ServerCall
      Returns the request entity stream if it exists.
      Specified by:
      getRequestEntityStream in class ServerCall
      Parameters:
      size - The expected entity size or -1 if unknown.
      Returns:
      The request entity stream if it exists.
    • getRequestHeadStream

      public InputStream getRequestHeadStream()
      Deprecated.
      Description copied from class: ServerCall
      Returns the request head stream if it exists.
      Specified by:
      getRequestHeadStream in class ServerCall
      Returns:
      The request head stream if it exists.
    • getRequestUri

      public String getRequestUri()
      Deprecated.
      Description copied from class: Call
      Returns the URI on the request line (most like a relative reference, but not necessarily).
      Overrides:
      getRequestUri in class Call
      Returns:
      The URI on the request line.
    • getResponseEntityStream

      public OutputStream getResponseEntityStream()
      Deprecated.
      Description copied from class: ServerCall
      Returns the response entity stream if it exists.
      Specified by:
      getResponseEntityStream in class ServerCall
      Returns:
      The response entity stream if it exists.
    • writeResponseHead

      public void writeResponseHead(Response restletResponse) throws IOException
      Deprecated.
      Description copied from class: ServerCall
      Writes the response status line and headers. Does nothing by default.
      Overrides:
      writeResponseHead in class ServerCall
      Parameters:
      restletResponse - The response.
      Throws:
      IOException