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 StringDEFAULT_PATHstatic StringDEFAULT_PORTstatic StringLOCAL_HOSTprotected static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description URLPathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetHost(io.swagger.v3.oas.models.OpenAPI openAPI)static StringgetScheme(io.swagger.v3.oas.models.OpenAPI openAPI, CodegenConfig config)static URLgetServerURL(io.swagger.v3.oas.models.OpenAPI openAPI)static URLgetServerURL(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)
-
-