XmlNameProcessor implementations.
Processors should be set in the XmlMapper#setXmlNameProcessor(XmlNameProcessor)
and/or the XmlMapper. methods.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static XmlNameProcessor | newAlwaysOnBase64Processor()
Similar to |
| public static XmlNameProcessor | newBase64Processor(String
The prefix to use for name that are escaped prefix)Generates a new processor that escapes all names that contains characters OTHER than following characters:
|
| public static XmlNameProcessor | newBase64Processor()
Convenience method
equivalent to calling |
| public static XmlNameProcessor | newPassthroughProcessor()
Generates a new processor that does nothing and just passes through the names as-is. |
| public static XmlNameProcessor | newReplacementProcessor(String
The replacement string to replace invalid characters with replacement)Generates a new processor that replaces all characters that are NOT one of:
|
| public static XmlNameProcessor | newReplacementProcessor()
Convenience method
equivalent to calling |
| XmlNameProcessors | back to summary |
|---|---|
| private XmlNameProcessors() | |
| newAlwaysOnBase64Processor | back to summary |
|---|---|
| public static XmlNameProcessor newAlwaysOnBase64Processor() Similar to | |
| newBase64Processor | back to summary |
|---|---|
| public static XmlNameProcessor newBase64Processor(String prefix) Generates a new processor that escapes all names that contains characters OTHER than following characters:
= padding characters are
always omitted.
With this processor set, a map with the keys Note you must ensure that no incoming element or attribute name starts
with
| |
| newBase64Processor | back to summary |
|---|---|
| public static XmlNameProcessor newBase64Processor() Convenience method
equivalent to calling
| |
| newPassthroughProcessor | back to summary |
|---|---|
| public static XmlNameProcessor newPassthroughProcessor() Generates a new processor that does nothing and just passes through the names as-is. Using this processor may generate invalid XML.
With this processor set, a map with the keys
This is the default behavior for backwards compatibility.
| |
| newReplacementProcessor | back to summary |
|---|---|
| public static XmlNameProcessor newReplacementProcessor(String replacement) Generates a new processor that replaces all characters that are NOT one of:
With this processor set (and Note this processor works for US-ASCII based element and attribute names but is unlikely to work well for many "international" use cases.
| |
| newReplacementProcessor | back to summary |
|---|---|
| public static XmlNameProcessor newReplacementProcessor() Convenience method
equivalent to calling
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Base64. | |
| private static final Base64. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | decodeName(XmlNameProcessor.
The name to encode nameImplements com. Used during XML deserialization. |
| public void | encodeName(XmlNameProcessor.
The name to encode nameImplements com. Used during XML serialization. |
| BASE64_DECODER | back to summary |
|---|---|
| private static final Base64. | |
| BASE64_ENCODER | back to summary |
|---|---|
| private static final Base64. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AlwaysOnBase64NameProcessor | back to summary |
|---|---|
| public AlwaysOnBase64NameProcessor() | |
| decodeName | back to summary |
|---|---|
| public void decodeName(XmlNameProcessor. Implements com. Doc from com. Used during XML deserialization.
This method should process the provided Note Depending on the use case, it is not always required (or even possible) to reverse an encoding with 100% accuracy.
| |
| encodeName | back to summary |
|---|---|
| public void encodeName(XmlNameProcessor. Implements com. Doc from com. Used during XML serialization.
This method should process the provided
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final Base64. | |
| private static final Base64. | |
| private static final long | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | decodeName(XmlNameProcessor.
The name to encode nameImplements com. Used during XML deserialization. |
| public void | encodeName(XmlNameProcessor.
The name to encode nameImplements com. Used during XML serialization. |
| _prefix | back to summary |
|---|---|
| private final String _prefix | |
| BASE64_DECODER | back to summary |
|---|---|
| private static final Base64. | |
| BASE64_ENCODER | back to summary |
|---|---|
| private static final Base64. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| VALID_XML_NAME | back to summary |
|---|---|
| private static final Pattern VALID_XML_NAME | |
| Base64NameProcessor | back to summary |
|---|---|
| public Base64NameProcessor(String prefix) | |
| decodeName | back to summary |
|---|---|
| public void decodeName(XmlNameProcessor. Implements com. Doc from com. Used during XML deserialization.
This method should process the provided Note Depending on the use case, it is not always required (or even possible) to reverse an encoding with 100% accuracy.
| |
| encodeName | back to summary |
|---|---|
| public void encodeName(XmlNameProcessor. Implements com. Doc from com. Used during XML serialization.
This method should process the provided
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | decodeName(XmlNameProcessor.
The name to encode nameImplements com. Used during XML deserialization. |
| public void | encodeName(XmlNameProcessor.
The name to encode nameImplements com. Used during XML serialization. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| PassthroughProcessor | back to summary |
|---|---|
| public PassthroughProcessor() | |
| decodeName | back to summary |
|---|---|
| public void decodeName(XmlNameProcessor. Implements com. Doc from com. Used during XML deserialization.
This method should process the provided Note Depending on the use case, it is not always required (or even possible) to reverse an encoding with 100% accuracy.
| |
| encodeName | back to summary |
|---|---|
| public void encodeName(XmlNameProcessor. Implements com. Doc from com. Used during XML serialization.
This method should process the provided
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final Pattern | |
| private static final Pattern | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | decodeName(XmlNameProcessor.
The name to encode nameImplements com. Used during XML deserialization. |
| public void | encodeName(XmlNameProcessor.
The name to encode nameImplements com. Used during XML serialization. |
| _replacement | back to summary |
|---|---|
| private final String _replacement | |
| BEGIN_MATCHER | back to summary |
|---|---|
| private static final Pattern BEGIN_MATCHER | |
| MAIN_MATCHER | back to summary |
|---|---|
| private static final Pattern MAIN_MATCHER | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ReplaceNameProcessor | back to summary |
|---|---|
| public ReplaceNameProcessor(String replacement) | |
| decodeName | back to summary |
|---|---|
| public void decodeName(XmlNameProcessor. Implements com. Doc from com. Used during XML deserialization.
This method should process the provided Note Depending on the use case, it is not always required (or even possible) to reverse an encoding with 100% accuracy.
| |
| encodeName | back to summary |
|---|---|
| public void encodeName(XmlNameProcessor. Implements com. Doc from com. Used during XML serialization.
This method should process the provided
| |