Class MutableResponseProcessor


  • @Deprecated
    public abstract class MutableResponseProcessor
    extends java.lang.Object
    Deprecated.
    An abstract base class for implementations that process the ServerResponseElements that are returned by a HTTP request. Implementors should provide the processPart(byte[]) method.

    Response status and headers are read whenever offered in the process() method, and the response body (in whole or part by part) are processed by the processPart() method.

    This class is mutable, side-effecting and not thread-safe.

    Created by Karel Maesen, Geovise BVBA on 18/12/14.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
      Deprecated.
      Returns the HTTP Response headers
      int getStatusCode()
      Deprecated.
      Returns the HTTP Statuscode
      java.util.Optional<java.lang.String> getStatusText()
      Deprecated.
      Returns the Status text, if any
      void process​(ServerResponseElement el)
      Deprecated.
      Processes the specified ServerResponseElement
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MutableResponseProcessor

        public MutableResponseProcessor()
        Deprecated.
    • Method Detail

      • process

        public void process​(ServerResponseElement el)
        Deprecated.
        Processes the specified ServerResponseElement
        Parameters:
        el - the ServerResponseElement to process
      • getStatusCode

        public int getStatusCode()
        Deprecated.
        Returns the HTTP Statuscode
        Returns:
        the HTTP Statuscode
      • getStatusText

        public java.util.Optional<java.lang.String> getStatusText()
        Deprecated.
        Returns the Status text, if any
        Returns:
        Some status text, or None
      • getHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
        Deprecated.
        Returns the HTTP Response headers
        Returns:
        the HTTP Response headers