com.sun.xml.ws.assembler.metro.dev.ClientPipelineHook Maven / Gradle / Ivy
Show all versions of wsit-impl Show documentation
/*
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.assembler.metro.dev;
import com.sun.istack.NotNull;
import com.sun.istack.Nullable;
import com.sun.xml.ws.api.pipe.Tube;
import com.sun.xml.ws.assembler.dev.ClientTubelineAssemblyContext;
import com.sun.xml.ws.policy.PolicyMap;
/**
* @author Arun Gupta
*/
public class ClientPipelineHook extends com.sun.xml.ws.api.client.ClientPipelineHook {
/**
* Default constructor.
*/
public ClientPipelineHook() {}
/**
* Called during the client-side pipeline construction process once to allow a
* container to register a pipe for security.
*
* This pipe will be injected to a point very close to the transport, allowing
* it to do some security operations.
*
* @param policyMap {@link PolicyMap} holding policies for a scope
*
* @param ctxt
* Represents abstraction of SEI, WSDL abstraction etc. Context can be used
* whether add a new pipe to the head or not.
*
* @param tail
* Head of the partially constructed pipeline. If the implementation
* wishes to add new pipes, it should do so by extending
* {@link com.sun.xml.ws.api.pipe.helper.AbstractFilterPipeImpl} and making sure that this {@link com.sun.xml.ws.api.pipe.Pipe}
* eventually processes messages.
*
* @return
* The default implementation just returns tail
, which means
* no additional pipe is inserted. If the implementation adds
* new pipes, return the new head pipe.
* @deprecated Use {@link #createSecurityTube(com.sun.xml.ws.assembler.dev.ClientTubelineAssemblyContext)}.
*/
public @NotNull
@Deprecated
com.sun.xml.ws.api.pipe.Pipe createSecurityPipe(@Nullable PolicyMap policyMap, com.sun.xml.ws.api.pipe.ClientPipeAssemblerContext ctxt, @NotNull com.sun.xml.ws.api.pipe.Pipe tail) {
return tail;
}
/**
* Called during the client-side tubeline construction process once to allow a
* container to register a tube for security.
*
* This tube will be injected to a point very close to the transport, allowing
* it to do some security operations.
*
* If the implementation wishes to add new tubes, it should do so by extending
* {@link com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl} and making sure that this {@link Tube}
* eventually processes messages.
*
* @param context
* Represents abstraction of PolicyMap, SEI, WSDL abstraction etc. Context can be used
* whether add a new tube to the head or not.
*
* @return
* The default implementation just returns tail
, which means
* no additional tube is inserted. If the implementation adds
* new tubes, return the new head tube.
*/
public @NotNull
Tube createSecurityTube(ClientTubelineAssemblyContext context) {
return context.getTubelineHead();
}}