Class AddFullNodeService

java.lang.Object
com.adaptris.core.ServiceImp
com.proagrica.bip.services.AddFullNodeService
All Implemented Interfaces:
AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConfigComment, MessageEventGenerator, Service, StateManagedComponent

@ComponentProfile(summary="Duplicate and modify the configured node to an xml payload as a sibling of the configured base-xpath.", tag="service,xml,bip") public class AddFullNodeService extends ServiceImp

BIP Service

This service will take the base-xpath and attempt to find it's parent element node within the xml payoload. Once the parent has been found we will duplicate the node found by the base-xpath. Finally we will modify the duplicated node by setting the attribute named by attribute-name-to-change to the value equal to attribute-value;

  • Constructor Details

    • AddFullNodeService

      public AddFullNodeService()
  • Method Details

    • doService

      public void doService(AdaptrisMessage message) throws ServiceException
      Throws:
      ServiceException
    • prepare

      public void prepare() throws CoreException
      Throws:
      CoreException
    • initService

      protected void initService() throws CoreException
      Specified by:
      initService in class ServiceImp
      Throws:
      CoreException
    • closeService

      protected void closeService()
      Specified by:
      closeService in class ServiceImp
    • getSerializedCodesMetadataKey

      public String getSerializedCodesMetadataKey()
    • setSerializedCodesMetadataKey

      public void setSerializedCodesMetadataKey(String serializedCodesMetadataKey)
    • getBaseXPath

      public String getBaseXPath()
    • setBaseXPath

      public void setBaseXPath(String baseXPath)
    • getRelativeXPath1

      public String getRelativeXPath1()
    • setRelativeXPath1

      public void setRelativeXPath1(String relativeXPath1)
    • getRelativeXPath2

      public String getRelativeXPath2()
    • setRelativeXPath2

      public void setRelativeXPath2(String relativeXPath2)
    • getRelativeXPath3

      public String getRelativeXPath3()
    • setRelativeXPath3

      public void setRelativeXPath3(String relativeXPath3)
    • getAttributeNameToChange

      public String getAttributeNameToChange()
    • setAttributeNameToChange

      public void setAttributeNameToChange(String attributeNameToChange)
    • getAttributeValue

      public String getAttributeValue()
    • setAttributeValue

      public void setAttributeValue(String attributeValue)
    • getXmlSource

      public String getXmlSource()
    • setXmlSource

      public void setXmlSource(String xmlSource)
    • getNamespaceContext

      public KeyValuePairSet getNamespaceContext()
    • setNamespaceContext

      public void setNamespaceContext(KeyValuePairSet namespaceContext)
    • getXmlDocumentFactoryConfig

      public DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig()
    • setXmlDocumentFactoryConfig

      public void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xmlDocumentFactoryConfig)