Class SubjectMapping

  • All Implemented Interfaces:
    ISubjectMapping

    public class SubjectMapping
    extends java.lang.Object
    implements ISubjectMapping
    An implementation of the ISubjectMapping interface. You must create instances of this class if you want to use tiering or subject mapping.
    • Constructor Summary

      Constructors 
      Constructor Description
      SubjectMapping​(java.lang.String mapFromPattern, java.lang.String mapToPattern)
      Initializes a new instance of the SubjectMapping class.
    • Constructor Detail

      • SubjectMapping

        public SubjectMapping​(java.lang.String mapFromPattern,
                              java.lang.String mapToPattern)
        Initializes a new instance of the SubjectMapping class.
        Parameters:
        mapFromPattern - The pattern that will match a request for a subject. See the getMapFromPattern() method.
        mapToPattern - The pattern that client requests matching mapFromPattern will be mapped to. See the getMapToPattern() method.
    • Method Detail

      • getMapFromPattern

        public java.lang.String getMapFromPattern()
        Description copied from interface: ISubjectMapping
        Gets the pattern that will match a request for a subject.

        The pattern is an Extended regular expression and can contain captures.

        Specified by:
        getMapFromPattern in interface ISubjectMapping
        Returns:
        The pattern.
      • setMapFromPattern

        public void setMapFromPattern​(java.lang.String value)
        Description copied from interface: ISubjectMapping
        Sets the pattern that will match a request for a subject.

        The pattern is an Extended regular expression and can contain captures.

        Specified by:
        setMapFromPattern in interface ISubjectMapping
        Parameters:
        value - The pattern.
      • toString

        public java.lang.String toString()
        Returns a String that represents this instance.
        Overrides:
        toString in class java.lang.Object