Class MappedViewPath

  • Direct Known Subclasses:
    HiddenViewPath

    public class MappedViewPath
    extends java.lang.Object
    Gsp application view rest mapping. Represent mapping of sub url into prefixed rest.

    Mapping scheme: /[mapping path] -> [rest prefix]/path.

    Since:
    05.12.2019
    • Constructor Summary

      Constructors 
      Constructor Description
      MappedViewPath​(ViewPath path, java.lang.String mapping, java.lang.String prefix)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMappedUrl()  
      java.lang.String getMapping()
      Returned url never starts with slash, but alwasys ends with slash.
      ViewPath getPath()  
      java.lang.String getPrefix()
      Returned prefix starts and ends with slash.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MappedViewPath

        public MappedViewPath​(ViewPath path,
                              java.lang.String mapping,
                              java.lang.String prefix)
    • Method Detail

      • getPath

        public ViewPath getPath()
        Returns:
        hidden rest path
      • getMapping

        public java.lang.String getMapping()
        Returned url never starts with slash, but alwasys ends with slash. Empty string used for root path.
        Returns:
        resource prefix mapping url
      • getPrefix

        public java.lang.String getPrefix()
        Returned prefix starts and ends with slash.
        Returns:
        rest prefix used for matching.
      • getMappedUrl

        public java.lang.String getMappedUrl()
        Returns:
        server pages application url, leading to this rest method
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object