public static interface Configurer.Connection
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
getHeaders() |
String |
getMethod() |
byte[] |
getPayload() |
String |
getUrl() |
Configurer.Connection |
withConnectionTimeout(int timeout)
Sets the connection timeout of the connection.
|
Configurer.Connection |
withHeader(String name,
String value)
Adds a header to the request.
|
Configurer.Connection |
withoutFollowRedirects()
Prevents the client to follow redirections.
|
Configurer.Connection |
withReadTimeout(int timeout)
Sets the read timeout of the connection.
|
Map<String,List<String>> getHeaders()
byte[] getPayload()
Configurer.Connection withHeader(String name, String value)
name
- header name.value
- header value.Configurer.Connection withReadTimeout(int timeout)
timeout
- timeout value in milliseconds.Configurer.Connection withConnectionTimeout(int timeout)
timeout
- timeout value in milliseconds.Configurer.Connection withoutFollowRedirects()
1.1.21-SNAPSHOT - Copyright © 2019 Talend Component Kit Documentation