io.cloudslang.content.httpclient.HttpComponents Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cs-http-client Show documentation
Show all versions of cs-http-client Show documentation
An HTTP client for CloudSlang
/*
* (c) Copyright 2017 EntIT Software LLC, a Micro Focus company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.cloudslang.content.httpclient;
import org.apache.http.client.CookieStore;
import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.client.protocol.HttpClientContext;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import java.net.URI;
/**
* Created with IntelliJ IDEA.
* User: davidmih
* Date: 10/1/14
*/
public class HttpComponents {
private CloseableHttpClient closeableHttpClient;
private HttpRequestBase httpRequestBase;
private HttpClientContext httpClientContext;
private PoolingHttpClientConnectionManager connManager;
private CookieStore cookieStore;
private URI uri;
private HttpClientBuilder httpClientBuilder;
public CloseableHttpClient getCloseableHttpClient() {
return closeableHttpClient;
}
public void setCloseableHttpClient(CloseableHttpClient closeableHttpClient) {
this.closeableHttpClient = closeableHttpClient;
}
public HttpRequestBase getHttpRequestBase() {
return httpRequestBase;
}
public void setHttpRequestBase(HttpRequestBase httpRequestBase) {
this.httpRequestBase = httpRequestBase;
}
public HttpClientContext getHttpClientContext() {
return httpClientContext;
}
public void setHttpClientContext(HttpClientContext httpClientContext) {
this.httpClientContext = httpClientContext;
}
public PoolingHttpClientConnectionManager getConnManager() {
return connManager;
}
public void setConnManager(PoolingHttpClientConnectionManager connManager) {
this.connManager = connManager;
}
public CookieStore getCookieStore() {
return cookieStore;
}
public void setCookieStore(CookieStore cookieStore) {
this.cookieStore = cookieStore;
}
public URI getUri() {
return uri;
}
public void setUri(URI uri) {
this.uri = uri;
}
public void setHttpClientBuilder(HttpClientBuilder httpClientBuilder) {
this.httpClientBuilder = httpClientBuilder;
}
public HttpClientBuilder getHttpClientBuilder() {
return httpClientBuilder;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy