Package org.gluu.oxauth.service.net
Class HttpService
java.lang.Object
org.gluu.oxauth.service.net.HttpService
- All Implemented Interfaces:
Serializable
@ApplicationScoped
@Named
@Deprecated
public class HttpService
extends Object
implements Serializable
Deprecated.
Provides operations with http requests
- Author:
- Yuriy Movchan Date: 02/05/2013
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructServerUrl
(javax.servlet.http.HttpServletRequest request) Deprecated.void
consume
(org.apache.http.HttpResponse httpResponse) Deprecated.convertEntityToString
(byte[] responseBytes) Deprecated.convertEntityToString
(byte[] responseBytes, String charsetName) Deprecated.convertEntityToString
(byte[] responseBytes, Charset charset) Deprecated.encodeBase64
(String value) Deprecated.Deprecated.org.gluu.model.net.HttpServiceResponse
executeGet
(org.apache.http.client.HttpClient httpClient, String requestUri) Deprecated.org.gluu.model.net.HttpServiceResponse
executeGet
(org.apache.http.client.HttpClient httpClient, String requestUri, Map<String, String> headers) Deprecated.org.gluu.model.net.HttpServiceResponse
executePost
(org.apache.http.client.HttpClient httpClient, String uri, String authData, String postData, org.apache.http.entity.ContentType contentType) Deprecated.org.gluu.model.net.HttpServiceResponse
executePost
(org.apache.http.client.HttpClient httpClient, String uri, String authData, Map<String, String> headers, String postData) Deprecated.org.gluu.model.net.HttpServiceResponse
executePost
(org.apache.http.client.HttpClient httpClient, String uri, String authData, Map<String, String> headers, String postData, org.apache.http.entity.ContentType contentType) Deprecated.org.apache.http.client.HttpClient
Deprecated.org.apache.http.client.HttpClient
getHttpsClient
(String trustStoreType, String trustStorePath, String trustStorePassword) Deprecated.org.apache.http.client.HttpClient
getHttpsClient
(String trustStoreType, String trustStorePath, String trustStorePassword, String keyStoreType, String keyStorePath, String keyStorePassword) Deprecated.org.apache.http.client.HttpClient
Deprecated.byte[]
getResponseContent
(org.apache.http.HttpResponse httpResponse) Deprecated.void
init()
Deprecated.boolean
isContentTypeXml
(org.apache.http.HttpResponse httpResponse) Deprecated.boolean
isResponseStastusCodeOk
(org.apache.http.HttpResponse httpResponse) Deprecated.
-
Constructor Details
-
HttpService
public HttpService()Deprecated.
-
-
Method Details
-
init
Deprecated. -
getHttpsClientTrustAll
public org.apache.http.client.HttpClient getHttpsClientTrustAll()Deprecated. -
getHttpsClient
public org.apache.http.client.HttpClient getHttpsClient()Deprecated. -
getHttpsClient
public org.apache.http.client.HttpClient getHttpsClient(String trustStoreType, String trustStorePath, String trustStorePassword) Deprecated. -
getHttpsClient
public org.apache.http.client.HttpClient getHttpsClient(String trustStoreType, String trustStorePath, String trustStorePassword, String keyStoreType, String keyStorePath, String keyStorePassword) Deprecated. -
executePost
public org.gluu.model.net.HttpServiceResponse executePost(org.apache.http.client.HttpClient httpClient, String uri, String authData, Map<String, String> headers, String postData, org.apache.http.entity.ContentType contentType) Deprecated. -
executePost
public org.gluu.model.net.HttpServiceResponse executePost(org.apache.http.client.HttpClient httpClient, String uri, String authData, Map<String, String> headers, String postData) Deprecated. -
executePost
public org.gluu.model.net.HttpServiceResponse executePost(org.apache.http.client.HttpClient httpClient, String uri, String authData, String postData, org.apache.http.entity.ContentType contentType) Deprecated. -
encodeBase64
Deprecated. -
encodeUrl
Deprecated. -
executeGet
public org.gluu.model.net.HttpServiceResponse executeGet(org.apache.http.client.HttpClient httpClient, String requestUri, Map<String, String> headers) Deprecated. -
executeGet
public org.gluu.model.net.HttpServiceResponse executeGet(org.apache.http.client.HttpClient httpClient, String requestUri) throws org.apache.http.client.ClientProtocolException, IOException Deprecated.- Throws:
org.apache.http.client.ClientProtocolException
IOException
-
getResponseContent
Deprecated.- Throws:
IOException
-
consume
Deprecated.- Throws:
IOException
-
convertEntityToString
Deprecated. -
convertEntityToString
Deprecated. -
convertEntityToString
public String convertEntityToString(byte[] responseBytes, String charsetName) throws UnsupportedEncodingException Deprecated.- Throws:
UnsupportedEncodingException
-
isResponseStastusCodeOk
public boolean isResponseStastusCodeOk(org.apache.http.HttpResponse httpResponse) Deprecated. -
isContentTypeXml
public boolean isContentTypeXml(org.apache.http.HttpResponse httpResponse) Deprecated. -
constructServerUrl
Deprecated.
-