private static HttpClientInputs setCommonHttpInputs ( HttpClientInputs httpClientInputs , URL url , WSManRequestInputs wsManRequestInputs ) throws MalformedURLException { httpClientInputs . setUrl ( url . toString ( ) ) ; httpClientInputs . setUsername ( wsManRequestInputs . getUsername ( ) ) ; httpClientInputs . setPassword ( wsManRequestInputs . getPassword ( ) ) ; httpClientInputs . setAuthType ( wsManRequestInputs . getAuthType ( ) ) ; httpClientInputs . setKerberosConfFile ( wsManRequestInputs . getKerberosConfFile ( ) ) ; httpClientInputs . setKerberosLoginConfFile ( wsManRequestInputs . getKerberosLoginConfFile ( ) ) ; httpClientInputs . setKerberosSkipPortCheck ( wsManRequestInputs . getKerberosSkipPortForLookup ( ) ) ; httpClientInputs . setTrustAllRoots ( wsManRequestInputs . getTrustAllRoots ( ) ) ; httpClientInputs . setX509HostnameVerifier ( wsManRequestInputs . getX509HostnameVerifier ( ) ) ; httpClientInputs . setProxyHost ( wsManRequestInputs . getProxyHost ( ) ) ; httpClientInputs . setProxyPort ( wsManRequestInputs . getProxyPort ( ) ) ; httpClientInputs . setProxyUsername ( wsManRequestInputs . getProxyUsername ( ) ) ; httpClientInputs . setProxyPassword ( wsManRequestInputs . getProxyPassword ( ) ) ; httpClientInputs . setKeystore ( wsManRequestInputs . getKeystore ( ) ) ; httpClientInputs . setKeystorePassword ( wsManRequestInputs . getKeystorePassword ( ) ) ; httpClientInputs . setTrustKeystore ( wsManRequestInputs . getTrustKeystore ( ) ) ; httpClientInputs . setTrustPassword ( wsManRequestInputs . getTrustPassword ( ) ) ; String headers = httpClientInputs . getHeaders ( ) ; if ( StringUtils . isEmpty ( headers ) ) { httpClientInputs . setHeaders ( CONTENT_TYPE_HEADER ) ; } else { httpClientInputs . setHeaders ( headers + NEW_LINE_SEPARATOR + CONTENT_TYPE_HEADER ) ; } httpClientInputs . setMethod ( HttpPost . METHOD_NAME ) ; return httpClientInputs ; }
Configures the HttpClientInputs object with the most common http parameters .