Package org.apereo.cas.util
Class HttpUtils
- java.lang.Object
-
- org.apereo.cas.util.HttpUtils
-
public class HttpUtils extends java.lang.ObjectThis isHttpUtils.- Since:
- 5.2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpUtils.HttpExecutionRequest
-
Constructor Summary
Constructors Constructor Description HttpUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(org.apache.http.HttpResponse response)Close the response.org.springframework.http.HttpHeaderscreateBasicAuthHeaders(java.lang.String basicAuthUser, java.lang.String basicAuthPassword)Create headers.org.springframework.http.HttpHeaderscreateBasicAuthHeaders(java.lang.String basicAuthUser, java.lang.String basicAuthPassword, java.lang.String basicCharset)Create headers org .org.apache.http.HttpResponseexecute(HttpUtils.HttpExecutionRequest execution)Execute http request and produce a response.
-
-
-
Method Detail
-
execute
public org.apache.http.HttpResponse execute(HttpUtils.HttpExecutionRequest execution)
Execute http request and produce a response.- Parameters:
execution- the request- Returns:
- the http response
-
close
public void close(org.apache.http.HttpResponse response)
Close the response.- Parameters:
response- the response to close
-
createBasicAuthHeaders
public org.springframework.http.HttpHeaders createBasicAuthHeaders(java.lang.String basicAuthUser, java.lang.String basicAuthPassword)Create headers.- Parameters:
basicAuthUser- the basic auth userbasicAuthPassword- the basic auth password- Returns:
- http headers
-
createBasicAuthHeaders
public org.springframework.http.HttpHeaders createBasicAuthHeaders(java.lang.String basicAuthUser, java.lang.String basicAuthPassword, java.lang.String basicCharset)Create headers org . springframework . http . http headers.- Parameters:
basicAuthUser- the basic auth userbasicAuthPassword- the basic auth passwordbasicCharset- The charset used to encode auth header- Returns:
- the org . springframework . http . http headers
-
-