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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetCode(int code) HTTP statusCode e.g.voidsetEmpty(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 testtoolvoidThe name of the Exit that can be referenced by aPipeForward'spathattribute.voidsetResponseRoot(String responseRoot) Configures the responseRoot in the OpenAPI schema for this exit.voidsetSkipValidation(boolean b) If set totrue, the output will not be validated or transformed by the validator.voidsetSkipWrapping(boolean b) If set totrue, the output will not be wrapped by the OutputWrapper.voidsetState(PipeLine.ExitState value) The state of the Pipeline that is returned to the Receiver for this Exit.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.core.IForwardTarget
getName
-
Constructor Details
-
PipeLineExit
public PipeLineExit()
-
-
Method Details
-
isSuccessExit
public boolean isSuccessExit() -
setName
The name of the Exit that can be referenced by aPipeForward'spathattribute. When a Pipeline doesn't have an Exits element configured it will be initialized with one Exit having name "READY" (and stateSUCCESS) -
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
-