Class WinHttpProxyInfo
- java.lang.Object
-
- com.sun.jna.Structure
-
- com.github.markusbernhardt.proxy.jna.win.WinHttpProxyInfo
-
- Direct Known Subclasses:
WinHttpCurrentUserIEProxyConfig.ByReference
,WinHttpCurrentUserIEProxyConfig.ByValue
,WinHttpProxyInfo.ByReference
,WinHttpProxyInfo.ByValue
public class WinHttpProxyInfo extends com.sun.jna.Structure
The WINHTTP_PROXY_INFO structure contains the session or default proxy configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WinHttpProxyInfo.ByReference
Tagging interface to indicate the address of an instance of the Structure type is to be used within aStructure
definition rather than nesting the full Structure contents.static class
WinHttpProxyInfo.ByValue
Tagging interface to indicate the value of an instance of theStructure
type is to be used in function invocations rather than its address.
-
Field Summary
Fields Modifier and Type Field Description com.sun.jna.platform.win32.WinDef.DWORD
dwAccessType
Unsigned long integer value that contains the access type.com.sun.jna.platform.win32.WTypes.LPWSTR
lpszProxy
Pointer to a string value that contains the proxy server list.com.sun.jna.platform.win32.WTypes.LPWSTR
lpszProxyBypass
Pointer to a string value that contains the proxy bypass list.
-
Constructor Summary
Constructors Constructor Description WinHttpProxyInfo()
Create WinHttpProxyInfo structure.WinHttpProxyInfo(com.sun.jna.Pointer pointer)
Create WinHttpProxyInfo structure cast onto pre-allocated memory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>
getFieldOrder()
Return this Structure's field names in their proper order.-
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
-
-
-
Field Detail
-
dwAccessType
public com.sun.jna.platform.win32.WinDef.DWORD dwAccessType
Unsigned long integer value that contains the access type. This can be one of the following values:- WINHTTP_ACCESS_TYPE_NO_PROXY
- WINHTTP_ACCESS_TYPE_DEFAULT_PROXY
- WINHTTP_ACCESS_TYPE_NAMED_PROXY
-
lpszProxy
public com.sun.jna.platform.win32.WTypes.LPWSTR lpszProxy
Pointer to a string value that contains the proxy server list.
-
lpszProxyBypass
public com.sun.jna.platform.win32.WTypes.LPWSTR lpszProxyBypass
Pointer to a string value that contains the proxy bypass list.
-
-
Method Detail
-
getFieldOrder
protected java.util.List<java.lang.String> getFieldOrder()
Return this Structure's field names in their proper order. For example,protected List getFieldOrder() { return Arrays.asList(new String[] { ... }); }
protected List getFieldOrder() { List fields = new ArrayList(super.getFieldOrder()); fields.addAll(Arrays.asList(new String[] { ... })); return fields; }
Class.getFields()
is not guaranteed to be predictable.- Overrides:
getFieldOrder
in classcom.sun.jna.Structure
- Returns:
- ordered list of field names
-
-