Class CustomWrapperInputParameterHttpRouteValue
java.lang.Object
com.denodo.vdb.engine.customwrapper.input.value.CustomWrapperInputParameterValue
com.denodo.vdb.engine.customwrapper.input.value.CustomWrapperInputParameterRouteValue
com.denodo.vdb.engine.customwrapper.input.value.CustomWrapperInputParameterHttpRouteValue
public final class CustomWrapperInputParameterHttpRouteValue
extends CustomWrapperInputParameterRouteValue
Defines the actual value returned by a
CustomWrapperInputParameter
of
HTTP route type.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration of the authentication methods aCustomWrapperInputParameter
of type HTTP route can use.static enum
-
Field Summary
Fields inherited from class com.denodo.vdb.engine.customwrapper.input.value.CustomWrapperInputParameterRouteValue
route
-
Constructor Summary
ConstructorsConstructorDescriptionCustomWrapperInputParameterHttpRouteValue
(String name, com.denodo.parser.connection.HTTPRoute httpRoute) -
Method Summary
Modifier and TypeMethodDescriptionReturns the map with the HTTP headers used in the HTTP route.Returns the authentication used in the HTTP server.Returns the domain used for authentication in the HTTP server.Returns the password used for authentication in the HTTP server.Returns the login used for authentication in the HTTP server.Returns the Mutual authentication credentials in the HTTP route.Returns the OAuth 1.0a credentials in the HTTP route.Returns the OAuth 2.0 credentials in the HTTP route.Returns the POST body used in the HTTP route.Returns the MIME of the POST body used in the HTTP route.Returns the host of the proxy used in the HTTP route.Returns the password used for authentication in the proxy of the HTTP route.int
Returns the port of the proxy used in the HTTP route.Returns the user used for authentication in the proxy of the HTTP route.getURL()
Returns the HTTP URL.void
void
Sets the HTTP original URL endpoint.void
setBodyFormParameters
(List<com.denodo.util.Pair<String, String>> formParameters) void
setHeaders
(Map<String, String> headers) Sets the map with the HTTP headers used in the HTTP route.void
setHttpAuthentication
(String user, String password, String domain, CustomWrapperInputParameterHttpRouteValue.AUTHENTICATION authentication, boolean useSpnegoToken) Sets the authentication used in the HTTP server.void
void
setMutualAuthentication
(CustomWrapperInputParameterMutualAuthentication mutualAuthentication) Sets the Mutual TLS credentials in the HTTP route.void
setOAuth10aAuthentication
(CustomWrapperInputParameterOAuth10aAuthentication oAuth10aAuthentication) Sets the OAuth 1.0a credentials in the HTTP route.void
setOAuth20Authentication
(CustomWrapperInputParameterOAuth20Authentication oAuth20Authentication) Sets the OAuth 2.0 credentials in the HTTP route.void
setPostBody
(String postBody) Returns the POST body used in the HTTP route.void
setPostBodyMime
(String postBodyMime) Sets the MIME of the POST body used in the HTTP route.void
setProxyAuthentication
(String user, String password) Sets the authentication used in the proxy of the HTTP routevoid
setProxyConfiguration
(String host, int port) Sets the proxy configuration in the HTTP routevoid
Sets the HTTP URL.Methods inherited from class com.denodo.vdb.engine.customwrapper.input.value.CustomWrapperInputParameterRouteValue
getInputStream, getRoute, getRouteType, getValue, toString
Methods inherited from class com.denodo.vdb.engine.customwrapper.input.value.CustomWrapperInputParameterValue
getName
-
Constructor Details
-
CustomWrapperInputParameterHttpRouteValue
public CustomWrapperInputParameterHttpRouteValue(String name, com.denodo.parser.connection.HTTPRoute httpRoute)
-
-
Method Details
-
getURL
Returns the HTTP URL.- Returns:
- the HTTP URL.
-
setURL
Sets the HTTP URL.- Parameters:
url
- the HTTP URL.
-
resetToOriginalURL
public void resetToOriginalURL()Sets the HTTP original URL endpoint. -
setHTTPMethod
-
resetToOriginalHTTPMethod
public void resetToOriginalHTTPMethod() -
getHttpUser
Returns the login used for authentication in the HTTP server.- Returns:
- the login used for authentication in the HTTP server.
-
getHttpPassword
Returns the password used for authentication in the HTTP server.- Returns:
- the password used for authentication in the HTTP server.
-
getHttpDomain
Returns the domain used for authentication in the HTTP server.- Returns:
- the domain used for authentication in the HTTP server.
-
getHttpAuthentication
Returns the authentication used in the HTTP server.- Returns:
- the authentication used in the HTTP server.
-
setHttpAuthentication
public void setHttpAuthentication(String user, String password, String domain, CustomWrapperInputParameterHttpRouteValue.AUTHENTICATION authentication, boolean useSpnegoToken) Sets the authentication used in the HTTP server.- Parameters:
user
- the login used for authentication in the HTTP server.password
- the password used for authentication in the HTTP server.domain
- the domain used for authentication in the HTTP server.authentication
- the authentication type in the HTTP server
-
getHeaders
Returns the map with the HTTP headers used in the HTTP route.- Returns:
- the map with the HTTP headers used in the HTTP route.
-
setHeaders
Sets the map with the HTTP headers used in the HTTP route.- Parameters:
headers
- the map with the HTTP headers used in the HTTP route.
-
getProxyHost
Returns the host of the proxy used in the HTTP route.- Returns:
- the host of the proxy used in the HTTP route.
-
getProxyPort
public int getProxyPort()Returns the port of the proxy used in the HTTP route.- Returns:
- the port of the proxy used in the HTTP route.
-
setProxyConfiguration
Sets the proxy configuration in the HTTP route- Parameters:
host
- the host of the proxy used in the HTTP route.port
- the port of the proxy used in the HTTP route.
-
getProxyUser
Returns the user used for authentication in the proxy of the HTTP route.- Returns:
- the user used for authentication in the proxy of the HTTP route.
-
getProxyPassword
Returns the password used for authentication in the proxy of the HTTP route.- Returns:
- the password used for authentication in the proxy of the HTTP route.
-
setProxyAuthentication
Sets the authentication used in the proxy of the HTTP route- Parameters:
user
- the user used for authentication in the proxy of the HTTP route.password
- the password used for authentication in the proxy of the HTTP route.
-
getPostBody
Returns the POST body used in the HTTP route.- Returns:
- the POST body used in the HTTP route.
-
setPostBody
Returns the POST body used in the HTTP route.- Parameters:
postBody
- the POST body used in the HTTP route.
-
getPostBodyMime
Returns the MIME of the POST body used in the HTTP route.- Returns:
- the MIME of the POST body used in the HTTP route.
-
setPostBodyMime
Sets the MIME of the POST body used in the HTTP route.- Parameters:
postBodyMime
- the MIME of the POST body used in the HTTP route.
-
setBodyFormParameters
-
getBodyFormParameters
-
getOAuth10aAuthentication
Returns the OAuth 1.0a credentials in the HTTP route.- Returns:
- OAuth 1.0a credentials or
null
if OAuth 1.0a credentials are not specified.
-
setOAuth10aAuthentication
public void setOAuth10aAuthentication(CustomWrapperInputParameterOAuth10aAuthentication oAuth10aAuthentication) Sets the OAuth 1.0a credentials in the HTTP route.- Parameters:
oAuth10aAuthentication
- OAuth 1.0a credentials.
-
getOAuth20Authentication
Returns the OAuth 2.0 credentials in the HTTP route.- Returns:
- The OAuth 2.0 credentials or
null
if OAuth 2.0 credentials are not specified.
-
setOAuth20Authentication
public void setOAuth20Authentication(CustomWrapperInputParameterOAuth20Authentication oAuth20Authentication) Sets the OAuth 2.0 credentials in the HTTP route.- Parameters:
oAuth20Authentication
- OAuth 2.0 credentials.
-
getMutualAuthentication
Returns the Mutual authentication credentials in the HTTP route.- Returns:
- The Mutual TLS credentials or
null
if Mutual TLS credentials are not specified.
-
setMutualAuthentication
public void setMutualAuthentication(CustomWrapperInputParameterMutualAuthentication mutualAuthentication) Sets the Mutual TLS credentials in the HTTP route.- Parameters:
mutualAuthentication
- Mutual TLS credentials.
-