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.istack.Nullable;
041: import com.sun.xml.ws.api.model.SEIModel;
042: import com.sun.xml.ws.api.model.wsdl.WSDLPort;
043: import com.sun.xml.ws.api.pipe.helper.PipeAdapter;
044: import com.sun.xml.ws.api.server.WSEndpoint;
045:
046: import java.io.PrintStream;
047:
048: /**
049: * Factory for well-known server {@link Pipe} implementations
050: * that the {@link PipelineAssembler} needs to use
051: * to satisfy JAX-WS requirements.
052: *
053: * @author Jitendra Kotamraju
054: * @deprecated Use {@link ServerTubeAssemblerContext}.
055: */
056: public final class ServerPipeAssemblerContext extends
057: ServerTubeAssemblerContext {
058:
059: public ServerPipeAssemblerContext(@Nullable
060: SEIModel seiModel, @Nullable
061: WSDLPort wsdlModel, @NotNull
062: WSEndpoint endpoint, @NotNull
063: Tube terminal, boolean isSynchronous) {
064: super (seiModel, wsdlModel, endpoint, terminal, isSynchronous);
065: }
066:
067: /**
068: * Creates a {@link Pipe} that performs SOAP mustUnderstand processing.
069: * This pipe should be before HandlerPipes.
070: */
071: public @NotNull
072: Pipe createServerMUPipe(@NotNull
073: Pipe next) {
074: return PipeAdapter.adapt(super .createServerMUTube(PipeAdapter
075: .adapt(next)));
076: }
077:
078: /**
079: * creates a {@link Pipe} that dumps messages that pass through.
080: */
081: public Pipe createDumpPipe(String name, PrintStream out, Pipe next) {
082: return PipeAdapter.adapt(super .createDumpTube(name, out,
083: PipeAdapter.adapt(next)));
084: }
085:
086: /**
087: * Creates a {@link Pipe} that does the monitoring of the invocation for a
088: * container
089: */
090: public @NotNull
091: Pipe createMonitoringPipe(@NotNull
092: Pipe next) {
093: return PipeAdapter.adapt(super .createMonitoringTube(PipeAdapter
094: .adapt(next)));
095: }
096:
097: /**
098: * Creates a {@link Pipe} that adds container specific security
099: */
100: public @NotNull
101: Pipe createSecurityPipe(@NotNull
102: Pipe next) {
103: return PipeAdapter.adapt(super .createSecurityTube(PipeAdapter
104: .adapt(next)));
105: }
106:
107: /**
108: * Creates a {@link Pipe} that invokes protocol and logical handlers.
109: */
110: public @NotNull
111: Pipe createHandlerPipe(@NotNull
112: Pipe next) {
113: return PipeAdapter.adapt(super .createHandlerTube(PipeAdapter
114: .adapt(next)));
115: }
116:
117: /**
118: * The last {@link Pipe} in the pipeline. The assembler is expected to put
119: * additional {@link Pipe}s in front of it.
120: *
121: * <p>
122: * (Just to give you the idea how this is used, normally the terminal pipe
123: * is the one that invokes the user application or {@link javax.xml.ws.Provider}.)
124: *
125: * @return always non-null terminal pipe
126: */
127: public @NotNull
128: Pipe getTerminalPipe() {
129: return PipeAdapter.adapt(super .getTerminalTube());
130: }
131:
132: /**
133: * Creates WS-Addressing pipe
134: */
135: public Pipe createWsaPipe(Pipe next) {
136: return PipeAdapter.adapt(super.createWsaTube(PipeAdapter
137: .adapt(next)));
138: }
139: }
|