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
public abstract class AbstractStatusCodeHandler<T> extends Object implements ResponseHandler<T>
- Since:
- 2023.13
-
-
Field Summary
Fields Modifier and Type Field Description protected int
status
-
Constructor Summary
Constructors Constructor Description AbstractStatusCodeHandler()
AbstractStatusCodeHandler(int status)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
doHandleResponse(HttpResponse response)
T
handleResponse(HttpResponse response)
-
-
-
Method Detail
-
handleResponse
public final T handleResponse(HttpResponse response) throws IOException
- Specified by:
handleResponse
in interfaceResponseHandler<T>
- Throws:
IOException
-
doHandleResponse
protected abstract T doHandleResponse(HttpResponse response) throws IOException
- Throws:
IOException
-
-