Package sonia.scm.web.cgi
Class AbstractCGIExecutor
java.lang.Object
sonia.scm.web.cgi.AbstractCGIExecutor
- All Implemented Interfaces:
CGIExecutor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected EnvList
protected CGIExceptionHandler
protected boolean
protected String
protected boolean
protected CGIStatusCodeHandler
protected File
Fields inherited from interface sonia.scm.web.cgi.CGIExecutor
ENV_AUTH_TYPE, ENV_CONTENT_LENGTH, ENV_CONTENT_TYPE, ENV_GATEWAY_INTERFACE, ENV_HTTP_HEADER_PREFIX, ENV_HTTPS, ENV_HTTPS_VALUE_OFF, ENV_HTTPS_VALUE_ON, ENV_PATH_INFO, ENV_PATH_TRANSLATED, ENV_QUERY_STRING, ENV_REMOTE_ADDR, ENV_REMOTE_HOST, ENV_REMOTE_USER, ENV_REQUEST_METHOD, ENV_SCRIPT_FILENAME, ENV_SCRIPT_NAME, ENV_SERVER_NAME, ENV_SERVER_PORT, ENV_SERVER_PROTOCOL, ENV_SERVER_SOFTWARE, ENV_SYSTEM_ROOT, REPSONSE_HEADER_CONTENT_TYPE, RESPONSE_HEADER_CONTENT_LENGTH, RESPONSE_HEADER_CONTENT_TYPE, RESPONSE_HEADER_HTTP_PREFIX, RESPONSE_HEADER_LOCATION, RESPONSE_HEADER_STATUS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()
Returns command args as list.int
boolean
boolean
void
Set command arguments.void
setBufferSize
(int bufferSize) void
setEnvironment
(EnvList environment) void
setExceptionHandler
(CGIExceptionHandler exceptionHandler) void
setIgnoreExitCode
(boolean ignoreExitCode) void
setInterpreter
(String interpreter) void
setPassShellEnvironment
(boolean passShellEnvironment) void
setStatusCodeHandler
(CGIStatusCodeHandler statusCodeHandler) void
setWorkDirectory
(File workDirectory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sonia.scm.web.cgi.CGIExecutor
execute, isContentLengthWorkaround, setContentLengthWorkaround
-
Field Details
-
args
-
bufferSize
protected int bufferSize -
environment
-
exceptionHandler
-
ignoreExitCode
protected boolean ignoreExitCode -
interpreter
-
passShellEnvironment
protected boolean passShellEnvironment -
statusCodeHandler
-
workDirectory
-
-
Constructor Details
-
AbstractCGIExecutor
public AbstractCGIExecutor()
-
-
Method Details
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSize
in interfaceCGIExecutor
-
getEnvironment
- Specified by:
getEnvironment
in interfaceCGIExecutor
-
getExceptionHandler
- Specified by:
getExceptionHandler
in interfaceCGIExecutor
- Since:
- 1.15
-
getInterpreter
- Specified by:
getInterpreter
in interfaceCGIExecutor
-
getStatusCodeHandler
- Specified by:
getStatusCodeHandler
in interfaceCGIExecutor
- Since:
- 1.15
-
getWorkDirectory
- Specified by:
getWorkDirectory
in interfaceCGIExecutor
-
isIgnoreExitCode
public boolean isIgnoreExitCode()- Specified by:
isIgnoreExitCode
in interfaceCGIExecutor
-
isPassShellEnvironment
public boolean isPassShellEnvironment()- Specified by:
isPassShellEnvironment
in interfaceCGIExecutor
-
setBufferSize
public void setBufferSize(int bufferSize) - Specified by:
setBufferSize
in interfaceCGIExecutor
-
setEnvironment
- Specified by:
setEnvironment
in interfaceCGIExecutor
-
setExceptionHandler
- Specified by:
setExceptionHandler
in interfaceCGIExecutor
- Since:
- 1.15
-
setIgnoreExitCode
public void setIgnoreExitCode(boolean ignoreExitCode) - Specified by:
setIgnoreExitCode
in interfaceCGIExecutor
-
setInterpreter
- Specified by:
setInterpreter
in interfaceCGIExecutor
-
setPassShellEnvironment
public void setPassShellEnvironment(boolean passShellEnvironment) - Specified by:
setPassShellEnvironment
in interfaceCGIExecutor
-
setStatusCodeHandler
- Specified by:
setStatusCodeHandler
in interfaceCGIExecutor
- Since:
- 1.15
-
setWorkDirectory
- Specified by:
setWorkDirectory
in interfaceCGIExecutor
-
setArgs
Description copied from interface:CGIExecutor
Set command arguments.- Specified by:
setArgs
in interfaceCGIExecutor
- Parameters:
args
- command arguments
-
getArgs
Description copied from interface:CGIExecutor
Returns command args as list.- Specified by:
getArgs
in interfaceCGIExecutor
-