|
Java example source code file (TubelineAssemblyController.java)
The TubelineAssemblyController.java Java example source code/* * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * 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. */ package com.sun.xml.internal.ws.assembler; import com.sun.istack.internal.NotNull; import com.sun.istack.internal.logging.Logger; import com.sun.xml.internal.ws.assembler.dev.ClientTubelineAssemblyContext; import com.sun.xml.internal.ws.resources.TubelineassemblyMessages; import com.sun.xml.internal.ws.runtime.config.TubeFactoryConfig; import com.sun.xml.internal.ws.runtime.config.TubeFactoryList; import javax.xml.namespace.QName; import java.net.URI; import java.net.URISyntaxException; import java.util.Collection; import java.util.LinkedList; /** * * @author Marek Potociar (marek.potociar at sun.com) */ final class TubelineAssemblyController { private final MetroConfigName metroConfigName; TubelineAssemblyController(MetroConfigName metroConfigName) { this.metroConfigName = metroConfigName; } /** * Provides a ordered collection of WSIT/Metro client-side tube creators that are be used to * construct a client-side Metro tubeline * * The order of the tube creators in the collection is last-to-first from the * client side request message processing perspective. * * <b> * WARNING: This method is part of Metro internal API and may be changed, removed or * replaced by a different method without a prior notice. The method SHOULD NOT be used * outside of Metro codebase. * </b> * * @param endpointUri URI of the endpoint for which the collection of tube factories should be returned * * @return collection of WSIT/Metro client-side tube creators */ Collection<TubeCreator> getTubeCreators(ClientTubelineAssemblyContext context) { URI endpointUri; if (context.getPortInfo() != null) { endpointUri = createEndpointComponentUri(context.getPortInfo().getServiceName(), context.getPortInfo().getPortName()); } else { endpointUri = null; } MetroConfigLoader configLoader = new MetroConfigLoader(context.getContainer(), metroConfigName); return initializeTubeCreators(configLoader.getClientSideTubeFactories(endpointUri)); } /** * Provides a ordered collection of WSIT/Metro server-side tube creators that are be used to * construct a server-side Metro tubeline for a given endpoint * * The order of the tube creators in the collection is last-to-first from the * server side request message processing perspective. * * <b> * WARNING: This method is part of Metro internal API and may be changed, removed or * replaced by a different method without a prior notice. The method SHOULD NOT be used * outside of Metro codebase. * </b> * * @param endpointUri URI of the endpoint for which the collection of tube factories should be returned * * @return collection of WSIT/Metro server-side tube creators */ Collection<TubeCreator> getTubeCreators(DefaultServerTubelineAssemblyContext context) { URI endpointUri; if (context.getEndpoint() != null) { endpointUri = createEndpointComponentUri(context.getEndpoint().getServiceName(), context.getEndpoint().getPortName()); } else { endpointUri = null; } MetroConfigLoader configLoader = new MetroConfigLoader(context.getEndpoint().getContainer(), metroConfigName); return initializeTubeCreators(configLoader.getEndpointSideTubeFactories(endpointUri)); } private Collection<TubeCreator> initializeTubeCreators(TubeFactoryList tfl) { final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); LinkedList<TubeCreator> tubeCreators = new LinkedList Other Java examples (source code examples)Here is a short list of links related to this Java TubelineAssemblyController.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.