< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/client/ClientPipelineHook.java

Print this page




  46 public abstract class ClientPipelineHook {
  47 
  48     /**
  49      * Called during the pipeline construction process once to allow a container
  50      * to register a pipe for security.
  51      *
  52      * This pipe will be injected to a point very close to the transport, allowing
  53      * it to do some security operations.
  54      *
  55      * @param ctxt
  56      *      Represents abstraction of SEI, WSDL abstraction etc. Context can be used
  57      *      whether add a new pipe to the head or not.
  58      *
  59      * @param tail
  60      *      Head of the partially constructed pipeline. If the implementation
  61      *      wishes to add new pipes, it should do so by extending
  62      *      {@link com.sun.xml.internal.ws.api.pipe.helper.AbstractFilterPipeImpl} and making sure that this {@link com.sun.xml.internal.ws.api.pipe.Pipe}
  63      *      eventually processes messages.
  64      *
  65      * @return
  66      *      The default implementation just returns <tt>tail</tt>, which means
  67      *      no additional pipe is inserted. If the implementation adds
  68      *      new pipes, return the new head pipe.
  69      */
  70     public @NotNull Pipe createSecurityPipe(ClientPipeAssemblerContext ctxt, @NotNull Pipe tail) {
  71         return tail;
  72     }
  73 }


  46 public abstract class ClientPipelineHook {
  47 
  48     /**
  49      * Called during the pipeline construction process once to allow a container
  50      * to register a pipe for security.
  51      *
  52      * This pipe will be injected to a point very close to the transport, allowing
  53      * it to do some security operations.
  54      *
  55      * @param ctxt
  56      *      Represents abstraction of SEI, WSDL abstraction etc. Context can be used
  57      *      whether add a new pipe to the head or not.
  58      *
  59      * @param tail
  60      *      Head of the partially constructed pipeline. If the implementation
  61      *      wishes to add new pipes, it should do so by extending
  62      *      {@link com.sun.xml.internal.ws.api.pipe.helper.AbstractFilterPipeImpl} and making sure that this {@link com.sun.xml.internal.ws.api.pipe.Pipe}
  63      *      eventually processes messages.
  64      *
  65      * @return
  66      *      The default implementation just returns {@code tail}, which means
  67      *      no additional pipe is inserted. If the implementation adds
  68      *      new pipes, return the new head pipe.
  69      */
  70     public @NotNull Pipe createSecurityPipe(ClientPipeAssemblerContext ctxt, @NotNull Pipe tail) {
  71         return tail;
  72     }
  73 }
< prev index next >