XLinkInterceptor

XLinkInterceptor bean attributes

An XLinkInterceptor is created using a Spring bean with the following attributes:

Attribute Value Description
id User-defined A unique ID for the bean.
parent xlink.rdf.interceptor.link.abstract The parent bean.

XLinkInterceptor bean properties

The XLinkInterceptor bean takes the following properties:

Property Type Mandatory Description
xmlSchemaFilter XmlSchemaFilter Required A filter for which the bean applies.
linkDefinitions List < LinkDefinition > Required A list of Link Definitions.

XLinkInterceptor bean example

<bean id="xhtml.xlink.interceptor" parent="xlink.rdf.interceptor.link.abstract">
  <property name="xmlSchemaFilter" ref="samples.dtd.xhtml" />
  <property name="linkDefinitions">
    <list>
      <ref bean="xhtml.linkDefinition.href" />
      <ref bean="xhtml.linkDefinition.img" />
    </list>
  </property>
</bean>

Debugging

To debug your XLinkInterceptor, add the following entry to your log4j.properties file:

log4j.logger.com.componize.xlink.rdf.pipeline.XLinkInterceptorFactory=debug