public abstract class MutableResponseProcessor
extends java.lang.Object
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.| Constructor and Description |
|---|
MutableResponseProcessor() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaders()
Returns the HTTP Response headers
|
int |
getStatusCode()
Returns the HTTP Statuscode
|
java.util.Optional<java.lang.String> |
getStatusText()
Returns the Status text, if any
|
void |
process(ServerResponseElement el)
Processes the specified
ServerResponseElement |
public void process(ServerResponseElement el)
ServerResponseElementel - the ServerResponseElement to processpublic int getStatusCode()
public java.util.Optional<java.lang.String> getStatusText()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()