Package com.adobe.acs.commons.http
Interface HttpClientFactory
-
public interface HttpClientFactoryFactory for building pre-configured HttpClient Fluent Executor and Request objects based a configure host, port and (optionally) username/password. Factories will generally be accessed by service lookup using the factory.name property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.http.client.fluent.Requestdelete(String partialUrl)Create a DELETE request using the base hostname and port defined in the factory configuration.org.apache.http.client.fluent.Requestget(String partialUrl)Create a GET request using the base hostname and port defined in the factory configuration.org.apache.http.client.fluent.ExecutorgetExecutor()Get the configured Executor object from this factory.org.apache.http.client.fluent.Requestoptions(String partialUrl)Create a OPTIONS request using the base hostname and port defined in the factory configuration.org.apache.http.client.fluent.Requestpost(String partialUrl)Create a POST request using the base hostname and port defined in the factory configuration.org.apache.http.client.fluent.Requestput(String partialUrl)Create a PUT request using the base hostname and port defined in the factory configuration.
-
-
-
Method Detail
-
getExecutor
org.apache.http.client.fluent.Executor getExecutor()
Get the configured Executor object from this factory.- Returns:
- an Executor object
-
get
org.apache.http.client.fluent.Request get(String partialUrl)
Create a GET request using the base hostname and port defined in the factory configuration.- Parameters:
partialUrl- the portion of the URL after the port (and slash)- Returns:
- a fluent Request object
-
put
org.apache.http.client.fluent.Request put(String partialUrl)
Create a PUT request using the base hostname and port defined in the factory configuration.- Parameters:
partialUrl- the portion of the URL after the port (and slash)- Returns:
- a fluent Request object
-
post
org.apache.http.client.fluent.Request post(String partialUrl)
Create a POST request using the base hostname and port defined in the factory configuration.- Parameters:
partialUrl- the portion of the URL after the port (and slash)- Returns:
- a fluent Request object
-
delete
org.apache.http.client.fluent.Request delete(String partialUrl)
Create a DELETE request using the base hostname and port defined in the factory configuration.- Parameters:
partialUrl- the portion of the URL after the port (and slash)- Returns:
- a fluent Request object
-
options
org.apache.http.client.fluent.Request options(String partialUrl)
Create a OPTIONS request using the base hostname and port defined in the factory configuration.- Parameters:
partialUrl- the portion of the URL after the port (and slash)- Returns:
- a fluent Request object
-
-