@Category(value="Basic") @SupportsOutputStreaming @ElementType(value=TRANSLATOR) public class Base64Pipe extends StreamingPipe
Modifier and Type | Class and Description |
---|---|
static class |
Base64Pipe.Direction |
static class |
Base64Pipe.OutputTypes |
AUTOMATIC_STREAMING
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
Base64Pipe() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
checks for correct configuration of forward
|
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
This is where the action takes place.
|
Base64Pipe.OutputTypes |
getOutputTypeEnum() |
protected MessageOutputStream |
provideOutputStream(PipeLineSession session)
provide the outputstream, or null if a stream cannot be provided.
|
void |
setCharset(String string)
Character encoding to be used to when reading input from strings for direction=encode or writing data for direction=decode.
|
void |
setConvert2String(boolean b)
Deprecated.
|
void |
setDirection(Base64Pipe.Direction direction) |
void |
setLineLength(int lineLength)
(Only used when direction=encode) Each line of encoded data will be at most of the given length (rounded down to nearest multiple of 4).
|
void |
setLineSeparator(String lineSeparator)
(Only used when direction=encode) Defines separator between lines.
|
void |
setOutputType(String outputType)
Deprecated.
|
canProvideOutputStream, canStreamToNextPipe, getNextPipe, getTargetStream, isStreamingActive, provideOutputStream, setStreamingActive, supportsOutputStreamPassThrough
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, start, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine, throwEvent
getMaxThreads
getName
getApplicationContext, getName
getConfigurationClassLoader
getName
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public void configure() throws ConfigurationException
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class StreamingPipe
ConfigurationException
public PipeRunResult doPipe(Message message, PipeLineSession session) throws PipeRunException
IPipe
FixedResultPipe
, the Pipe
can schedule the input to be closed at session exit, by calling Message.closeOnCloseOf(PipeLineSession, String)
This allows the previous Pipe to release any resources (e.g. connections) that it might have kept open
until the message was consumed. Doing so avoids connections leaking from pools, while it enables
efficient streaming processing of data while it is being read from a stream.PipeRunException
protected MessageOutputStream provideOutputStream(PipeLineSession session) throws StreamingException
StreamingPipe
StreamingPipe.getNextPipe()
.provideOutputStream
in class StreamingPipe
StreamingException
public void setDirection(Base64Pipe.Direction direction)
@Deprecated @ConfigurationWarning(value="please specify outputType instead") public void setConvert2String(boolean b)
@Deprecated @ConfigurationWarning(value="It should not be necessary to specify outputType. If you encounter a situation where it is, please report to Frank!Framework Core Team") public void setOutputType(String outputType)
string
for character output or bytes
for binary output. The value stream
is no longer used. Streaming is automatic where possiblepublic Base64Pipe.OutputTypes getOutputTypeEnum()
public void setCharset(String string)
public void setLineSeparator(String lineSeparator)
auto
: platform default, dos
: crlf, unix
: lfpublic void setLineLength(int lineLength)
Copyright © 2023 Frank!Framework. All rights reserved.