Class Base64DataFormat
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- org.apache.camel.model.DataFormatDefinition
-
- org.apache.camel.model.dataformat.Base64DataFormat
-
@Metadata(firstVersion="2.11.0", label="dataformat,transformation", title="Base64") public class Base64DataFormat extends DataFormatDefinition
Encode and decode data using Base64.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Base64DataFormat.Builder
Builder
is a specific builder forBase64DataFormat
.
-
Constructor Summary
Constructors Constructor Description Base64DataFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLineLength()
String
getLineSeparator()
String
getUrlSafe()
void
setLineLength(String lineLength)
To specific a maximum line length for the encoded data.void
setLineSeparator(String lineSeparator)
The line separators to use.void
setUrlSafe(String urlSafe)
Instead of emitting '+' and '/' we emit '-' and '_' respectively.-
Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
-
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
-
-
-
Method Detail
-
getLineLength
public String getLineLength()
-
setLineLength
public void setLineLength(String lineLength)
To specific a maximum line length for the encoded data. By default 76 is used.
-
getLineSeparator
public String getLineSeparator()
-
setLineSeparator
public void setLineSeparator(String lineSeparator)
The line separators to use. Uses new line characters (CRLF) by default.
-
getUrlSafe
public String getUrlSafe()
-
setUrlSafe
public void setUrlSafe(String urlSafe)
Instead of emitting '+' and '/' we emit '-' and '_' respectively. urlSafe is only applied to encode operations. Decoding seamlessly handles both modes. Is by default false.
-
-