Class ServerConfiguration


  • public class ServerConfiguration
    extends java.lang.Object
    Representing a Server configuration.
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerConfiguration​(java.lang.String URL, java.lang.String description, java.util.Map<java.lang.String,​ServerVariable> variables)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String URL()
      Format URL template using default server variables.
      java.lang.String URL​(java.util.Map<java.lang.String,​java.lang.String> variables)
      Format URL template using given variables.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • URL

        public java.lang.String URL
      • description

        public java.lang.String description
      • variables

        public java.util.Map<java.lang.String,​ServerVariable> variables
    • Constructor Detail

      • ServerConfiguration

        public ServerConfiguration​(java.lang.String URL,
                                   java.lang.String description,
                                   java.util.Map<java.lang.String,​ServerVariable> variables)
        Parameters:
        URL - A URL to the target host.
        description - A description of the host designated by the URL.
        variables - A map between a variable name and its value. The value is used for substitution in the server's URL template.
    • Method Detail

      • URL

        public java.lang.String URL​(java.util.Map<java.lang.String,​java.lang.String> variables)
        Format URL template using given variables.
        Parameters:
        variables - A map between a variable name and its value.
        Returns:
        Formatted URL.
      • URL

        public java.lang.String URL()
        Format URL template using default server variables.
        Returns:
        Formatted URL.