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.
- Author:
- Markus Bernhardt, Copyright 2016
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTagging interface to indicate the address of an instance of the Structure type is to be used within aStructuredefinition rather than nesting the full Structure contents.static classTagging interface to indicate the value of an instance of theStructuretype is to be used in function invocations rather than its address.Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptioncom.sun.jna.platform.win32.WinDef.DWORDUnsigned long integer value that contains the access type.com.sun.jna.platform.win32.WTypes.LPWSTRPointer to a string value that contains the proxy server list.com.sun.jna.platform.win32.WTypes.LPWSTRPointer to a string value that contains the proxy bypass list.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreate WinHttpProxyInfo structure.WinHttpProxyInfo(com.sun.jna.Pointer pointer) Create WinHttpProxyInfo structure cast onto pre-allocated memory. -
Method Summary
Modifier and TypeMethodDescriptionReturn 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 Details
-
dwAccessType
public com.sun.jna.platform.win32.WinDef.DWORD dwAccessTypeUnsigned 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 lpszProxyPointer to a string value that contains the proxy server list. -
lpszProxyBypass
public com.sun.jna.platform.win32.WTypes.LPWSTR lpszProxyBypassPointer to a string value that contains the proxy bypass list.
-
-
Constructor Details
-
WinHttpProxyInfo
public WinHttpProxyInfo()Create WinHttpProxyInfo structure. -
WinHttpProxyInfo
public WinHttpProxyInfo(com.sun.jna.Pointer pointer) Create WinHttpProxyInfo structure cast onto pre-allocated memory.- Parameters:
pointer- pointer to pre-allocated memory
-
-
Method Details
-
getFieldOrder
Return this Structure's field names in their proper order. For example,
IMPORTANT When deriving from an existing Structure subclass, ensure that you augment the list provided by the superclass, e.g.protected List getFieldOrder() { return Arrays.asList(new String[] { ... }); }
Field order must be explicitly indicated, since the field order as returned byprotected 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:
getFieldOrderin classcom.sun.jna.Structure- Returns:
- ordered list of field names
-