325N/A * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 325N/A * This code is free software; you can redistribute it and/or modify it 325N/A * under the terms of the GNU General Public License version 2 only, as 325N/A * published by the Free Software Foundation. Oracle designates this 325N/A * particular file as subject to the "Classpath" exception as provided 325N/A * by Oracle in the LICENSE file that accompanied this code. 325N/A * This code is distributed in the hope that it will be useful, but WITHOUT 325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 325N/A * version 2 for more details (a copy is included in the LICENSE file that 325N/A * accompanied this code). 325N/A * You should have received a copy of the GNU General Public License version 325N/A * 2 along with this work; if not, write to the Free Software Foundation, 325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 325N/A * or visit www.oracle.com if you need additional information or have any 325N/A * JAX-WS implementation of {@link ServiceDelegate}. 325N/A * This abstract class is used only to improve the static type safety 325N/A * of the JAX-WS internal API. 325N/A * The class name intentionally doesn't include "Delegate", 325N/A * because the fact that it's a delegate is a detail of 325N/A * the JSR-224 API, and for the layers above us this object 325N/A * nevertheless represents {@link Service}. We want them 325N/A * to think of this as an internal representation of a service. 325N/A * Only JAX-WS internal code may downcast this to {@link WSServiceDelegate}. 325N/A * @author Kohsuke Kawaguchi 325N/A * Works like {@link #getPort(EndpointReference, Class, WebServiceFeature...)} 325N/A * but takes {@link WSEndpointReference}. 325N/A * Works like {@link #createDispatch(EndpointReference, Class, Mode, WebServiceFeature[])} 325N/A * but it takes the port name separately, so that EPR without embedded metadata can be used. 325N/A * Works like {@link #createDispatch(EndpointReference, JAXBContext, Mode, WebServiceFeature[])} 325N/A * but it takes the port name separately, so that EPR without embedded metadata can be used. 325N/A * Gets the {@link Container} object. 325N/A * The components inside {@link WSEndpoint} uses this reference 325N/A * to communicate with the hosting environment. 325N/A * always same object. If no "real" {@link Container} instance 325N/A * is given, {@link Container#NONE} will be returned. 325N/A * Create a <code>Service</code> instance. 325N/A * The specified WSDL document location and service qualified name MUST 325N/A * uniquely identify a <code>wsdl:service</code> element. 325N/A * @param wsdlDocumentLocation URL for the WSDL document location 325N/A * @param serviceName QName for the service 325N/A * @throws WebServiceException If any error in creation of the 325N/A * Create a <code>Service</code> instance. 325N/A * @param serviceName QName for the service 325N/A * @throws WebServiceException If any error in creation of the 325N/A * Creates a service with a dummy service name. 325N/A * Typed parameter bag used by {@link WSService#create(URL, QName, InitParams)} 325N/A * Sets the {@link Container} object used by the created service. 325N/A * This allows the client to use a specific {@link Container} instance 325N/A * as opposed to the one obtained by {@link ContainerResolver}. 325N/A * To create a {@link Service}, we need to go through the API that doesn't let us 325N/A * pass parameters, so as a hack we use thread local. 325N/A * Used as a immutable constant so that we can avoid null check. 325N/A * Creates a {@link Service} instance. 325N/A * This method works really like {@link Service#create(URL, QName)} 325N/A * except it takes one more RI specific parameter. 325N/A * @param wsdlDocumentLocation 325N/A * {@code URL} for the WSDL document location for the service. 325N/A * Can be null, in which case WSDL is not loaded. 325N/A * {@code QName} for the service. 325N/A * Additional RI specific initialization parameters. Can be null. 325N/A * @throws WebServiceException 325N/A * If any error in creation of the specified service. 325N/A // even in case of an exception still reset INIT_PARAMS 325N/A * Obtains the {@link WSService} that's encapsulated inside a {@link Service}. 325N/A * @throws IllegalArgumentException 325N/A * if the given service object is not from the JAX-WS RI.