001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: package com.sun.xml.ws.api.pipe;
038:
039: import com.sun.istack.NotNull;
040: import com.sun.xml.ws.api.EndpointAddress;
041: import com.sun.xml.ws.api.WSBinding;
042: import com.sun.xml.ws.api.WSService;
043: import com.sun.xml.ws.api.model.wsdl.WSDLPort;
044: import com.sun.xml.ws.api.pipe.helper.PipeAdapter;
045: import com.sun.xml.ws.api.server.Container;
046:
047: import java.io.PrintStream;
048:
049: /**
050: * Factory for well-known {@link Pipe} implementations
051: * that the {@link PipelineAssembler} needs to use
052: * to satisfy JAX-WS requirements.
053: *
054: * @author Kohsuke Kawaguchi
055: * @deprecated Use {@link ClientTubeAssemblerContext}.
056: */
057: public final class ClientPipeAssemblerContext extends
058: ClientTubeAssemblerContext {
059:
060: public ClientPipeAssemblerContext(@NotNull
061: EndpointAddress address, @NotNull
062: WSDLPort wsdlModel, @NotNull
063: WSService rootOwner, @NotNull
064: WSBinding binding) {
065: this (address, wsdlModel, rootOwner, binding, Container.NONE);
066: }
067:
068: public ClientPipeAssemblerContext(@NotNull
069: EndpointAddress address, @NotNull
070: WSDLPort wsdlModel, @NotNull
071: WSService rootOwner, @NotNull
072: WSBinding binding, @NotNull
073: Container container) {
074: super (address, wsdlModel, rootOwner, binding, container);
075: }
076:
077: /**
078: * creates a {@link Pipe} that dumps messages that pass through.
079: */
080: public Pipe createDumpPipe(String name, PrintStream out, Pipe next) {
081: return PipeAdapter.adapt(super .createDumpTube(name, out,
082: PipeAdapter.adapt(next)));
083: }
084:
085: /**
086: * Creates a {@link Pipe} that performs WS-Addressig processing.
087: * This pipe should be before {@link com.sun.xml.ws.protocol.soap.ClientMUTube}.
088: */
089: public Pipe createWsaPipe(Pipe next) {
090: return PipeAdapter.adapt(super .createWsaTube(PipeAdapter
091: .adapt(next)));
092: }
093:
094: /**
095: * Creates a {@link Pipe} that performs SOAP mustUnderstand processing.
096: * This pipe should be before HandlerPipes.
097: */
098: public Pipe createClientMUPipe(Pipe next) {
099: return PipeAdapter.adapt(super .createClientMUTube(PipeAdapter
100: .adapt(next)));
101: }
102:
103: /**
104: * Creates a {@link Pipe} that invokes protocol and logical handlers.
105: */
106: public Pipe createHandlerPipe(Pipe next) {
107: return PipeAdapter.adapt(super .createHandlerTube(PipeAdapter
108: .adapt(next)));
109: }
110:
111: /**
112: * Creates a {@link Tube} that adds container specific security
113: */
114: public @NotNull
115: Pipe createSecurityPipe(@NotNull
116: Pipe next) {
117: return PipeAdapter.adapt(super .createSecurityTube(PipeAdapter
118: .adapt(next)));
119: }
120:
121: /**
122: * Creates a transport pipe (for client), which becomes the terminal pipe.
123: */
124: public Pipe createTransportPipe() {
125: return PipeAdapter.adapt(super.createTransportTube());
126: }
127:
128: }
|