Class DataCollectorBase

java.lang.Object
com.sun.corba.ee.impl.orb.DataCollectorBase
All Implemented Interfaces:
DataCollector
Direct Known Subclasses:
AppletDataCollector, NormalDataCollector, PropertyOnlyDataCollector

public abstract class DataCollectorBase extends Object implements DataCollector
  • Field Details

    • propertyNames

      private Set<String> propertyNames
    • propertyPrefixes

      private Set<String> propertyPrefixes
    • URLPropertyNames

      private Set<String> URLPropertyNames
    • localHostName

      protected String localHostName
    • configurationHostName

      protected String configurationHostName
    • setParserCalled

      private boolean setParserCalled
    • originalProps

      private Properties originalProps
    • resultProps

      private Properties resultProps
  • Constructor Details

    • DataCollectorBase

      public DataCollectorBase(Properties props, String localHostName, String configurationHostName)
  • 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 interface DataCollector
      Returns:
      if the local host and ORB initial host are the same
    • setParser

      public void setParser(PropertyParser parser)
      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 interface DataCollector
      Parameters:
      parser - parser used to obtain property names
    • getProperties

      public Properties 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 interface DataCollector
      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 interface DataCollector
      Returns:
      if this was created from an applet
    • collect

      protected abstract void collect()
    • checkPropertyDefaults

      protected void checkPropertyDefaults()
    • findPropertiesFromArgs

      protected void findPropertiesFromArgs(String[] params)
    • findPropertiesFromApplet

      protected void findPropertiesFromApplet(Applet app)
    • doProperties

      private void doProperties(Properties props)
    • findPropertiesFromFile

      protected void findPropertiesFromFile()
    • findPropertiesFromProperties

      protected void findPropertiesFromProperties()
    • findPropertiesFromSystem

      protected void findPropertiesFromSystem()
    • setProperty

      private void setProperty(String name, String value)
    • checkSetParserCalled

      private void checkSetParserCalled()
    • findPropertiesByPrefix

      private void findPropertiesByPrefix(Set<String> prefixes, Iterator<String> propertyNames, PropertyCallback getProperty)
    • findPropertiesByName

      private void findPropertiesByName(Iterator<String> names, PropertyCallback getProperty)
    • getSystemProperty

      private static String getSystemProperty(String name)
    • findMatchingPropertyName

      private String findMatchingPropertyName(Set<String> names, String suffix)
    • makeIterator

      private static Iterator<String> makeIterator(Enumeration<?> enumeration)
    • getSystemPropertyNames

      private static Iterator<String> getSystemPropertyNames()
    • getPropertiesFromFile

      private void getPropertiesFromFile(Properties props, String fileName)
    • getFileProperties

      private Properties getFileProperties()
    • hasCORBAPrefix

      private boolean hasCORBAPrefix(String prefix)
    • getCORBAPrefixes

      private Set<String> getCORBAPrefixes(Set<String> prefixes)