Class DummyPayloadParser

  • All Implemented Interfaces:
    PayloadParser

    public class DummyPayloadParser
    extends java.lang.Object
    implements PayloadParser
    Dummy implementation of a PayloadParser
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAMESPACE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SomePayload genSomePayload​(java.lang.String someValue)  
      java.lang.String getJAXBPackage()
      Method that returns the JAXBPackage Name for the package name containing the JAXB classes.
      java.lang.String getNameSpace()  
      java.lang.String[] getRelatedSchemas​(java.lang.String payloadVersion)
      Method that should return related schemas used during payload schema validation.
      java.io.InputStream getSchemaAsInputStream​(java.lang.String payLoadVersion)
      Method that should return the location of the schema for a given payLoadVersion, it should be accessable as a class resource using getClass().getResourceAsStream()
      void init​(java.util.Properties config, MessageSecurityProvider secProv)
      Method that initializes the CSMessage parser with properties.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NAMESPACE

        public static java.lang.String NAMESPACE
    • Constructor Detail

      • DummyPayloadParser

        public DummyPayloadParser()
    • Method Detail

      • init

        public void init​(java.util.Properties config,
                         MessageSecurityProvider secProv)
                  throws MessageProcessingException
        Description copied from interface: PayloadParser
        Method that initializes the CSMessage parser with properties.

        This method might be called more than once if configuration have been updated and the parser needs to be updated.

        Specified by:
        init in interface PayloadParser
        Parameters:
        config - the configuration of the parser.
        secProv - the related message security provider.
        Throws:
        MessageProcessingException - if configuration contained bad configuration of security provider.
      • genSomePayload

        public SomePayload genSomePayload​(java.lang.String someValue)
      • getNameSpace

        public java.lang.String getNameSpace()
        Specified by:
        getNameSpace in interface PayloadParser
        Returns:
        the related pay load elements unique name space.
      • getJAXBPackage

        public java.lang.String getJAXBPackage()
        Description copied from interface: PayloadParser
        Method that returns the JAXBPackage Name for the package name containing the JAXB classes. For multiple package names use a ':' without spaces.
        Specified by:
        getJAXBPackage in interface PayloadParser
      • getRelatedSchemas

        public java.lang.String[] getRelatedSchemas​(java.lang.String payloadVersion)
        Method that should return related schemas used during payload schema validation.
        Specified by:
        getRelatedSchemas in interface PayloadParser
        Parameters:
        payloadVersion - payload version.
        Returns:
        an array of related schemas if no related schemas exists is empty array returned, never null.