Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonar cleanup: WsdlFirstClientHandler #41

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,21 @@
*/
public class WsdlFirstClientHandler implements SOAPHandler<SOAPMessageContext> {

Logger log = LoggerFactory.getLogger(WsdlFirstClientHandler.class);
private static final Logger LOG = LoggerFactory.getLogger(WsdlFirstClientHandler.class);

@Override
public Set<QName> getHeaders() {
return null;
return Set.of();
}

@Override
public void close(MessageContext messageContext) {
LOG.info("Closing");
}

@Override
public boolean handleFault(SOAPMessageContext context) {
LOG.warn("Handling fault");
return true;
}

Expand All @@ -38,9 +40,9 @@ public boolean handleMessage(SOAPMessageContext context) {
Boolean outbound = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);

if (Boolean.TRUE.equals(outbound)) {
log.info("WsdlFirstService client handler - outbound");
LOG.info("WsdlFirstService client handler - outbound");
} else {
log.info("WsdlFirstService client handler - inbound");
LOG.info("WsdlFirstService client handler - inbound");
}

return true;
Expand Down