2 * Copyright (c) 2010-2021 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.helios.internal.ws.soap;
15 import java.util.HashSet;
18 import javax.xml.namespace.QName;
19 import javax.xml.ws.handler.MessageContext;
20 import javax.xml.ws.handler.soap.SOAPHandler;
21 import javax.xml.ws.handler.soap.SOAPMessageContext;
24 * The {@link SOAPActionHandler} is a custom SOAP handler that modifies some SOAP
25 * headers in order to get the Helios comm. working
27 * @author Karel Goderis - Initial contribution
29 public class SOAPActionHandler implements SOAPHandler<SOAPMessageContext> {
31 public boolean handleMessage(SOAPMessageContext context) {
37 public boolean handleFault(SOAPMessageContext context) {
43 public void close(MessageContext context) {
48 public Set<QName> getHeaders() {
49 Set<QName> set = new HashSet<>();
50 // Make sure the '[{http://www.w3.org/2005/08/addressing}]Action' header
51 // is handled in case the device set the 'MustUnderstand' attribute to
53 set.add(new QName("http://www.w3.org/2005/08/addressing", "Action"));