com.sun.xml.ws.wsdl.parser.WSDLParserExtensionContextImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rt Show documentation
Show all versions of rt Show documentation
JAX-WS Reference Implementation Runtime
The newest version!
/*
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.wsdl.parser;
import com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLModel;
import com.sun.xml.ws.api.server.Container;
import com.sun.xml.ws.api.wsdl.parser.WSDLParserExtensionContext;
import com.sun.xml.ws.api.policy.PolicyResolver;
/**
* Provides implementation of {@link WSDLParserExtensionContext}
*
* @author Vivek Pandey
* @author Fabian Ritzmann
*/
final class WSDLParserExtensionContextImpl implements WSDLParserExtensionContext {
private final boolean isClientSide;
private final EditableWSDLModel wsdlModel;
private final Container container;
private final PolicyResolver policyResolver;
/**
* Construct {@link WSDLParserExtensionContextImpl} with information that whether its on client side
* or server side.
*/
protected WSDLParserExtensionContextImpl(EditableWSDLModel model, boolean isClientSide, Container container, PolicyResolver policyResolver) {
this.wsdlModel = model;
this.isClientSide = isClientSide;
this.container = container;
this.policyResolver = policyResolver;
}
@Override
public boolean isClientSide() {
return isClientSide;
}
@Override
public EditableWSDLModel getWSDLModel() {
return wsdlModel;
}
@Override
public Container getContainer() {
return this.container;
}
@Override
public PolicyResolver getPolicyResolver() {
return policyResolver;
}
}