src/share/jaxws_classes/com/sun/xml/internal/ws/api/pipe/ClientPipeAssemblerContext.java

Thu, 31 Aug 2017 15:18:52 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:18:52 +0800
changeset 637
9c07ef4934dd
parent 368
0989ad8c0860
parent 0
373ffda63c9a
permissions
-rw-r--r--

merge

     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     8  * particular file as subject to the "Classpath" exception as provided
     9  * by Oracle in the LICENSE file that accompanied this code.
    10  *
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14  * version 2 for more details (a copy is included in the LICENSE file that
    15  * accompanied this code).
    16  *
    17  * You should have received a copy of the GNU General Public License version
    18  * 2 along with this work; if not, write to the Free Software Foundation,
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  *
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    24  */
    26 package com.sun.xml.internal.ws.api.pipe;
    28 import com.sun.istack.internal.NotNull;
    29 import com.sun.xml.internal.ws.api.EndpointAddress;
    30 import com.sun.xml.internal.ws.api.WSBinding;
    31 import com.sun.xml.internal.ws.api.WSService;
    32 import com.sun.xml.internal.ws.api.model.wsdl.WSDLPort;
    33 import com.sun.xml.internal.ws.api.pipe.helper.PipeAdapter;
    34 import com.sun.xml.internal.ws.api.server.Container;
    36 import java.io.PrintStream;
    38 /**
    39  * Factory for well-known {@link Pipe} implementations
    40  * that the {@link PipelineAssembler} needs to use
    41  * to satisfy JAX-WS requirements.
    42  *
    43  * @author Kohsuke Kawaguchi
    44  * @deprecated Use {@link ClientTubeAssemblerContext}.
    45  */
    46 public final class ClientPipeAssemblerContext extends ClientTubeAssemblerContext {
    48     public ClientPipeAssemblerContext(@NotNull EndpointAddress address, @NotNull WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding) {
    49         this(address, wsdlModel, rootOwner, binding, Container.NONE);
    50     }
    52     public ClientPipeAssemblerContext(@NotNull EndpointAddress address, @NotNull WSDLPort wsdlModel,
    53                                       @NotNull WSService rootOwner, @NotNull WSBinding binding,
    54                                       @NotNull Container container) {
    55         super(address, wsdlModel, rootOwner, binding, container);
    56     }
    58     /**
    59      * creates a {@link Pipe} that dumps messages that pass through.
    60      */
    61     public Pipe createDumpPipe(String name, PrintStream out, Pipe next) {
    62         return PipeAdapter.adapt(super.createDumpTube(name, out, PipeAdapter.adapt(next)));
    63     }
    65     /**
    66      * Creates a {@link Pipe} that performs WS-Addressig processing.
    67      * This pipe should be before {@link com.sun.xml.internal.ws.protocol.soap.ClientMUTube}.
    68      */
    69     public Pipe createWsaPipe(Pipe next) {
    70         return PipeAdapter.adapt(super.createWsaTube(PipeAdapter.adapt(next)));
    71     }
    73     /**
    74      * Creates a {@link Pipe} that performs SOAP mustUnderstand processing.
    75      * This pipe should be before HandlerPipes.
    76      */
    77     public Pipe createClientMUPipe(Pipe next) {
    78         return PipeAdapter.adapt(super.createClientMUTube(PipeAdapter.adapt(next)));
    79     }
    81     /**
    82      * creates a {@link Pipe} that validates messages against schema
    83      */
    84     public Pipe createValidationPipe(Pipe next) {
    85         return PipeAdapter.adapt(super.createValidationTube(PipeAdapter.adapt(next)));
    86     }
    88     /**
    89      * Creates a {@link Pipe} that invokes protocol and logical handlers.
    90      */
    91     public Pipe createHandlerPipe(Pipe next) {
    92         return PipeAdapter.adapt(super.createHandlerTube(PipeAdapter.adapt(next)));
    93     }
    95     /**
    96      * Creates a {@link Tube} that adds container specific security
    97      */
    98     public @NotNull Pipe createSecurityPipe(@NotNull Pipe next) {
    99         return PipeAdapter.adapt(super.createSecurityTube(PipeAdapter.adapt(next)));
   100     }
   102     /**
   103      * Creates a transport pipe (for client), which becomes the terminal pipe.
   104      */
   105     public Pipe createTransportPipe() {
   106         return PipeAdapter.adapt(super.createTransportTube());
   107     }
   109 }

mercurial