Interface SubjectMapper
public interface SubjectMapper
An interface for mapping subjects.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAdded to a mapped subject prefix -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGiven a subject, returns a mapping to a new subject.voidinitialise(SubjectMapper.Context context) This notifies theSubjectMapperthat it is about to be loaded.
-
Field Details
-
MAPPED_PREFIX_EXTENSION
- See Also:
-
-
Method Details
-
initialise
This notifies the
SubjectMapperthat it is about to be loaded. This method will be called by the system once.You should use this method to perform any initialisation required before the
SubjectMapperis loaded by the system. -
apply
Given a subject, returns a mapping to a new subject. Future requests for the given subject will be redirected to the new subject.
You should use this method to return a mapping for the given subject.
- Returns:
- the mapped subject.
-