@@ -58,8 +58,8 @@ public class AbstractSwaggerIndexTransformer {
58
58
/**
59
59
* Instantiates a new Abstract swagger index transformer.
60
60
*
61
- * @param swaggerUiConfig the swagger ui config
62
- * @param swaggerUiOAuthProperties the swagger ui o auth properties
61
+ * @param swaggerUiConfig the swagger ui config
62
+ * @param swaggerUiOAuthProperties the swagger ui o auth properties
63
63
* @param objectMapper the object mapper
64
64
*/
65
65
public AbstractSwaggerIndexTransformer (SwaggerUiConfigProperties swaggerUiConfig , SwaggerUiOAuthProperties swaggerUiOAuthProperties , ObjectMapper objectMapper ) {
@@ -71,8 +71,8 @@ public AbstractSwaggerIndexTransformer(SwaggerUiConfigProperties swaggerUiConfig
71
71
/**
72
72
* Add init oauth string.
73
73
*
74
- * @param html the html
75
- * @return the string
74
+ * @param html the html
75
+ * @return the string
76
76
* @throws JsonProcessingException the json processing exception
77
77
*/
78
78
protected String addInitOauth (String html ) throws JsonProcessingException {
@@ -87,8 +87,8 @@ protected String addInitOauth(String html) throws JsonProcessingException {
87
87
/**
88
88
* Read fully as string string.
89
89
*
90
- * @param inputStream the input stream
91
- * @return the string
90
+ * @param inputStream the input stream
91
+ * @return the string
92
92
* @throws IOException the io exception
93
93
*/
94
94
protected String readFullyAsString (InputStream inputStream )
@@ -105,18 +105,30 @@ protected String readFullyAsString(InputStream inputStream)
105
105
/**
106
106
* Overwrite swagger default url string.
107
107
*
108
- * @param html the html
108
+ * @param html the html
109
109
* @return the string
110
110
*/
111
111
protected String overwriteSwaggerDefaultUrl (String html ) {
112
112
return html .replace (Constants .SWAGGER_UI_DEFAULT_URL , StringUtils .EMPTY );
113
113
}
114
114
115
+ /**
116
+ * Has default transformations boolean.
117
+ *
118
+ * @return the boolean
119
+ */
115
120
protected boolean hasDefaultTransformations () {
116
121
boolean oauth2Configured = !CollectionUtils .isEmpty (swaggerUiOAuthProperties .getConfigParameters ());
117
122
return oauth2Configured || swaggerUiConfig .isDisableSwaggerDefaultUrl ();
118
123
}
119
124
125
+ /**
126
+ * Default transformations string.
127
+ *
128
+ * @param inputStream the input stream
129
+ * @return the string
130
+ * @throws IOException the io exception
131
+ */
120
132
protected String defaultTransformations (InputStream inputStream ) throws IOException {
121
133
String html = readFullyAsString (inputStream );
122
134
if (!CollectionUtils .isEmpty (swaggerUiOAuthProperties .getConfigParameters ())) {
0 commit comments