@@ -43,7 +43,7 @@ public class WebControllerUtils {
43
43
@ Value ("${ei.frontend.service.host:#{null}}" )
44
44
private String frontendServiceHost ;
45
45
46
- @ Value ("${server .port:#{null}}" )
46
+ @ Value ("${ei.frontend.service .port:#{null}}" )
47
47
private int frontendServicePort ;
48
48
49
49
@ Value ("${ei.frontend.context.path:#{null}}" )
@@ -76,19 +76,18 @@ public void init() throws IOException {
76
76
/**
77
77
* Formats the parameters in the class to an URL as String.
78
78
*
79
- * @return String
80
- * URL to this service
79
+ * @return String URL to this service
81
80
*/
82
81
public String getFrontEndServiceUrl () {
83
82
String requestedUrl = null ;
84
83
String http = "http" ;
85
84
String contextPath = "" ;
86
85
if (useSecureHttpFrontend ) {
87
- http = "https" ;
86
+ http = "https" ;
88
87
}
89
88
90
89
if (frontendContextPath != null && !frontendContextPath .isEmpty ()) {
91
- contextPath = ("/" + frontendContextPath ).replace ("//" , "/" );
90
+ contextPath = ("/" + frontendContextPath ).replace ("//" , "/" );
92
91
}
93
92
94
93
requestedUrl = String .format ("%s://%s:%d%s" , http , frontendServiceHost , frontendServicePort , contextPath );
@@ -101,8 +100,7 @@ public String getFrontEndServiceUrl() {
101
100
* BackendInformation for this name, or null if no name was found.
102
101
*
103
102
* @param httpSession
104
- * @return String
105
- * URL from found BackendInformation
103
+ * @return String URL from found BackendInformation
106
104
*/
107
105
public String getBackEndServiceUrl (HttpSession httpSession ) {
108
106
String activeInstance = null ;
0 commit comments