Package be.wegenenverkeer.rxhttpclient
Class MutableResponseProcessor
- java.lang.Object
-
- be.wegenenverkeer.rxhttpclient.MutableResponseProcessor
-
@Deprecated public abstract class MutableResponseProcessor extends java.lang.ObjectDeprecated.An abstract base class for implementations that process theServerResponseElements 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.
-
-
Constructor Summary
Constructors Constructor Description MutableResponseProcessor()Deprecated.
-
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 headersintgetStatusCode()Deprecated.Returns the HTTP Statuscodejava.util.Optional<java.lang.String>getStatusText()Deprecated.Returns the Status text, if anyvoidprocess(ServerResponseElement el)Deprecated.Processes the specifiedServerResponseElement
-
-
-
Method Detail
-
process
public void process(ServerResponseElement el)
Deprecated.Processes the specifiedServerResponseElement- Parameters:
el- theServerResponseElementto 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
-
-