public abstract class FileWritingHttpClientListener extends Object implements HttpClientListener
HttpClientListener
interface printing the given URI with some information
defined by the implementing subclass.
The file format will be a two column csv file with the URI in the first column and some information in the second column.
Constructor and Description |
---|
FileWritingHttpClientListener() |
FileWritingHttpClientListener(Path reportPath) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getReportValuePerCalledUri()
Returns the value that should be printed in the second column of the report file.
|
void |
onRequest(String reducedUri)
If the listener is registered with the
HttpClientWrapper , this method will be called prior to the
execution of the HttpClient . |
public void onRequest(@Nonnull String reducedUri)
HttpClientWrapper
, this method will be called prior to the
execution of the HttpClient
.onRequest
in interface HttpClientListener
reducedUri
- The URI used with the HttpClient
, truncated by the query and the fragment.@Nonnull protected abstract String getReportValuePerCalledUri()
The content of this second column is highly sub-class specific, so look there for more details.
null
.Copyright © 2020 SAP SE. All rights reserved.