Package ch.admin.bit.jeap.swagger
Class SwaggerProperties
java.lang.Object
ch.admin.bit.jeap.swagger.SwaggerProperties
@AutoConfiguration
@PropertySource("classpath:SwaggerDefaultConfiguration.properties")
@ConfigurationProperties(prefix="jeap.swagger")
public class SwaggerProperties
extends Object
Configurations for Swagger in Blueprint Microservice
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAnt-Patters which paths are part of swagger ui.ch.admin.bit.jeap.swagger.SwaggerProperties.OauthgetOauth()ch.admin.bit.jeap.swagger.SwaggerProperties.Secured@NonNull SwaggerProperties.SwaggerStatusThe status of swagger in the project: *SwaggerProperties.SwaggerStatus.OPENswagger can be accessed without authentication, *SwaggerProperties.SwaggerStatus.SECUREDswagger can only be accessed with basic auth, *SwaggerProperties.SwaggerStatus.DISABLEDswagger cannot be accessed *SwaggerProperties.SwaggerStatus.CUSTOMno spring security configuration at all Default is DISABLED, but you can set it to OPEN for local environmentsinthashCode()booleanWhen set to true, Server definitions delivered to Swagger Frontend will have https as protocol instead of http.voidsetAntPathPatters(@NonNull List<String> antPathPatters) Ant-Patters which paths are part of swagger ui.voidsetEnforceServerBaseHttps(boolean enforceServerBaseHttps) When set to true, Server definitions delivered to Swagger Frontend will have https as protocol instead of http.voidsetOauth(ch.admin.bit.jeap.swagger.SwaggerProperties.Oauth oauth) voidsetSecured(ch.admin.bit.jeap.swagger.SwaggerProperties.Secured secured) voidsetStatus(@NonNull SwaggerProperties.SwaggerStatus status) The status of swagger in the project: *SwaggerProperties.SwaggerStatus.OPENswagger can be accessed without authentication, *SwaggerProperties.SwaggerStatus.SECUREDswagger can only be accessed with basic auth, *SwaggerProperties.SwaggerStatus.DISABLEDswagger cannot be accessed *SwaggerProperties.SwaggerStatus.CUSTOMno spring security configuration at all Default is DISABLED, but you can set it to OPEN for local environmentstoString()
-
Constructor Details
-
SwaggerProperties
public SwaggerProperties()
-
-
Method Details
-
getOauth
public ch.admin.bit.jeap.swagger.SwaggerProperties.Oauth getOauth() -
getSecured
public ch.admin.bit.jeap.swagger.SwaggerProperties.Secured getSecured() -
getStatus
The status of swagger in the project: *SwaggerProperties.SwaggerStatus.OPENswagger can be accessed without authentication, *SwaggerProperties.SwaggerStatus.SECUREDswagger can only be accessed with basic auth, *SwaggerProperties.SwaggerStatus.DISABLEDswagger cannot be accessed *SwaggerProperties.SwaggerStatus.CUSTOMno spring security configuration at all Default is DISABLED, but you can set it to OPEN for local environments -
getAntPathPatters
Ant-Patters which paths are part of swagger ui. Usually you do not need to change this -
isEnforceServerBaseHttps
public boolean isEnforceServerBaseHttps()When set to true, Server definitions delivered to Swagger Frontend will have https as protocol instead of http. This is useful for architectures where the microservice listens to http and is behind a load balancer or reverse proxy configured to listen to https -
setOauth
public void setOauth(ch.admin.bit.jeap.swagger.SwaggerProperties.Oauth oauth) -
setSecured
public void setSecured(ch.admin.bit.jeap.swagger.SwaggerProperties.Secured secured) -
setStatus
The status of swagger in the project: *SwaggerProperties.SwaggerStatus.OPENswagger can be accessed without authentication, *SwaggerProperties.SwaggerStatus.SECUREDswagger can only be accessed with basic auth, *SwaggerProperties.SwaggerStatus.DISABLEDswagger cannot be accessed *SwaggerProperties.SwaggerStatus.CUSTOMno spring security configuration at all Default is DISABLED, but you can set it to OPEN for local environments -
setAntPathPatters
Ant-Patters which paths are part of swagger ui. Usually you do not need to change this -
setEnforceServerBaseHttps
public void setEnforceServerBaseHttps(boolean enforceServerBaseHttps) When set to true, Server definitions delivered to Swagger Frontend will have https as protocol instead of http. This is useful for architectures where the microservice listens to http and is behind a load balancer or reverse proxy configured to listen to https -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-