/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Implementation of {@link WSDLBoundPortType}
*
* @author Vivek Pandey
*/
public final class WSDLBoundPortTypeImpl extends AbstractFeaturedObjectImpl implements WSDLBoundPortType {
private final QNameMap<WSDLBoundOperationImpl> bindingOperations = new QNameMap<WSDLBoundOperationImpl>();
/**
* Operations keyed by the payload tag name.
*/
/**
* {@link #payloadMap} doesn't allow null key, so we store the value for it here.
*/
public WSDLBoundPortTypeImpl(XMLStreamReader xsr,@NotNull WSDLModelImpl owner, QName name, QName portTypeName) {
super(xsr);
this.portTypeName = portTypeName;
owner.addBinding(this);
}
return name;
}
return owner;
}
}
/**
* Populates the Map that holds operation name as key and {@link WSDLBoundOperation} as the value.
*
* @param opName Must be non-null
* @param ptOp Must be non-null
* @throws NullPointerException if either opName or ptOp is null
*/
}
return portTypeName;
}
return portType;
}
return bindingOperations.values();
}
//JBI bug 6509800
}
}
/**
* sets whether the {@link WSDLBoundPortType} is rpc or lit
*/
}
return style;
}
public boolean isRpcLit(){
}
public boolean isDoclit(){
}
/**
*
* @param operation wsdl:operation@name value. Must be non-null.
* @param part wsdl:part@name such as value of soap:header@part. Must be non-null.
* @param mode {@link Mode#IN} or {@link Mode@OUT}. Must be non-null.
* @return null if the binding could not be resolved for the part.
*/
//TODO throw exception
return null;
}
else
}
/**
* Gets mime:content@part value which is the MIME type for a given operation, part and {@link Mode}.
*
* @param operation wsdl:operation@name value. Must be non-null.
* @param part wsdl:part@name such as value of soap:header@part. Must be non-null.
* @param mode {@link Mode#IN} or {@link Mode@OUT}. Must be non-null.
* @return null if the binding could not be resolved for the part.
*/
else
}
return emptyPayloadOperation;
else{
}
}
public void enableMTOM() {
}
public boolean isMTOMEnabled() {
}
return getBindingId().getSOAPVersion();
}
void freeze() {
throw new LocatableWebServiceException(
}
}
owner.finalizeRpcLitBinding(this);
}
private void freezePayloadMap() {
}
} else {
// For doclit The tag will be the operation that has the same input part descriptor value
//empty payload
continue;
}
}
}
}
}