com.arjuna.mw.wst11.client.DisabledWSTXHandler Maven / Gradle / Ivy
The newest version!
/*
Copyright The Narayana Authors
SPDX-License-Identifier: Apache-2.0
*/
package com.arjuna.mw.wst11.client;
import jakarta.xml.ws.handler.soap.SOAPMessageContext;
/**
* This handler is used when default-context-propagation
is disabled. It handles messages only if WSTXFeature is
* enabled.
*
* @author Gytis Trikleris
*
*/
public final class DisabledWSTXHandler extends AbstractWSTXHandler {
/**
* @see com.arjuna.mw.wst11.client.AbstractWSTXHandler#isContextPropagationEnabled(SOAPMessageContext)
*
* @return true if WSTXFeature is present and is enabled, false otherwise.
*/
@Override
protected boolean isContextPropagationEnabled(SOAPMessageContext context) {
return WSTXFeature.ENABLED_VALUE.equals(context.get(WSTXFeature.REQUEST_CONTEXT_KEY));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy