public interface IBoxRestVisitor
Modifier and Type | Method and Description |
---|---|
void |
visitException(java.lang.Exception e,
int sequenceId)
Visit the exception when exception is thrown during http call.
|
void |
visitRequestBeforeSend(HttpRequest request,
int sequenceId)
Visit the http request right before request sent out.
|
void |
visitResponseUponReceiving(HttpResponse response,
int sequenceId)
Visit the http response after response is received.
|
void visitRequestBeforeSend(HttpRequest request, int sequenceId)
request
- http requestsequence
- id of the api requestvoid visitResponseUponReceiving(HttpResponse response, int sequenceId)
response
- http response.sequence
- id of the api requestvoid visitException(java.lang.Exception e, int sequenceId)
e
- Exception.sequence
- id of the api request