com.shopify.model.adapters.EscapedStringAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shopify-sdk Show documentation
Show all versions of shopify-sdk Show documentation
Java SDK for Shopify REST API.
package com.shopify.model.adapters;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import org.apache.commons.lang3.StringEscapeUtils;
public class EscapedStringAdapter extends XmlAdapter {
@Override
public String unmarshal(final String escapedString) throws Exception {
return StringEscapeUtils.unescapeHtml4(escapedString);
}
@Override
public String marshal(final String unescapedString) throws Exception {
return unescapedString;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy