Package org.apache.camel.http.common
Class HttpConfiguration
java.lang.Object
org.apache.camel.http.common.HttpConfiguration
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
long
Gets oauth 2 resource indicator.int
int
boolean
void
setAuthDomain
(String authDomain) Authentication domain to use with NTMLvoid
setAuthHost
(String authHost) Authentication host to use with NTMLvoid
setAuthMethod
(String authMethod) Authentication methods allowed to use as a comma separated list of values Basic, Digest or NTLM.void
setAuthMethodPriority
(String authMethodPriority) Which authentication method to prioritize to use, either as Basic, Digest or NTLM.void
setAuthPassword
(String authPassword) Authentication passwordvoid
setAuthUsername
(String authUsername) Authentication usernamevoid
setOauth2CachedTokensDefaultExpirySeconds
(long oauth2CachedTokensDefaultExpirySeconds) Default expiration time for cached OAuth2 tokens, in seconds.void
setOauth2CachedTokensExpirationMarginSeconds
(long oauth2CachedTokensExpirationMarginSeconds) Amount of time which is deducted from OAuth2 tokens expiry time to compensate for the time it takes OAuth2 Token Endpoint to send the token over http, in seconds.void
setOauth2CacheTokens
(boolean oauth2CacheTokens) Whether to cache OAuth2 client tokens.void
setOauth2ClientId
(String oauth2ClientId) OAuth2 Client idvoid
setOauth2ClientSecret
(String oauth2ClientSecret) OAuth2 Client secretvoid
setOauth2ResourceIndicator
(String oauth2ResourceIndicator) Sets oauth 2 resource indicator.void
setOauth2Scope
(String oauth2Scope) OAuth2 scopevoid
setOauth2TokenEndpoint
(String oauth2TokenEndpoint) OAuth2 token endpointvoid
setProxyAuthDomain
(String proxyAuthDomain) Proxy authentication domain to use with NTMLvoid
setProxyAuthHost
(String proxyAuthHost) Proxy authentication hostvoid
setProxyAuthMethod
(String proxyAuthMethod) Proxy authentication method to usevoid
setProxyAuthPassword
(String proxyAuthPassword) Proxy authentication passwordvoid
setProxyAuthPort
(int proxyAuthPort) Proxy authentication portvoid
setProxyAuthScheme
(String proxyAuthScheme) Proxy authentication scheme to usevoid
setProxyAuthUsername
(String proxyAuthUsername) Proxy authentication usernamevoid
setProxyHost
(String proxyHost) Proxy hostname to usevoid
setProxyPort
(int proxyPort) Proxy port to use
-
Constructor Details
-
HttpConfiguration
public HttpConfiguration()
-
-
Method Details
-
getAuthMethod
-
setAuthMethod
Authentication methods allowed to use as a comma separated list of values Basic, Digest or NTLM. -
getAuthMethodPriority
-
setAuthMethodPriority
Which authentication method to prioritize to use, either as Basic, Digest or NTLM. -
getAuthUsername
-
setAuthUsername
Authentication username -
getAuthPassword
-
setAuthPassword
Authentication password -
getAuthDomain
-
setAuthDomain
Authentication domain to use with NTML -
getAuthHost
-
setAuthHost
Authentication host to use with NTML -
getProxyAuthScheme
-
setProxyAuthScheme
Proxy authentication scheme to use -
getProxyAuthMethod
-
setProxyAuthMethod
Proxy authentication method to use -
getProxyAuthUsername
-
setProxyAuthUsername
Proxy authentication username -
getProxyAuthPassword
-
setProxyAuthPassword
Proxy authentication password -
getProxyAuthDomain
-
setProxyAuthDomain
Proxy authentication domain to use with NTML -
getProxyAuthHost
-
setProxyAuthHost
Proxy authentication host -
getProxyAuthPort
public int getProxyAuthPort() -
setProxyAuthPort
public void setProxyAuthPort(int proxyAuthPort) Proxy authentication port -
getProxyHost
-
setProxyHost
Proxy hostname to use -
getProxyPort
public int getProxyPort() -
setProxyPort
public void setProxyPort(int proxyPort) Proxy port to use -
getOauth2ClientId
-
setOauth2ClientId
OAuth2 Client id -
getOauth2ClientSecret
-
setOauth2ClientSecret
OAuth2 Client secret -
getOauth2TokenEndpoint
-
setOauth2TokenEndpoint
OAuth2 token endpoint -
getOauth2Scope
-
setOauth2Scope
OAuth2 scope -
isOauth2CacheTokens
public boolean isOauth2CacheTokens() -
setOauth2CacheTokens
public void setOauth2CacheTokens(boolean oauth2CacheTokens) Whether to cache OAuth2 client tokens. -
getOauth2CachedTokensDefaultExpirySeconds
public long getOauth2CachedTokensDefaultExpirySeconds() -
setOauth2CachedTokensDefaultExpirySeconds
public void setOauth2CachedTokensDefaultExpirySeconds(long oauth2CachedTokensDefaultExpirySeconds) Default expiration time for cached OAuth2 tokens, in seconds. Used if token response does not contain 'expires_in' field. -
getOauth2CachedTokensExpirationMarginSeconds
public long getOauth2CachedTokensExpirationMarginSeconds() -
setOauth2CachedTokensExpirationMarginSeconds
public void setOauth2CachedTokensExpirationMarginSeconds(long oauth2CachedTokensExpirationMarginSeconds) Amount of time which is deducted from OAuth2 tokens expiry time to compensate for the time it takes OAuth2 Token Endpoint to send the token over http, in seconds. Set this parameter to high value if you OAuth2 Token Endpoint answers slowly or you tokens expire quickly. If you set this parameter to too small value, you can get 4xx http errors because camel will think that the received token is still valid, while in reality the token is expired for the Authentication server. -
getOauth2ResourceIndicator
Gets oauth 2 resource indicator.- Returns:
- the oauth 2 resource indicator
-
setOauth2ResourceIndicator
Sets oauth 2 resource indicator.- Parameters:
oauth2ResourceIndicator
- the oauth 2 resource indicator
-