This project has retired. For details please refer to its
Attic page.
OpenCMISTubeAssembler xref
1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing,13 * software distributed under the License is distributed on an14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY15 * KIND, either express or implied. See the License for the16 * specific language governing permissions and limitations17 * under the License.18 */19package org.apache.chemistry.opencmis.commons.impl.tube;
2021import org.apache.chemistry.opencmis.commons.impl.tube.client.WssMUTube;
22import org.apache.chemistry.opencmis.commons.impl.tube.server.WssTube;
2324import com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext;
25import com.sun.xml.ws.api.pipe.ServerTubeAssemblerContext;
26import com.sun.xml.ws.api.pipe.Tube;
27import com.sun.xml.ws.api.pipe.TubelineAssembler;
2829/**30 * Assembler for OpenCMIS client and server tubelines.31 */32publicclassOpenCMISTubeAssembler implements TubelineAssembler {
3334public Tube createClient(ClientTubeAssemblerContext context) {
35 Tube head = context.createTransportTube();
36 head = context.createSecurityTube(head);
37 head = context.createWsaTube(head);
38 head = newWssMUTube(context.getBinding(), head);
3940return context.createHandlerTube(head);
41 }
4243public Tube createServer(ServerTubeAssemblerContext context) {
44 Tube head = context.getTerminalTube();
45 head = newWssTube(head);
46 head = context.createHandlerTube(head);
47 head = context.createMonitoringTube(head);
48 head = context.createServerMUTube(head);
49 head = context.createWsaTube(head);
50 head = context.createSecurityTube(head);
5152return head;
53 }
54 }