public.javadoc.org.spincast.plugins.httpclient.IHttpRequestBuilder.html Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of spincast-website Show documentation
                Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
                
            
IHttpRequestBuilder (org.spincast:spincast-framework 0.9.21 API) 
org.spincast.plugins.httpclient
Interface IHttpRequestBuilder<T extends IHttpRequestBuilder<?>>
- 
- All Known Subinterfaces:
 
- IConnectRequestBuilder, IDeleteRequestBuilder, IEntitySenderRequestBuilderBase<T>, IGetRequestBuilder, IHeadRequestBuilder, IOptionsRequestBuilder, IPatchRequestBuilder, IPostRequestBuilder, IPutRequestBuilder, ITraceRequestBuilder, IWebsocketRequestBuilder
 
- All Known Implementing Classes:
 
- ConnectRequestBuilder, DeleteRequestBuilder, EntitySenderRequestBuilderBase, GetRequestBuilder, HeadRequestBuilder, HttpSpincastRequestBuilderBase, OptionsRequestBuilder, PatchRequestBuilder, PostRequestBuilder, PutRequestBuilder, SpincastHttpRequestBuilderBase, TraceRequestBuilder, WebsocketRequestBuilder
 
public interface IHttpRequestBuilder<T extends IHttpRequestBuilder<?>>
Base for all Http/Websocket request builders.
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods  
Modifier and Type 
Method and Description 
 
T 
addCookie(ICookie cookie)
Adds a cookie.
 
 
T 
addCookie(String name,
         String value)
Adds a cookie.
 
 
T 
addCookies(Collection<ICookie> cookies)
Adds some cookies.
 
 
T 
addHeaderValue(String key,
              String value)
Adds a value to the specified header.
 
 
T 
addHeaderValues(String key,
               List<String> values)
Adds some values to the specified header.
 
 
T 
disableSslCertificateErrors()
Disables SSL certificates errors (such as self-signed 
 certificate errors).
 
 
IHttpResponse 
send()
Sends the request and gets the HTTP response.
 
 
T 
setHeaders(Map<String,List<String>> headers)
Sets the headers.
 
 
T 
setHeaderValues(String key,
               List<String> values)
Sets the values of the specified header.
 
 
T 
setHttpAuthCredentials(String username,
                      String password)
Set HTTP authentication credentials.
 
 
T 
setHttpClientBuilder(org.spincast.shaded.org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Sets a specific HttpClientBuilder to use.
 
 
T 
setRequestConfig(org.spincast.shaded.org.apache.http.client.config.RequestConfig requestConfig)
Sets a custom RequestConfig to use.
 
 
 
 
- 
- 
Method Detail
- 
addHeaderValue
T addHeaderValue(String key,
                 String value)
Adds a value to the specified header. Existing values will
 be kept.
 
- 
addHeaderValues
T addHeaderValues(String key,
                  List<String> values)
Adds some values to the specified header. Existing values will
 be kept.
 
- 
setHeaders
T setHeaders(Map<String,List<String>> headers)
Sets the headers. Existing headers will be overwritten.
 
- 
setHeaderValues
T setHeaderValues(String key,
                  List<String> values)
Sets the values of the specified header. Existing values 
 of this header will be overwritten.
 
- 
addCookies
T addCookies(Collection<ICookie> cookies)
Adds some cookies.
 
- 
setRequestConfig
T setRequestConfig(org.spincast.shaded.org.apache.http.client.config.RequestConfig requestConfig)
Sets a custom RequestConfig to use. If not provided,
 a default one will be used.
 
- 
setHttpClientBuilder
T setHttpClientBuilder(org.spincast.shaded.org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Sets a specific HttpClientBuilder to use. If not provided,
 a default one will be used.
 
- 
disableSslCertificateErrors
T disableSslCertificateErrors()
Disables SSL certificates errors (such as self-signed 
 certificate errors).
 
 SSL certificate errors are not disabled by default.
 
 Be sure you know what you are doing if you disable this! It may lead to
 some security concerns.
 
- 
setHttpAuthCredentials
T setHttpAuthCredentials(String username,
                         String password)
Set HTTP authentication credentials.
 
- 
send
IHttpResponse send()
Sends the request and gets the HTTP response.
 
 
 
Copyright © 2016. All rights reserved.
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy