All Downloads are FREE. Search and download functionalities are using the official Maven repository.

network.oxalis.as4.inbound.MessagingHandler Maven / Gradle / Ivy

There is a newer version: 6.7.0
Show newest version
package network.oxalis.as4.inbound;

import javax.xml.namespace.QName;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.handler.soap.SOAPMessageContext;
import java.util.Collections;
import java.util.Set;

public class MessagingHandler implements SOAPHandler {
    @Override
    public Set getHeaders() {

        QName messagingHeader = new QName(
                "http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/",
                "Messaging"
        );

        return Collections.singleton(messagingHeader);
    }

    @Override
    public boolean handleMessage(SOAPMessageContext context) {
        return true;
    }

    @Override
    public boolean handleFault(SOAPMessageContext context) {
        return true;
    }

    @Override
    public void close(MessageContext context) {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy