Class Http
java.lang.Object
de.iip_ecosphere.platform.support.http.Http
Generic access to HTTP. Requires an implementing plugin of type
Http or an active
HttpProviderDescriptor. Simplified interface akin to the Apache HTTP client.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract HttpClientCreates a default client instance.abstract HttpClientCreates a pooled client instance.abstract HttpPostcreatePost(String uri) Creates a POST request.static HttpReturns the Http instance.static voidsetInstance(Http http) Manually sets the instance.
-
Field Details
-
instance
-
-
Constructor Details
-
Http
public Http()
-
-
Method Details
-
getInstance
Returns the Http instance.- Returns:
- the instance
-
setInstance
Manually sets the instance. Shall not be needed, but may be required in some tests.- Parameters:
http- the Http instance
-
createPost
Creates a POST request.- Parameters:
uri- the URI to address- Returns:
- the post request
-
createClient
Creates a default client instance.- Returns:
- the client instance
-
createPooledClient
Creates a pooled client instance.- Returns:
- the client instance
-