improve cgi api

This commit is contained in:
Sebastian Sdorra
2011-05-05 13:46:09 +02:00
parent 4e73d6524e
commit 6ae090ae2e
2 changed files with 90 additions and 1 deletions

View File

@@ -92,6 +92,30 @@ public abstract class AbstractCGIExecutor implements CGIExecutor
return workDirectory;
}
/**
* Method description
*
*
* @return
*/
@Override
public boolean isIgnoreExitCode()
{
return ignoreExitCode;
}
/**
* Method description
*
*
* @return
*/
@Override
public boolean isPassShellEnvironment()
{
return passShellEnvironment;
}
//~--- set methods ----------------------------------------------------------
/**
@@ -118,6 +142,18 @@ public abstract class AbstractCGIExecutor implements CGIExecutor
this.environment = environment;
}
/**
* Method description
*
*
* @param ignoreExitCode
*/
@Override
public void setIgnoreExitCode(boolean ignoreExitCode)
{
this.ignoreExitCode = ignoreExitCode;
}
/**
* Method description
*
@@ -130,6 +166,18 @@ public abstract class AbstractCGIExecutor implements CGIExecutor
this.interpreter = interpreter;
}
/**
* Method description
*
*
* @param passShellEnvironment
*/
@Override
public void setPassShellEnvironment(boolean passShellEnvironment)
{
this.passShellEnvironment = passShellEnvironment;
}
/**
* Method description
*
@@ -150,9 +198,15 @@ public abstract class AbstractCGIExecutor implements CGIExecutor
/** Field description */
protected EnvList environment;
/** Field description */
protected boolean ignoreExitCode;
/** Field description */
protected String interpreter;
/** Field description */
protected boolean passShellEnvironment;
/** Field description */
protected File workDirectory;
}

View File

@@ -111,11 +111,14 @@ public interface CGIExecutor
public static final String ENV_SERVER_SOFTWARE = "SERVER_SOFTWARE";
/** Field description */
public static final String RESPONSE_HEADER_CONTENT_LENGTH = "Content-Length";
public static final String ENV_SYSTEM_ROOT = "SystemRoot";
/** Field description */
public static final String REPSONSE_HEADER_CONTENT_TYPE = "Content-Type";
/** Field description */
public static final String RESPONSE_HEADER_CONTENT_LENGTH = "Content-Length";
/** Field description */
public static final String RESPONSE_HEADER_HTTP_PREFIX = "HTTP";
@@ -172,6 +175,22 @@ public interface CGIExecutor
*/
public File getWorkDirectory();
/**
* Method description
*
*
* @return
*/
public boolean isIgnoreExitCode();
/**
* Method description
*
*
* @return
*/
public boolean isPassShellEnvironment();
//~--- set methods ----------------------------------------------------------
/**
@@ -190,6 +209,14 @@ public interface CGIExecutor
*/
public void setEnvironment(EnvList environment);
/**
* Method description
*
*
* @param ignoreExitCode
*/
public void setIgnoreExitCode(boolean ignoreExitCode);
/**
* Method description
*
@@ -198,6 +225,14 @@ public interface CGIExecutor
*/
public void setInterpreter(String interpreter);
/**
* Method description
*
*
* @param passShellEnvironment
*/
public void setPassShellEnvironment(boolean passShellEnvironment);
/**
* Method description
*