Class ModelTypeLinkRelationProvider

  • All Implemented Interfaces:
    org.springframework.hateoas.server.LinkRelationProvider, org.springframework.plugin.core.Plugin<org.springframework.hateoas.server.LinkRelationProvider.LookupContext>

    public class ModelTypeLinkRelationProvider
    extends Object
    implements org.springframework.hateoas.server.LinkRelationProvider
    Rel provider for ModelType
    • Field Detail

      • collectionResourceRel

        public static final org.springframework.hateoas.LinkRelation collectionResourceRel
      • itemResourceRel

        public static final org.springframework.hateoas.LinkRelation itemResourceRel
    • Constructor Detail

      • ModelTypeLinkRelationProvider

        public ModelTypeLinkRelationProvider()
    • Method Detail

      • getItemResourceRelFor

        public org.springframework.hateoas.LinkRelation getItemResourceRelFor​(Class<?> type)
        Specified by:
        getItemResourceRelFor in interface org.springframework.hateoas.server.LinkRelationProvider
      • getCollectionResourceRelFor

        public org.springframework.hateoas.LinkRelation getCollectionResourceRelFor​(Class<?> type)
        Specified by:
        getCollectionResourceRelFor in interface org.springframework.hateoas.server.LinkRelationProvider
      • supports

        public boolean supports​(org.springframework.hateoas.server.LinkRelationProvider.LookupContext delimiter)
        Specified by:
        supports in interface org.springframework.hateoas.server.LinkRelationProvider
        Specified by:
        supports in interface org.springframework.plugin.core.Plugin<org.springframework.hateoas.server.LinkRelationProvider.LookupContext>