Interface DigestGenerator

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    DOMHASHGenerator, HttpRequestHashGenerator, REQUESTHASHGenerator

    public interface DigestGenerator
    extends Serializable
    This is the primary interface for the DigestGenerator which is the unique SOAP request identifier generation interface to be used by the CacheManager inorder to generate a unique identifier key for the normalized XML/SOAP message. This has to be serializable because the DigestGenerator implementations has to be serializable to support clustered caching
    See Also:
    Serializable
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getDigest​(org.apache.axis2.context.MessageContext msgContext)
      This method will be implemented to return the unique XML node identifier on the given XML node
      void init​(Map<String,​Object> properties)
      If more properties are needed to generate the hash other than the MessageContext it can be initialized via this method
    • Method Detail

      • init

        void init​(Map<String,​Object> properties)
        If more properties are needed to generate the hash other than the MessageContext it can be initialized via this method
        Parameters:
        properties - A list of other properties used to generate the hash
      • getDigest

        String getDigest​(org.apache.axis2.context.MessageContext msgContext)
                  throws CachingException
        This method will be implemented to return the unique XML node identifier on the given XML node
        Parameters:
        msgContext - - MessageContext on which the unique identifier will be generated
        Returns:
        Object representing the unique identifier for the msgContext
        Throws:
        CachingException - if there is an error in generating the digest key