com.sun.xml.internal.ws.api.pipe.helper.PipeAdapter Java Examples

The following examples show how to use com.sun.xml.internal.ws.api.pipe.helper.PipeAdapter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientTubeAssemblerContext.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Tube createSecurityTube(@NotNull Tube next) {
    ClientPipelineHook hook = container.getSPI(ClientPipelineHook.class);
    if (hook != null) {
        ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext(address, wsdlModel,
                                  rootOwner, binding, container);
        return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #2
Source File: TubelineAssemblerFactory.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public @NotNull Tube createServer(@NotNull ServerTubeAssemblerContext context) {
    if (!(context instanceof ServerPipeAssemblerContext)) {
        throw new IllegalArgumentException("{0} is not instance of ServerPipeAssemblerContext");
    }
    return PipeAdapter.adapt(assembler.createServer((ServerPipeAssemblerContext) context));
}
 
Example #3
Source File: TubelineAssemblerFactory.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public @NotNull Tube createClient(@NotNull ClientTubeAssemblerContext context) {
    ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext(
            context.getAddress(), context.getWsdlModel(), context.getService(),
            context.getBinding(), context.getContainer());
    return PipeAdapter.adapt(assembler.createClient(ctxt));
}
 
Example #4
Source File: TubelineAssemblyContextImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Pipe getAdaptedTubelineHead() {
    if (adaptedHead == null) {
        adaptedHead = PipeAdapter.adapt(head);
    }
    return adaptedHead;
}
 
Example #5
Source File: ServerTubeAssemblerContext.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that does the monitoring of the invocation for a
 * container
 */
public @NotNull Tube createMonitoringTube(@NotNull Tube next) {
    ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class);
    if (hook != null) {
        ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous);
        return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #6
Source File: ServerTubeAssemblerContext.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Tube createSecurityTube(@NotNull Tube next) {
    ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class);
    if (hook != null) {
        ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous);
        return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #7
Source File: ClientTubeAssemblerContext.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Tube createSecurityTube(@NotNull Tube next) {
    ClientPipelineHook hook = container.getSPI(ClientPipelineHook.class);
    if (hook != null) {
        ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext(address, wsdlModel,
                                  rootOwner, binding, container);
        return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #8
Source File: ServerTubeAssemblerContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that does the monitoring of the invocation for a
 * container
 */
public @NotNull Tube createMonitoringTube(@NotNull Tube next) {
    ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class);
    if (hook != null) {
        ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous);
        return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #9
Source File: TubelineAssemblyContextImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Pipe getAdaptedTubelineHead() {
    if (adaptedHead == null) {
        adaptedHead = PipeAdapter.adapt(head);
    }
    return adaptedHead;
}
 
Example #10
Source File: TubelineAssemblerFactory.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public @NotNull Tube createServer(@NotNull ServerTubeAssemblerContext context) {
    if (!(context instanceof ServerPipeAssemblerContext)) {
        throw new IllegalArgumentException("{0} is not instance of ServerPipeAssemblerContext");
    }
    return PipeAdapter.adapt(assembler.createServer((ServerPipeAssemblerContext) context));
}
 
Example #11
Source File: ServerTubeAssemblerContext.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that does the monitoring of the invocation for a
 * container
 */
public @NotNull Tube createMonitoringTube(@NotNull Tube next) {
    ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class);
    if (hook != null) {
        ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous);
        return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #12
Source File: TubelineAssemblyContextImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Pipe getAdaptedTubelineHead() {
    if (adaptedHead == null) {
        adaptedHead = PipeAdapter.adapt(head);
    }
    return adaptedHead;
}
 
Example #13
Source File: TubelineAssemblerFactory.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public @NotNull Tube createClient(@NotNull ClientTubeAssemblerContext context) {
    ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext(
            context.getAddress(), context.getWsdlModel(), context.getService(),
            context.getBinding(), context.getContainer());
    return PipeAdapter.adapt(assembler.createClient(ctxt));
}
 
Example #14
Source File: TubelineAssemblerFactory.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public @NotNull Tube createServer(@NotNull ServerTubeAssemblerContext context) {
    if (!(context instanceof ServerPipeAssemblerContext)) {
        throw new IllegalArgumentException("{0} is not instance of ServerPipeAssemblerContext");
    }
    return PipeAdapter.adapt(assembler.createServer((ServerPipeAssemblerContext) context));
}
 
Example #15
Source File: ServerTubeAssemblerContext.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Tube createSecurityTube(@NotNull Tube next) {
    ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class);
    if (hook != null) {
        ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous);
        return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #16
Source File: ServerTubeAssemblerContext.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that does the monitoring of the invocation for a
 * container
 */
public @NotNull Tube createMonitoringTube(@NotNull Tube next) {
    ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class);
    if (hook != null) {
        ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous);
        return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #17
Source File: TubelineAssemblerFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public @NotNull Tube createServer(@NotNull ServerTubeAssemblerContext context) {
    if (!(context instanceof ServerPipeAssemblerContext)) {
        throw new IllegalArgumentException("{0} is not instance of ServerPipeAssemblerContext");
    }
    return PipeAdapter.adapt(assembler.createServer((ServerPipeAssemblerContext) context));
}
 
Example #18
Source File: ClientTubeAssemblerContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Tube createSecurityTube(@NotNull Tube next) {
    ClientPipelineHook hook = container.getSPI(ClientPipelineHook.class);
    if (hook != null) {
        ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext(address, wsdlModel,
                                  rootOwner, binding, container);
        return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #19
Source File: ServerTubeAssemblerContext.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that does the monitoring of the invocation for a
 * container
 */
public @NotNull Tube createMonitoringTube(@NotNull Tube next) {
    ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class);
    if (hook != null) {
        ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous);
        return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #20
Source File: ClientTubeAssemblerContext.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Tube createSecurityTube(@NotNull Tube next) {
    ClientPipelineHook hook = container.getSPI(ClientPipelineHook.class);
    if (hook != null) {
        ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext(address, wsdlModel,
                                  rootOwner, binding, container);
        return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #21
Source File: TubelineAssemblerFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public @NotNull Tube createClient(@NotNull ClientTubeAssemblerContext context) {
    ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext(
            context.getAddress(), context.getWsdlModel(), context.getService(),
            context.getBinding(), context.getContainer());
    return PipeAdapter.adapt(assembler.createClient(ctxt));
}
 
Example #22
Source File: TubelineAssemblyContextImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Pipe getAdaptedTubelineHead() {
    if (adaptedHead == null) {
        adaptedHead = PipeAdapter.adapt(head);
    }
    return adaptedHead;
}
 
Example #23
Source File: ClientTubeAssemblerContext.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Tube createSecurityTube(@NotNull Tube next) {
    ClientPipelineHook hook = container.getSPI(ClientPipelineHook.class);
    if (hook != null) {
        ClientPipeAssemblerContext ctxt = new ClientPipeAssemblerContext(address, wsdlModel,
                                  rootOwner, binding, container);
        return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next)));
    }
    return next;
}
 
Example #24
Source File: ClientPipeAssemblerContext.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates a transport pipe (for client), which becomes the terminal pipe.
 */
public Pipe createTransportPipe() {
    return PipeAdapter.adapt(super.createTransportTube());
}
 
Example #25
Source File: ClientPipeAssemblerContext.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Pipe createSecurityPipe(@NotNull Pipe next) {
    return PipeAdapter.adapt(super.createSecurityTube(PipeAdapter.adapt(next)));
}
 
Example #26
Source File: ClientPipeAssemblerContext.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates a transport pipe (for client), which becomes the terminal pipe.
 */
public Pipe createTransportPipe() {
    return PipeAdapter.adapt(super.createTransportTube());
}
 
Example #27
Source File: ServerPipeAssemblerContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates WS-Addressing pipe
 */
public Pipe createWsaPipe(Pipe next) {
    return PipeAdapter.adapt(super.createWsaTube(PipeAdapter.adapt(next)));
}
 
Example #28
Source File: ClientPipeAssemblerContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates a {@link Tube} that adds container specific security
 */
public @NotNull Pipe createSecurityPipe(@NotNull Pipe next) {
    return PipeAdapter.adapt(super.createSecurityTube(PipeAdapter.adapt(next)));
}
 
Example #29
Source File: ServerPipeAssemblerContext.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates WS-Addressing pipe
 */
public Pipe createWsaPipe(Pipe next) {
    return PipeAdapter.adapt(super.createWsaTube(PipeAdapter.adapt(next)));
}
 
Example #30
Source File: ServerPipeAssemblerContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Creates a {@link Pipe} that adds container specific security
 */
public @NotNull Pipe createSecurityPipe(@NotNull Pipe next) {
    return PipeAdapter.adapt(super.createSecurityTube(PipeAdapter.adapt(next)));
}