/** * This method will detect if the request connected to a NTLM proxy * given the HttpContext provided to one of the HttpClient#execute() * methods. * * @param context the HttpContext given to the HttpClient at execution time * @return true if it connected to an NTLM proxy * @since 5.0 */ public static boolean detectNTLMProxy(HttpContext context) { return isProxyType(context, PROXY_NTLM_VALUE); }
boolean ntlmProxyFound = NTLMProxyDetector.detectNTLMProxy(httpContext); if (ntlmProxyFound && !hasForceNTLMProxyOption()) throw new BrowseFileTransferException("HttpClient Provider is not configured to support NTLM proxy authentication.", HttpClientOptions.NTLM_PROXY_RESPONSE_CODE); //$NON-NLS-1$ if (NTLMProxyDetector.detectSPNEGOProxy(httpContext)) throw new BrowseFileTransferException("HttpClient Provider does not support the use of SPNEGO proxy authentication."); //$NON-NLS-1$
boolean ntlmProxyFound = NTLMProxyDetector.detectNTLMProxy(httpContext); if (ntlmProxyFound && !hasForceNTLMProxyOption()) throw new BrowseFileTransferException("HttpClient Provider is not configured to support NTLM proxy authentication.", HttpClientOptions.NTLM_PROXY_RESPONSE_CODE); //$NON-NLS-1$ if (NTLMProxyDetector.detectSPNEGOProxy(httpContext)) throw new BrowseFileTransferException("HttpClient Provider does not support the use of SPNEGO proxy authentication."); //$NON-NLS-1$
boolean ntlmProxyFound = NTLMProxyDetector.detectNTLMProxy(httpContext); if (ntlmProxyFound && !hasForceNTLMProxyOption()) throw new IncomingFileTransferException("HttpClient Provider is not configured to support NTLM proxy authentication.", HttpClientOptions.NTLM_PROXY_RESPONSE_CODE); //$NON-NLS-1$ if (NTLMProxyDetector.detectSPNEGOProxy(httpContext)) throw new BrowseFileTransferException("HttpClient Provider does not support the use of SPNEGO proxy authentication."); //$NON-NLS-1$
/** * This method will detect if the request connected to a NTLM proxy * given the {@link HttpContext} provided to one of the {@link HttpClient#execute()} * methods. * * @param context the {@link HttpContext} given to the {@link HttpClient} at execution time * @return true if it connected to an NTLM proxy * @since 5.0 */ public static boolean detectNTLMProxy(HttpContext context) { return isProxyType(context, PROXY_NTLM_VALUE); }
boolean ntlmProxyFound = NTLMProxyDetector.detectNTLMProxy(httpContext); if (ntlmProxyFound && !hasForceNTLMProxyOption()) throw new IncomingFileTransferException("HttpClient Provider is not configured to support NTLM proxy authentication.", HttpClientOptions.NTLM_PROXY_RESPONSE_CODE); //$NON-NLS-1$ if (NTLMProxyDetector.detectSPNEGOProxy(httpContext)) throw new BrowseFileTransferException("HttpClient Provider does not support the use of SPNEGO proxy authentication."); //$NON-NLS-1$
/** * This method will detect if the request connected to a SPNEGO proxy * given the HttpContext provided to one of the HttpClient#execute() * methods. * * @param context the HttpContext given to the HttpClient at execution time * @return true if it connected to an SPNEGO proxy * @since 5.0 */ public static boolean detectSPNEGOProxy(HttpContext context) { return isProxyType(context, PROXY_SPNEGO_VALUE); } }
/** * This method will detect if the request connected to a SPNEGO proxy * given the {@link HttpContext} provided to one of the {@link HttpClient#execute()} * methods. * * @param context the {@link HttpContext} given to the {@link HttpClient} at execution time * @return true if it connected to an SPNEGO proxy * @since 5.0 */ public static boolean detectSPNEGOProxy(HttpContext context) { return isProxyType(context, PROXY_SPNEGO_VALUE); } }