Package org.nuxeo.http.test.handler
Class AbstractStatusCodeHandler<T>
java.lang.Object
org.nuxeo.http.test.handler.AbstractStatusCodeHandler<T>
- All Implemented Interfaces:
ResponseHandler<T>
- Direct Known Subclasses:
JsonNodeHandler
,StringHandler
- Since:
- 2023.13
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
doHandleResponse
(HttpResponse response) final T
handleResponse
(HttpResponse response)
-
Field Details
-
status
protected final int status
-
-
Constructor Details
-
AbstractStatusCodeHandler
public AbstractStatusCodeHandler() -
AbstractStatusCodeHandler
public AbstractStatusCodeHandler(int status) - Parameters:
status
- the status code to assert, or 0 to disable the assertion
-
-
Method Details
-
handleResponse
- Specified by:
handleResponse
in interfaceResponseHandler<T>
- Throws:
IOException
-
doHandleResponse
- Throws:
IOException
-