public interface WebClientAllocator
Modifier and Type | Method and Description |
---|---|
WebClientConfig |
allocateClient(java.lang.String[] requestParameters,
java.lang.String host)
Allocates the system resources for the new spawned web client.
|
void |
freeClient(WebClientConfig config)
Releases the system resources for the web client.
|
WebClientConfig allocateClient(java.lang.String[] requestParameters, java.lang.String host)
requestParameters
- Holds additional parameters if they are provided. It is expected that the first
requestParameters[0] holds the forwarded host of "X-Forwarded-Host" HTTP header
and requestParameters[1] holds the corresponding forwarded protocol that is
provided by "X-Forwarded-Proto" value.host
- The remote host for the spawned web clientvoid freeClient(WebClientConfig config)
config
- The web client configuration