org.mule.service.soap.metadata.OutputHeadersMetadataResolver Maven / Gradle / Ivy
/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.service.soap.metadata;
import org.mule.metadata.api.TypeLoader;
import org.mule.metadata.api.model.MetadataType;
import org.mule.runtime.api.metadata.MetadataResolvingException;
import org.mule.wsdl.parser.model.PortModel;
import org.mule.wsdl.parser.model.WsdlModel;
import org.mule.wsdl.parser.model.operation.OperationModel;
import java.util.Map;
/**
* {@link HeadersMetadataResolver} implementation for output headers metadata.
*
* @since 1.0
*/
public class OutputHeadersMetadataResolver extends HeadersMetadataResolver {
OutputHeadersMetadataResolver(WsdlModel wsdl, PortModel port, TypeLoader loader) {
super(wsdl, port, loader, OperationModel::getOutputMessage, OperationModel::getOutputHeaders);
}
@Override
public MetadataType getMetadata(String operation) throws MetadataResolvingException {
return isOneWay(operation) ? nullType : super.getMetadata(operation);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy