Package org.serviceconnector.service
Class SubscriptionMask
java.lang.Object
org.serviceconnector.service.SubscriptionMask
The Class SubscriptionMask.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the value.static byte[]masking(byte[] baseMask, byte[] newMask) Masking.static Stringmasking(SubscriptionMask currentSubscriptionMask, String mask2) Masking.booleanmatches(SCMPMessage message) Matches.
-
Constructor Details
-
SubscriptionMask
Instantiates a new filter mask.- Parameters:
mask- the mask
-
-
Method Details
-
matches
Matches.- Parameters:
message- the message- Returns:
- true, if successful
-
getValue
Gets the value.- Returns:
- the value
-
masking
Masking. Combines base mask with given new mask.- Parameters:
baseMask- the base masknewMask- 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 maskmask2- the mask2- Returns:
- the string
- Throws:
InvalidMaskLengthException- the invalid mask length exception
-