Interface SubjectMapper


public interface SubjectMapper
An interface for mapping subjects.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Added to a mapped subject prefix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(String subject)
    Given a subject, returns a mapping to a new subject.
    void
    This notifies the SubjectMapper that it is about to be loaded.
  • Field Details

  • Method Details

    • initialise

      void initialise(SubjectMapper.Context context)

      This notifies the SubjectMapper that 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 SubjectMapper is loaded by the system.

    • apply

      String apply(String subject)

      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.