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 webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 1997, 2019 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;
}
public boolean isClientSide() {
return isClientSide;
}
public EditableWSDLModel getWSDLModel() {
return wsdlModel;
}
public Container getContainer() {
return this.container;
}
public PolicyResolver getPolicyResolver() {
return policyResolver;
}
}