Package org.eclipse.jetty.servlets
Class CGI.EnvList
- java.lang.Object
-
- org.eclipse.jetty.servlets.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
-
Constructor Summary
Constructors Constructor Description EnvList()
EnvList(CGI.EnvList l)
-
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 Stringjava.lang.String
toString()
-
-
-
Constructor Detail
-
EnvList
EnvList()
-
EnvList
EnvList(CGI.EnvList l)
-
-
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 namevalue
- 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 classjava.lang.Object
-
-