Class SubscriptionMask

java.lang.Object
org.serviceconnector.service.SubscriptionMask

public class SubscriptionMask extends Object
The Class SubscriptionMask.
  • Constructor Details

    • SubscriptionMask

      public SubscriptionMask(String mask)
      Instantiates a new filter mask.
      Parameters:
      mask - the mask
  • Method Details

    • matches

      public boolean matches(SCMPMessage message)
      Matches.
      Parameters:
      message - the message
      Returns:
      true, if successful
    • getValue

      public String getValue()
      Gets the value.
      Returns:
      the value
    • masking

      public static byte[] masking(byte[] baseMask, byte[] newMask) throws InvalidMaskLengthException
      Masking. Combines base mask with given new mask.
      Parameters:
      baseMask - the base mask
      newMask - the new mask
      Returns:
      the byte[]
      Throws:
      InvalidMaskLengthException - the invalid mask length exception
    • masking

      public static String masking(SubscriptionMask currentSubscriptionMask, String mask2) throws InvalidMaskLengthException
      Masking. Combines base mask with given new mask.
      Parameters:
      currentSubscriptionMask - the current subscription mask
      mask2 - the mask2
      Returns:
      the string
      Throws:
      InvalidMaskLengthException - the invalid mask length exception