@StableMinor(version="12.4", sinceVersion="8.0") public class PortalHrefToAbsoluteXmlAdapter extends XmlAdapter<String,String>
The marshalling will only perform the conversion if the value is a valid relative URI.
The unmarshalling assumes that, if the value is an absolute portal href, it is based on the request's website base URL.
If during marshal or unmarshal the conversion cannot be done due to the value being an invalid URI or no website base URL cound be identified for the current request, the original value is kept.
Sample marshal: "path"
to "http://localhost:8080/portal/path"
Sample unmarshal: "http://localhost:8080/portal/path"
to "path"
Constructor and Description |
---|
PortalHrefToAbsoluteXmlAdapter() |
public String unmarshal(String value) throws PortalException
unmarshal
in class XmlAdapter<String,String>
PortalException
public String marshal(String value) throws PortalException
marshal
in class XmlAdapter<String,String>
PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.