Package io.iworkflow.gen.api
Class ServerConfiguration
- java.lang.Object
-
- io.iworkflow.gen.api.ServerConfiguration
-
public class ServerConfiguration extends java.lang.ObjectRepresenting a Server configuration.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringdescriptionjava.lang.StringURLjava.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringURL()Format URL template using default server variables.java.lang.StringURL(java.util.Map<java.lang.String,java.lang.String> variables)Format URL template using given variables.
-
-
-
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.
-
-