Class CGI.EnvList

  • Enclosing class:
    CGI

    private static class CGI.EnvList
    extends java.lang.Object
    private utility class that manages the Environment passed to exec.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.String> envMap  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getEnvArray()
      Get representation suitable for passing to exec.
      java.lang.String getExportString()  
      void set​(java.lang.String name, java.lang.String value)
      Set a name/value pair, null values will be treated as an empty String
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • envMap

        private java.util.Map<java.lang.String,​java.lang.String> envMap
    • Constructor Detail

      • EnvList

        EnvList()
    • Method Detail

      • set

        public void set​(java.lang.String name,
                        java.lang.String value)
        Set a name/value pair, null values will be treated as an empty String
        Parameters:
        name - the name
        value - the value
      • getEnvArray

        public java.lang.String[] getEnvArray()
        Get representation suitable for passing to exec.
        Returns:
        the env map as an array
      • getExportString

        public java.lang.String getExportString()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object