Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 34bb59f6718b1e06996e381130388896f192d9bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*******************************************************************************
 * Copyright (c) 2008 compeople AG and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * 	compeople AG (Stefan Liebig) - initial API and implementation
 *******************************************************************************/
package org.eclipse.core.internal.net.proxy.win32.winhttp;

/**
 * Wrapper for Win32 WINHTTP_AUTOPROXY_OPTIONS Structure.
 * <p>
 * The fields will be read by the jni glue code.
 * </p>
 */
public class WinHttpAutoProxyOptions {

	// Flags for WINHTTP_AUTOPROXY_OPTIONS::dwFlags
	public static final int WINHTTP_AUTOPROXY_AUTO_DETECT= 0x00000001;

	public static final int WINHTTP_AUTOPROXY_CONFIG_URL= 0x00000002;

	public static final int WINHTTP_AUTOPROXY_RUN_INPROCESS= 0x00010000;

	public static final int WINHTTP_AUTOPROXY_RUN_OUTPROCESS_ONLY= 0x00020000;

	// Flags for WINHTTP_AUTOPROXY_OPTIONS::dwAutoDetectFlags
	public static final int WINHTTP_AUTO_DETECT_TYPE_DHCP= 0x00000001;

	public static final int WINHTTP_AUTO_DETECT_TYPE_DNS_A= 0x00000002;

	public int flags;

	public int autoDetectFlags;

	public String autoConfigUrl;

	public String reservedPointer;

	public int reservedInt;

	public boolean autoLogonIfChallenged;

	/**
	 * @param autoConfigUrl the autoConfigUrl to set
	 */
	public void setAutoConfigUrl(String autoConfigUrl) {
		this.autoConfigUrl= autoConfigUrl;
	}

	/**
	 * @param autoDetectFlags the autoDetectFlags to set
	 */
	public void setAutoDetectFlags(int autoDetectFlags) {
		this.autoDetectFlags= autoDetectFlags;
	}

	/**
	 * @param autoLogonIfChallenged the autoLogonIfChallenged to set
	 */
	public void setAutoLogonIfChallenged(boolean autoLogonIfChallenged) {
		this.autoLogonIfChallenged= autoLogonIfChallenged;
	}

	/**
	 * @param flags the flags to set
	 */
	public void setFlags(int flags) {
		this.flags= flags;
	}

}

Back to the top