Package com.iizix.prop
Class SocketCommProps
- All Implemented Interfaces:
- EventListener,- IGProp<GProp<?>[]>,- IPropCnr,- Cloneable
- Direct Known Subclasses:
- TelnetCommProps,- WebSocketCommProps
This property container contains all properties required for a Socket (NIO) connection using Proxy, WebSocket, SSL, etc, required by the SocketProp property.
- Author:
- Christopher Mindus
- Field Summary- Fields inherited from class com.iizix.prop.PropCnr- EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID- Fields inherited from class com.iizix.prop.GProp- GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2- Fields inherited from interface com.iizix.prop.IGProp- EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_INCLUDE_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
- Constructor SummaryConstructorsConstructorDescriptionCreates the socket property container without a name.- SocketCommProps- (Atom propertyAtom) Creates the socket property container with the specified name.
- Method SummaryModifier and TypeMethodDescription- clone()Clone method overridden in order not to clone the proxy password.Creates or gets the secure properties.- booleanChecks if host name resolve is enabled or if the host address should be returned (for performance reasons) for a call to e.g.Gets the bind address for the port, i.e.- getHost()Gets the destination host name or IP address for the socket destination.- int- getPort()Gets the host port for the socket.Gets the proxy host name if any.- intGets the proxy port if any.Gets the authentication password for HTTP proxy if required.- void- getProxyPW- (String password) Sets the authentication password for HTTP proxy if required.- intGets the proxy type: 0=none/DIRECT, 1=HTTP, 2=SOCKS 4/5.Gets the authentication user name for HTTP proxy if required.Gets the secure properties.To check for secure communication, use- isSecure().- boolean- isSecure()Gets the secure socket flag.- booleanChecks for verbose output.- void- setBindAddress- (String bindAddress) Sets the bind address for the socket, i.e.- voidSets the destination host name/IP address for the socket.- void- setPort- (int port) Gets the host port for the socket.- void- setProxyHost- (String proxyHost) Sets the proxy host name if any.- void- setProxyPort- (int proxyPort) Sets the proxy port if any.- void- setProxyType- (int proxyType) Sets the proxy type: 0=none/DIRECT, 1=HTTP, 2=SOCKS 4/5.- void- setProxyUser- (String proxyUser) Gets the authentication user name for HTTP proxy if required.- void- setResolveHostNames- (boolean doResolveHostNames) Sets if host name resolve is enabled or if the host address should be returned (for performance reasons) for a call to e.g.- void- setSecure- (boolean on) Sets the secure socket flag.- void- setSecureProps- (SSLCommProps secureProps) Sets or removed the secure properties.- void- setVerbose- (boolean on) Sets verbose mode.- void- setWebSocket- (boolean webSocket) Sets if WebSocket protocol is used.- booleanChecks if WebSocket protocol is used.- Methods inherited from class com.iizix.prop.PropCnr- __transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getPredefinedProps, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, onVirtualContainerCreated, onVirtualizationCompleted, paramString, prepare, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualize- Methods inherited from class com.iizix.prop.GProp- addPropError, addPropListener, appendProp, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferencePropNameNoAssert, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParentNoAssert, getTreeLock, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, paramString, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warning- Methods inherited from class java.lang.Object- getClass, hashCode, notify, notifyAll, wait, wait, wait- Methods inherited from interface com.iizix.prop.IGProp- addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, isSibling, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onRemoteEvent, removePropError, removePropListener, renameProp, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warning- Methods inherited from interface com.iizix.prop.IPropCnr- canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
- Constructor Details- SocketCommPropspublic SocketCommProps()Creates the socket property container without a name. The name must be set in all cases using the- setPropertyAtomcall.
- SocketCommPropsCreates the socket property container with the specified name. All system-reserved names for components begins with "$".- Parameters:
- propertyAtom- the name of the component, unique within it's parent.
 
 
- Method Details- cloneClone method overridden in order not to clone the proxy password.
- setVerbosepublic void setVerbose- (boolean on) Sets verbose mode.- Parameters:
- on- true for verbose mode, false for silent.
 
- isVerbosepublic boolean isVerbose()Checks for verbose output.- Returns:
- true for verbose output, false for silent.
 
- getHostGets the destination host name or IP address for the socket destination.- Returns:
- null if none is set.
 
- getPortpublic int getPort()Gets the host port for the socket.- Returns:
- 0 if none if set.
 
- getBindAddressGets the bind address for the port, i.e. the local host name or IP address.- Returns:
- null if none is set or not required.
 
- isSecurepublic boolean isSecure()Gets the secure socket flag.- Returns:
- true if SSL-secured, false if not.
 
- setSecurepublic void setSecure- (boolean on) Sets the secure socket flag.
- getProxyHostGets the proxy host name if any.- Returns:
- null for no proxy, otherwise a host name or IP address.
 
- getProxyPortpublic int getProxyPort()Gets the proxy port if any.- Returns:
- 0 for no proxy.
 
- getProxyTypepublic int getProxyType()Gets the proxy type: 0=none/DIRECT, 1=HTTP, 2=SOCKS 4/5.
- useWebSocketpublic boolean useWebSocket()Checks if WebSocket protocol is used.- Returns:
- true if WebSocket is used, false otherwise.
 
- getProxyUserGets the authentication user name for HTTP proxy if required.- Returns:
- null for none, otherwise a user name.
 
- getProxyPWGets the authentication password for HTTP proxy if required.- Returns:
- null for none, otherwise a password for the user name in question.
 
- setHostSets the destination host name/IP address for the socket.- Parameters:
- host- the host name or IP address (IPv4 or IPv6).
- Throws:
- NullPointerException- if the parameter is null.
 
- setPortpublic void setPort- (int port) Gets the host port for the socket.- Parameters:
- port- the port number 1-65535.
- Throws:
- IllegalArgumentException- if the port is not 1-65535.
 
- setBindAddressSets the bind address for the socket, i.e. the local host name or IP address.- Parameters:
- bindAddress- The bind address as host name or IP address (IPv4 or IPv6).
 
- setSecurePropsSets or removed the secure properties.- Parameters:
- secureProps- The secure properties, or null to remove them.
- Throws:
- PropException- If the properties couldn't be added, set or removed.
 
- getSecurePropsGets the secure properties.To check for secure communication, use- isSecure().- Returns:
- The instance of the secure properties, null if not secure.
- Throws:
- PropException- If the secure properties couldn't be added.
 
- createSecurePropsCreates or gets the secure properties. If the no secure properties are present, a new instance is created.- Returns:
- The instance of the secure properties.
- Throws:
- PropException- If the secure properties couldn't be added.
 
- setProxyHostSets the proxy host name if any.- Parameters:
- proxyHost- The proxy host name or IP address.
 
- setProxyPortpublic void setProxyPort- (int proxyPort) Sets the proxy port if any.- Parameters:
- proxyPort- 0 for no proxy, otherwise 1-65535.
- Throws:
- IllegalArgumentException- if the proxyPort is not 0-65535.
 
- setProxyTypepublic void setProxyType- (int proxyType) Sets the proxy type: 0=none/DIRECT, 1=HTTP, 2=SOCKS 4/5.- Parameters:
- proxyType- 0=none/DIRECT, 1=HTTP, 2=SOCKS 4/5.
- Throws:
- IllegalArgumentException- if the proxyType is not 0-2.
 
- setWebSocketpublic void setWebSocket- (boolean webSocket) Sets if WebSocket protocol is used.- Parameters:
- webSocket- true if WebSocket is used, false otherwise.
 
- setProxyUserGets the authentication user name for HTTP proxy if required.- Parameters:
- proxyUser- The user name.
 
- getProxyPWSets the authentication password for HTTP proxy if required. This password is not stored for persistence nor transmitted if the class instance is cloned or transmitted in transactions.- Parameters:
- password- null for none, otherwise a password for the user name in question.
 
- setResolveHostNamespublic void setResolveHostNames- (boolean doResolveHostNames) Sets if host name resolve is enabled or if the host address should be returned (for performance reasons) for a call to e.g. getRemoteHost().- Parameters:
- doResolveHostNames- true if host names should be resolved, default is false.
 
- doResolveHostNamespublic boolean doResolveHostNames()Checks if host name resolve is enabled or if the host address should be returned (for performance reasons) for a call to e.g. getRemoteHost().- Returns:
- true if host names should be resolved, default is false.