Package org.springdoc.core
Class SwaggerUiConfigParameters
- java.lang.Object
-
- org.springdoc.core.AbstractSwaggerUiConfigProperties
-
- org.springdoc.core.SwaggerUiConfigParameters
-
@Lazy(false) @Configuration(proxyBeanMethods=false) @ConditionalOnProperty(name="springdoc.swagger-ui.enabled", matchIfMissing=true) @ConditionalOnBean(SpringDocConfiguration.class) public class SwaggerUiConfigParameters extends AbstractSwaggerUiConfigPropertiesThe type Swagger ui config parameters.- Author:
- bnasslahsen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springdoc.core.AbstractSwaggerUiConfigProperties
AbstractSwaggerUiConfigProperties.SwaggerUrl
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_URL_PROPERTYThe constant CONFIG_URL_PROPERTY.static StringDEEP_LINKING_PROPERTYThe constant DEEP_LINKING.static StringDISPLAY_OPERATION_ID_PROPERTYThe constant DISPLAY_OPERATION_ID.static StringDISPLAY_REQUEST_DURATION_PROPERTYThe constant DISPLAY_REQUEST_DURATION.static StringFILTER_PROPERTYThe constant FILTER_PROPERTY.static StringLAYOUT_PROPERTYThe constant LAYOUT_PROPERTY.static StringOAUTH2_REDIRECT_URL_PROPERTYThe constant OAUTH2_REDIRECT_URL_PROPERTY.static StringPERSIST_AUTHORIZATION_PROPERTYThe constant PERSIST_AUTHORIZATION_PROPERTY.static StringQUERY_CONFIG_ENABLED_PROPERTYThe constant QUERY_CONFIG_ENABLED_PROPERTY.static StringSHOW_COMMON_EXTENSIONS_PROPERTYThe constant SHOW_COMMON_EXTENSIONS_PROPERTY.static StringSHOW_EXTENSIONS_PROPERTYThe constant SHOW_EXTENSIONS_PROPERTY.static StringTRY_IT_ENABLED_PROPERTYThe constant TRY_IT_ENABLED_PROPERTY.static StringURL_PROPERTYThe constant URL_PROPERTY.static StringURLS_PROPERTYThe constant URLS_PROPERTY.static StringVALIDATOR_URL_PROPERTYThe constant VALIDATOR_URL_PROPERTY.static StringWITH_CREDENTIALS_PROPERTYThe constant WITH_CREDENTIALS_PROPERTY.-
Fields inherited from class org.springdoc.core.AbstractSwaggerUiConfigProperties
configUrl, deepLinking, defaultModelExpandDepth, defaultModelRendering, defaultModelsExpandDepth, displayOperationId, displayRequestDuration, docExpansion, filter, groupsOrder, layout, maxDisplayedTags, oauth2RedirectUrl, operationsSorter, path, persistAuthorization, queryConfigEnabled, showCommonExtensions, showExtensions, supportedSubmitMethods, tagsSorter, tryItOutEnabled, url, urls, urlsPrimaryName, validatorUrl, withCredentials
-
-
Constructor Summary
Constructors Constructor Description SwaggerUiConfigParameters(SwaggerUiConfigProperties swaggerUiConfig)Instantiates a new Swagger ui config parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(String group)Add group.voidaddGroup(String group, String displayName)Add group.voidaddUrl(String url)Add url.Map<String,Object>getConfigParameters()Gets config parameters.StringgetUiRootPath()Gets ui root path.booleanisValidUrl(String url)Is valid url boolean.voidsetUiRootPath(String uiRootPath)Sets ui root path.-
Methods inherited from class org.springdoc.core.AbstractSwaggerUiConfigProperties
getConfigUrl, getDeepLinking, getDefaultModelExpandDepth, getDefaultModelRendering, getDefaultModelsExpandDepth, getDisplayOperationId, getDisplayRequestDuration, getDocExpansion, getFilter, getGroupsOrder, getLayout, getMaxDisplayedTags, getOauth2RedirectUrl, getOperationsSorter, getPath, getPersistAuthorization, getQueryConfigEnabled, getShowCommonExtensions, getShowExtensions, getSupportedSubmitMethods, getTagsSorter, getTryItOutEnabled, getUrl, getUrls, getUrlsPrimaryName, getValidatorUrl, getWithCredentials, setConfigUrl, setDeepLinking, setDefaultModelExpandDepth, setDefaultModelRendering, setDefaultModelsExpandDepth, setDisplayOperationId, setDisplayRequestDuration, setDocExpansion, setFilter, setGroupsOrder, setLayout, setMaxDisplayedTags, setOauth2RedirectUrl, setOperationsSorter, setPath, setPersistAuthorization, setQueryConfigEnabled, setShowCommonExtensions, setShowExtensions, setSupportedSubmitMethods, setTagsSorter, setTryItOutEnabled, setUrl, setUrls, setUrlsPrimaryName, setValidatorUrl, setWithCredentials
-
-
-
-
Field Detail
-
CONFIG_URL_PROPERTY
public static final String CONFIG_URL_PROPERTY
The constant CONFIG_URL_PROPERTY.- See Also:
- Constant Field Values
-
LAYOUT_PROPERTY
public static final String LAYOUT_PROPERTY
The constant LAYOUT_PROPERTY.- See Also:
- Constant Field Values
-
FILTER_PROPERTY
public static final String FILTER_PROPERTY
The constant FILTER_PROPERTY.- See Also:
- Constant Field Values
-
URL_PROPERTY
public static final String URL_PROPERTY
The constant URL_PROPERTY.- See Also:
- Constant Field Values
-
URLS_PROPERTY
public static final String URLS_PROPERTY
The constant URLS_PROPERTY.- See Also:
- Constant Field Values
-
OAUTH2_REDIRECT_URL_PROPERTY
public static final String OAUTH2_REDIRECT_URL_PROPERTY
The constant OAUTH2_REDIRECT_URL_PROPERTY.- See Also:
- Constant Field Values
-
VALIDATOR_URL_PROPERTY
public static final String VALIDATOR_URL_PROPERTY
The constant VALIDATOR_URL_PROPERTY.- See Also:
- Constant Field Values
-
QUERY_CONFIG_ENABLED_PROPERTY
public static final String QUERY_CONFIG_ENABLED_PROPERTY
The constant QUERY_CONFIG_ENABLED_PROPERTY.- See Also:
- Constant Field Values
-
DISPLAY_OPERATION_ID_PROPERTY
public static final String DISPLAY_OPERATION_ID_PROPERTY
The constant DISPLAY_OPERATION_ID.- See Also:
- Constant Field Values
-
DEEP_LINKING_PROPERTY
public static final String DEEP_LINKING_PROPERTY
The constant DEEP_LINKING.- See Also:
- Constant Field Values
-
DISPLAY_REQUEST_DURATION_PROPERTY
public static final String DISPLAY_REQUEST_DURATION_PROPERTY
The constant DISPLAY_REQUEST_DURATION.- See Also:
- Constant Field Values
-
SHOW_EXTENSIONS_PROPERTY
public static final String SHOW_EXTENSIONS_PROPERTY
The constant SHOW_EXTENSIONS_PROPERTY.- See Also:
- Constant Field Values
-
SHOW_COMMON_EXTENSIONS_PROPERTY
public static final String SHOW_COMMON_EXTENSIONS_PROPERTY
The constant SHOW_COMMON_EXTENSIONS_PROPERTY.- See Also:
- Constant Field Values
-
TRY_IT_ENABLED_PROPERTY
public static final String TRY_IT_ENABLED_PROPERTY
The constant TRY_IT_ENABLED_PROPERTY.- See Also:
- Constant Field Values
-
PERSIST_AUTHORIZATION_PROPERTY
public static final String PERSIST_AUTHORIZATION_PROPERTY
The constant PERSIST_AUTHORIZATION_PROPERTY.- See Also:
- Constant Field Values
-
WITH_CREDENTIALS_PROPERTY
public static final String WITH_CREDENTIALS_PROPERTY
The constant WITH_CREDENTIALS_PROPERTY.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SwaggerUiConfigParameters
public SwaggerUiConfigParameters(SwaggerUiConfigProperties swaggerUiConfig)
Instantiates a new Swagger ui config parameters.- Parameters:
swaggerUiConfig- the swagger ui config
-
-
Method Detail
-
addGroup
public void addGroup(String group, String displayName)
Add group.- Parameters:
group- the groupdisplayName- the display name
-
addGroup
public void addGroup(String group)
Add group.- Parameters:
group- the group
-
addUrl
public void addUrl(String url)
Add url.- Parameters:
url- the url
-
getUiRootPath
public String getUiRootPath()
Gets ui root path.- Returns:
- the ui root path
-
setUiRootPath
public void setUiRootPath(String uiRootPath)
Sets ui root path.- Parameters:
uiRootPath- the ui root path
-
isValidUrl
public boolean isValidUrl(String url)
Is valid url boolean.- Parameters:
url- the url- Returns:
- the boolean
-
-