org.mule.service.soap.metadata.OutputBodyMetadataResolver 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.operation.OperationModel;
import java.util.Map;
/**
* {@link BodyMetadataResolver} implementation for the output soap body.
*
* @since 1.0
*/
final class OutputBodyMetadataResolver extends BodyMetadataResolver {
OutputBodyMetadataResolver(PortModel definition, TypeLoader loader) {
super(definition, loader, OperationModel::getOutputBodyPart);
}
@Override
public MetadataType getMetadata(String operation) throws MetadataResolvingException {
return isOneWay(operation) ? nullType : super.getMetadata(operation);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy