Package com.sun.corba.ee.impl.orb
Class DataCollectorBase
java.lang.Object
com.sun.corba.ee.impl.orb.DataCollectorBase
- All Implemented Interfaces:
DataCollector
- Direct Known Subclasses:
AppletDataCollector
,NormalDataCollector
,PropertyOnlyDataCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
private Properties
private Properties
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionDataCollectorBase
(Properties props, String localHostName, String configurationHostName) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
private void
protected abstract void
collect()
private void
doProperties
(Properties props) private String
findMatchingPropertyName
(Set<String> names, String suffix) private void
findPropertiesByName
(Iterator<String> names, PropertyCallback getProperty) private void
findPropertiesByPrefix
(Set<String> prefixes, Iterator<String> propertyNames, PropertyCallback getProperty) protected void
protected void
findPropertiesFromArgs
(String[] params) protected void
protected void
protected void
getCORBAPrefixes
(Set<String> prefixes) private Properties
Return the consolidated property information to be used for ORB configuration.private void
getPropertiesFromFile
(Properties props, String fileName) private static String
getSystemProperty
(String name) private boolean
hasCORBAPrefix
(String prefix) boolean
Return true iff the local host and ORB initial host are the same.abstract boolean
isApplet()
Return true iff this DataCollector was created from applet data.makeIterator
(Enumeration<?> enumeration) void
setParser
(PropertyParser parser) Set the parser which is used to obtain property names.private void
setProperty
(String name, String value)
-
Field Details
-
propertyNames
-
propertyPrefixes
-
URLPropertyNames
-
localHostName
-
configurationHostName
-
setParserCalled
private boolean setParserCalled -
originalProps
-
resultProps
-
-
Constructor Details
-
DataCollectorBase
-
-
Method Details
-
initialHostIsLocal
public boolean initialHostIsLocal()Description copied from interface:DataCollector
Return true iff the local host and ORB initial host are the same. This is provided to avoid exposing the local host in insecure contexts.- Specified by:
initialHostIsLocal
in interfaceDataCollector
- Returns:
- if the local host and ORB initial host are the same
-
setParser
Description copied from interface:DataCollector
Set the parser which is used to obtain property names. This must be called before getProperties may be called. It may be called multiple times if different sets of properties are needed for the same data sources.- Specified by:
setParser
in interfaceDataCollector
- Parameters:
parser
- parser used to obtain property names
-
getProperties
Description copied from interface:DataCollector
Return the consolidated property information to be used for ORB configuration. Note that -ORBInitRef arguments are handled specially: all -ORBInitRef name=value arguments are converted into ( org.omg.CORBA.ORBInitRef.name, value ) mappings in the resulting properties. Also, -ORBInitialServices is handled specially in applet mode: they are converted from relative to absolute URLs.- Specified by:
getProperties
in interfaceDataCollector
- Returns:
- consolidated property information
-
isApplet
public abstract boolean isApplet()Description copied from interface:DataCollector
Return true iff this DataCollector was created from applet data.- Specified by:
isApplet
in interfaceDataCollector
- Returns:
- if this was created from an applet
-
collect
protected abstract void collect() -
checkPropertyDefaults
protected void checkPropertyDefaults() -
findPropertiesFromArgs
-
findPropertiesFromApplet
-
doProperties
-
findPropertiesFromFile
protected void findPropertiesFromFile() -
findPropertiesFromProperties
protected void findPropertiesFromProperties() -
findPropertiesFromSystem
protected void findPropertiesFromSystem() -
setProperty
-
checkSetParserCalled
private void checkSetParserCalled() -
findPropertiesByPrefix
private void findPropertiesByPrefix(Set<String> prefixes, Iterator<String> propertyNames, PropertyCallback getProperty) -
findPropertiesByName
-
getSystemProperty
-
findMatchingPropertyName
-
makeIterator
-
getSystemPropertyNames
-
getPropertiesFromFile
-
getFileProperties
-
hasCORBAPrefix
-
getCORBAPrefixes
-