Class XeLocalhost

  • All Implemented Interfaces:
    XeSource

    public final class XeLocalhost
    extends XeWrap
    Xembly source to create SLA attribute with server IP address.

    Add this Xembly source to your page like this:

     new RsXembly(
       new XsStylesheet("/xsl/home.xsl"),
       new XsAppend(
         "page",
         new XsLocalhost()
       )
     )

    And expect this attribute in the XML:

    <?xml version="1.0"?>
     <?xml-stylesheet href="/xsl/home.xsl" type="text/xsl"?>
     <page ip="172.18.183.14"/>
     

    The class is immutable and thread-safe.

    Since:
    0.3
    • Constructor Detail

      • XeLocalhost

        public XeLocalhost()
        Ctor.
      • XeLocalhost

        public XeLocalhost​(CharSequence attr)
        Ctor.
        Parameters:
        attr - Attribute name