Skip to content

Commit

Permalink
FDP-94: Add todo's
Browse files Browse the repository at this point in the history
Signed-off-by: Jasper Kamerling <[email protected]>
  • Loading branch information
jasperkamerling committed Nov 17, 2023
1 parent a684d93 commit a431a7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public HttpsURLConnection createConnection(
connection.setSSLSocketFactory(sslContext.getSocketFactory());
connection.setDoInput(true);
connection.setDoOutput(true);
// TODO use constants for properties and method
connection.setRequestMethod("POST");
connection.setRequestProperty(
"Accept-Encoding", "text/xml;charset=" + StandardCharsets.UTF_8.name());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ private void createSuccessFulResponse(final HttpServletResponse response, final
throws IOException {
LOGGER.debug("Start - creating successful response");
response.setStatus(HttpServletResponse.SC_OK);
// TODO use constants for headers
response.addHeader("SOAP-ACTION", "");
response.addHeader("Keep-Alive", "timeout=5, max=100");
response.addHeader("Accept", "text/xml");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SoapEndpointConfiguration(
port: Int,
protocol: String
) {

// TODO Use java.net.URI class
val hostAndPort = "$host:$port"
val uri = "$protocol://${hostAndPort}"
}

0 comments on commit a431a7b

Please sign in to comment.