Class RegisteredServiceJsonSerializer

java.lang.Object
org.apereo.cas.util.serialization.AbstractJacksonBackedStringSerializer<org.apereo.cas.services.RegisteredService>
org.apereo.cas.services.util.BaseRegisteredServiceSerializer
org.apereo.cas.services.util.RegisteredServiceJsonSerializer
All Implemented Interfaces:
Serializable, org.apereo.cas.util.serialization.StringSerializer<org.apereo.cas.services.RegisteredService>
Direct Known Subclasses:
RegisteredServiceYamlSerializer

public class RegisteredServiceJsonSerializer extends BaseRegisteredServiceSerializer
Serializes registered services to JSON based on the Jackson JSON library.
Since:
4.1.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegisteredServiceJsonSerializer(org.springframework.context.ConfigurableApplicationContext applicationContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.springframework.http.MediaType>
     
    Class<org.apereo.cas.services.RegisteredService>
     
    boolean
    supports(File file)
     
    boolean
    supports(String content)
     

    Methods inherited from class org.apereo.cas.util.serialization.AbstractJacksonBackedStringSerializer

    from, from, from, from, from, fromList, fromList, getObjectMapper, getPrettyPrinter, merge, to, to, to, toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apereo.cas.util.serialization.StringSerializer

    load, load
  • Constructor Details

    • RegisteredServiceJsonSerializer

      public RegisteredServiceJsonSerializer(org.springframework.context.ConfigurableApplicationContext applicationContext)
  • Method Details

    • supports

      public boolean supports(File file)
    • supports

      public boolean supports(String content)
    • getTypeToSerialize

      public Class<org.apereo.cas.services.RegisteredService> getTypeToSerialize()
    • getContentTypes

      public List<org.springframework.http.MediaType> getContentTypes()