Package org.frankframework.core
Class PipeLineExit
java.lang.Object
org.frankframework.core.PipeLineExit
- All Implemented Interfaces:
IForwardTarget
@Category(BASIC)
@FrankDocGroup(OTHER)
public class PipeLineExit
extends Object
implements IForwardTarget
The Exit of a Pipeline that specifies the end state of a PipeLine. The state is returned to the receiver as well as
the optionally specified http status code. Each Exit should have a unique name. See
When a Pipeline doesn't have an Exits element configured it will be initialized with one Exit having name "READY" and state "SUCCESS".
The name of an Exit can be referenced by the
Exits
for examples.
When a Pipeline doesn't have an Exits element configured it will be initialized with one Exit having name "READY" and state "SUCCESS".
The name of an Exit can be referenced by the
path
attribute of a Forward within a Pipe.- Author:
- Johan Verrips, Niels Meijer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getName()
getState()
boolean
boolean
boolean
boolean
void
setCode
(int code) HTTP statusCode e.g.void
setEmpty
(boolean b) If using RestListener and set totrue
, this removes the output and shows a blank page, the output is still logged in the ladybug testtoolvoid
The name of the Exit that can be referenced by aPipeForward
'spath
attribute.void
Deprecated, for removal: This API element is subject to removal in a future version.void
setResponseRoot
(String responseRoot) Configures the responseRoot in the OpenAPI schema for this exit.void
setSkipValidation
(boolean b) If set totrue
, the output will not be validated or transformed by the validator.void
setSkipWrapping
(boolean b) If set totrue
, the output will not be wrapped by the OutputWrapper.void
setState
(PipeLine.ExitState value) The state of the Pipeline that is returned to the Receiver for this Exit.
-
Constructor Details
-
PipeLineExit
public PipeLineExit()
-
-
Method Details
-
isSuccessExit
public boolean isSuccessExit() -
setName
The name of the Exit that can be referenced by aPipeForward
'spath
attribute. When a Pipeline doesn't have an Exits element configured it will be initialized with one Exit having name "READY" (and stateSUCCESS
) -
setPath
@Deprecated(forRemoval=true, since="7.8.0") @ConfigurationWarning("The attribute \'path\' has been renamed to: \'name\'") public void setPath(String path) Deprecated, for removal: This API element is subject to removal in a future version. -
setState
-
setCode
public void setCode(int code) HTTP statusCode e.g.500
- Default value
- 200
-
setResponseRoot
Configures the responseRoot in the OpenAPI schema for this exit. If not set, the responseRoot value of the validator will be used. If that contains multiple (comma separated) values, the first will be used for the exits with stateSUCCESS
, the last for the other exits. -
setEmpty
public void setEmpty(boolean b) If using RestListener and set totrue
, this removes the output and shows a blank page, the output is still logged in the ladybug testtool- Default value
false
-
setSkipWrapping
public void setSkipWrapping(boolean b) If set totrue
, the output will not be wrapped by the OutputWrapper.- Default value
false
-
setSkipValidation
public void setSkipValidation(boolean b) If set totrue
, the output will not be validated or transformed by the validator.- Default value
false
-
getName
Description copied from interface:IForwardTarget
The part of the object that identifies its destination: Thename
of the Pipe or thepath
of the PipeLineExit.- Specified by:
getName
in interfaceIForwardTarget
-
getState
-
getExitCode
public int getExitCode() -
getResponseRoot
-
isEmptyResult
public boolean isEmptyResult() -
isSkipValidation
public boolean isSkipValidation() -
isSkipWrapping
public boolean isSkipWrapping()
-