|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.kristofa.test.http.file.HttpRequestResponseFileLoggerFactory
public class HttpRequestResponseFileLoggerFactory
Factory that creates HttpRequestResponseFileLogger instances.
HttpRequestResponseFileLogger,
LoggingHttpProxy| Constructor Summary | |
|---|---|
HttpRequestResponseFileLoggerFactory(String directory,
String fileName)
Creates a new instance. |
|
HttpRequestResponseFileLoggerFactory(String directory,
String fileName,
boolean deleteExistingFiles)
Creates a new instance. |
|
| Method Summary | |
|---|---|
HttpRequestResponseLogger |
getHttpRequestResponseLogger()
Creates a new HttpRequestResponseLogger. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRequestResponseFileLoggerFactory(String directory,
String fileName)
directory - Target directory in which to store request/responses. Directory should already exist. Should not be
null or blank.fileName - Base file name. Should not contain extension. Will be suffixed with sequence number and .txt
extension. Should not be null or blank.
public HttpRequestResponseFileLoggerFactory(String directory,
String fileName,
boolean deleteExistingFiles)
directory - Target directory in which to store request/responses. Directory should already exist. Should not be
null or blank.fileName - Base file name. Should not contain extension. Will be suffixed with sequence number and .txt
extension. Should not be null or blank.deleteExistingFiles - If value is true we will delete all existing files prior to logging new
requests. This is often helpful because if we have less requests than before otherwise old files keep on
lingering which can cause failing tests.| Method Detail |
|---|
public HttpRequestResponseLogger getHttpRequestResponseLogger()
HttpRequestResponseLogger. Each request should return a new instance.
getHttpRequestResponseLogger in interface HttpRequestResponseLoggerFactoryHttpRequestResponseLogger.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||