Package io.swagger.codegen.v3.utils
Class URLPathUtil
- java.lang.Object
-
- io.swagger.codegen.v3.utils.URLPathUtil
-
public class URLPathUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PATH
static String
DEFAULT_PORT
static String
LOCAL_HOST
protected static org.slf4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description URLPathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getHost(io.swagger.v3.oas.models.OpenAPI openAPI)
static String
getScheme(io.swagger.v3.oas.models.OpenAPI openAPI, CodegenConfig config)
static URL
getServerURL(io.swagger.v3.oas.models.OpenAPI openAPI)
static URL
getServerURL(io.swagger.v3.oas.models.OpenAPI openAPI, CodegenConfig config)
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
DEFAULT_PATH
public static String DEFAULT_PATH
-
DEFAULT_PORT
public static String DEFAULT_PORT
-
LOCAL_HOST
public static final String LOCAL_HOST
- See Also:
- Constant Field Values
-
-
Method Detail
-
getServerURL
public static URL getServerURL(io.swagger.v3.oas.models.OpenAPI openAPI)
-
getServerURL
public static URL getServerURL(io.swagger.v3.oas.models.OpenAPI openAPI, CodegenConfig config)
-
getScheme
public static String getScheme(io.swagger.v3.oas.models.OpenAPI openAPI, CodegenConfig config)
-
getHost
public static String getHost(io.swagger.v3.oas.models.OpenAPI openAPI)
-
-