Class ServerConfiguration
java.lang.Object
com.kryptokrauts.sophia.compiler.generated.ServerConfiguration
public class ServerConfiguration
extends java.lang.Object
Representing a Server configuration.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
description
java.lang.String
URL
java.util.Map<java.lang.String,ServerVariable>
variables
-
Constructor Summary
Constructors Constructor Description ServerConfiguration(java.lang.String URL, java.lang.String description, java.util.Map<java.lang.String,ServerVariable> variables)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
URL
public java.lang.String URL -
description
public java.lang.String description -
variables
-
-
Constructor Details
-
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 describtion 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 Details
-
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.
-