Class AllowedOrigin


  • public class AllowedOrigin
    extends Object
    AllowedOrigin
    • Constructor Detail

      • AllowedOrigin

        public AllowedOrigin()
    • Method Detail

      • getLinks

        public Links getLinks()
        Get links
        Returns:
        links
      • setLinks

        public void setLinks​(Links links)
      • getDomain

        public String getDomain()
        Domain of the allowed origin.
        Returns:
        domain
      • setDomain

        public void setDomain​(String domain)
      • getId

        public String getId()
        Unique identifier of the allowed origin.
        Returns:
        id
      • setId

        public void setId​(String id)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to AllowedOrigin
      • fromJson

        public static AllowedOrigin fromJson​(String jsonString)
                                      throws IOException
        Create an instance of AllowedOrigin given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of AllowedOrigin
        Throws:
        IOException - if the JSON string is invalid with respect to AllowedOrigin
      • toJson

        public String toJson()
        Convert an instance of AllowedOrigin to an JSON string
        Returns:
        JSON string