Package sonia.scm.web.cgi
Class AbstractCGIExecutor
java.lang.Object
sonia.scm.web.cgi.AbstractCGIExecutor
- All Implemented Interfaces:
CGIExecutor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected EnvListprotected CGIExceptionHandlerprotected booleanprotected Stringprotected booleanprotected CGIStatusCodeHandlerprotected FileFields 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.intbooleanbooleanvoidSet command arguments.voidsetBufferSize(int bufferSize) voidsetEnvironment(EnvList environment) voidsetExceptionHandler(CGIExceptionHandler exceptionHandler) voidsetIgnoreExitCode(boolean ignoreExitCode) voidsetInterpreter(String interpreter) voidsetPassShellEnvironment(boolean passShellEnvironment) voidsetStatusCodeHandler(CGIStatusCodeHandler statusCodeHandler) voidsetWorkDirectory(File workDirectory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getBufferSizein interfaceCGIExecutor
-
getEnvironment
- Specified by:
getEnvironmentin interfaceCGIExecutor
-
getExceptionHandler
- Specified by:
getExceptionHandlerin interfaceCGIExecutor- Since:
- 1.15
-
getInterpreter
- Specified by:
getInterpreterin interfaceCGIExecutor
-
getStatusCodeHandler
- Specified by:
getStatusCodeHandlerin interfaceCGIExecutor- Since:
- 1.15
-
getWorkDirectory
- Specified by:
getWorkDirectoryin interfaceCGIExecutor
-
isIgnoreExitCode
public boolean isIgnoreExitCode()- Specified by:
isIgnoreExitCodein interfaceCGIExecutor
-
isPassShellEnvironment
public boolean isPassShellEnvironment()- Specified by:
isPassShellEnvironmentin interfaceCGIExecutor
-
setBufferSize
public void setBufferSize(int bufferSize) - Specified by:
setBufferSizein interfaceCGIExecutor
-
setEnvironment
- Specified by:
setEnvironmentin interfaceCGIExecutor
-
setExceptionHandler
- Specified by:
setExceptionHandlerin interfaceCGIExecutor- Since:
- 1.15
-
setIgnoreExitCode
public void setIgnoreExitCode(boolean ignoreExitCode) - Specified by:
setIgnoreExitCodein interfaceCGIExecutor
-
setInterpreter
- Specified by:
setInterpreterin interfaceCGIExecutor
-
setPassShellEnvironment
public void setPassShellEnvironment(boolean passShellEnvironment) - Specified by:
setPassShellEnvironmentin interfaceCGIExecutor
-
setStatusCodeHandler
- Specified by:
setStatusCodeHandlerin interfaceCGIExecutor- Since:
- 1.15
-
setWorkDirectory
- Specified by:
setWorkDirectoryin interfaceCGIExecutor
-
setArgs
Description copied from interface:CGIExecutorSet command arguments.- Specified by:
setArgsin interfaceCGIExecutor- Parameters:
args- command arguments
-
getArgs
Description copied from interface:CGIExecutorReturns command args as list.- Specified by:
getArgsin interfaceCGIExecutor
-