Package io.jans.as.server.service.net
Class HttpService
- java.lang.Object
-
- io.jans.as.server.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpService()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
constructServerUrl(jakarta.servlet.http.HttpServletRequest request)
Deprecated.void
consume(org.apache.http.HttpResponse httpResponse)
Deprecated.String
convertEntityToString(byte[] responseBytes)
Deprecated.String
convertEntityToString(byte[] responseBytes, String charsetName)
Deprecated.String
convertEntityToString(byte[] responseBytes, Charset charset)
Deprecated.String
encodeBase64(String value)
Deprecated.String
encodeUrl(String value)
Deprecated.HttpServiceResponse
executeGet(org.apache.http.client.HttpClient httpClient, String requestUri)
Deprecated.HttpServiceResponse
executeGet(org.apache.http.client.HttpClient httpClient, String requestUri, Map<String,String> headers)
Deprecated.HttpServiceResponse
executePost(org.apache.http.client.HttpClient httpClient, String uri, String authData, String postData, org.apache.http.entity.ContentType contentType)
Deprecated.HttpServiceResponse
executePost(org.apache.http.client.HttpClient httpClient, String uri, String authData, Map<String,String> headers, String postData)
Deprecated.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
getHttpsClient()
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
getHttpsClientTrustAll()
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.
-
-
-
Method Detail
-
init
@PostConstruct public void 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 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 HttpServiceResponse executePost(org.apache.http.client.HttpClient httpClient, String uri, String authData, Map<String,String> headers, String postData)
Deprecated.
-
executePost
public HttpServiceResponse executePost(org.apache.http.client.HttpClient httpClient, String uri, String authData, String postData, org.apache.http.entity.ContentType contentType)
Deprecated.
-
executeGet
public HttpServiceResponse executeGet(org.apache.http.client.HttpClient httpClient, String requestUri, Map<String,String> headers)
Deprecated.
-
executeGet
public HttpServiceResponse executeGet(org.apache.http.client.HttpClient httpClient, String requestUri)
Deprecated.
-
getResponseContent
public byte[] getResponseContent(org.apache.http.HttpResponse httpResponse) throws IOException
Deprecated.- Throws:
IOException
-
consume
public void consume(org.apache.http.HttpResponse httpResponse) throws IOException
Deprecated.- Throws:
IOException
-
convertEntityToString
public String convertEntityToString(byte[] responseBytes)
Deprecated.
-
convertEntityToString
public String convertEntityToString(byte[] responseBytes, Charset charset)
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
public String constructServerUrl(jakarta.servlet.http.HttpServletRequest request)
Deprecated.
-
-