Class HttpApiHandler<T extends HttpApiHandler<?>>
- java.lang.Object
-
- org.talend.sdk.component.junit.http.api.HttpApiHandler<T>
-
- Type Parameters:
T
- fluent API type.
- Direct Known Subclasses:
JUnit4HttpApi
,JUnit5HttpApi
public class HttpApiHandler<T extends HttpApiHandler<?>> extends Object
Handler used to customize the behavior of the mock server during the test.
-
-
Constructor Summary
Constructors Constructor Description HttpApiHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
activeSsl()
T
setExecutor(Executor executor)
T
setGlobalProxyConfiguration(boolean globalProxyConfiguration)
T
setHeaderFilter(Predicate<String> headerFilter)
T
setLogLevel(String logLevel)
T
setPort(int port)
T
setResponseLocator(ResponseLocator responseLocator)
T
setSkipProxyHeaders(boolean skipProxyHeaders)
T
setSslContext(SSLContext sslContext)
-
-
-
Constructor Detail
-
HttpApiHandler
public HttpApiHandler()
-
-
Method Detail
-
setHeaderFilter
public T setHeaderFilter(Predicate<String> headerFilter)
-
setExecutor
public T setExecutor(Executor executor)
-
setGlobalProxyConfiguration
public T setGlobalProxyConfiguration(boolean globalProxyConfiguration)
-
setSslContext
public T setSslContext(SSLContext sslContext)
-
setResponseLocator
public T setResponseLocator(ResponseLocator responseLocator)
-
setLogLevel
public T setLogLevel(String logLevel)
-
setSkipProxyHeaders
public T setSkipProxyHeaders(boolean skipProxyHeaders)
-
-