public class SubjectMapping extends java.lang.Object implements ISubjectMapping
ISubjectMapping
interface. You must create instances of this class if you want to
use tiering or subject mapping.Constructor and Description |
---|
SubjectMapping(java.lang.String mapFromPattern,
java.lang.String mapToPattern)
Initializes a new instance of the
SubjectMapping class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMapFromPattern()
Gets the pattern that will match a request for a subject.
|
java.lang.String |
getMapToPattern()
Gets the pattern that client requests matching
ISubjectMapping.getMapFromPattern() will be mapped to. |
void |
setMapFromPattern(java.lang.String value)
Sets the pattern that will match a request for a subject.
|
void |
setMapToPattern(java.lang.String value)
Sets the pattern that client requests matching
ISubjectMapping.getMapFromPattern() will be mapped to. |
java.lang.String |
toString()
Returns a String that represents this instance.
|
public SubjectMapping(java.lang.String mapFromPattern, java.lang.String mapToPattern)
SubjectMapping
class.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.public java.lang.String getMapFromPattern()
ISubjectMapping
The pattern is an Extended regular expression and can contain captures.
getMapFromPattern
in interface ISubjectMapping
public void setMapFromPattern(java.lang.String value)
ISubjectMapping
The pattern is an Extended regular expression and can contain captures.
setMapFromPattern
in interface ISubjectMapping
value
- The pattern.public java.lang.String getMapToPattern()
ISubjectMapping
ISubjectMapping.getMapFromPattern()
will be mapped to.
The pattern should contain references to capture registers.
getMapToPattern
in interface ISubjectMapping
public void setMapToPattern(java.lang.String value)
ISubjectMapping
ISubjectMapping.getMapFromPattern()
will be mapped to.
The pattern should contain references to capture registers.
setMapToPattern
in interface ISubjectMapping
value
- The Pattern.public java.lang.String toString()
toString
in class java.lang.Object
Please send bug reports and comments to Caplin support