Package com.sun.xml.ws.api.pipe
Class ClientTubeAssemblerContext
- java.lang.Object
-
- com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext
-
- Direct Known Subclasses:
ClientPipeAssemblerContext
public class ClientTubeAssemblerContext extends Object
Factory for well-knownTubeimplementations that theTubelineAssemblerneeds to use to satisfy JAX-WS requirements.- Author:
- Jitendra Kotamraju
-
-
Constructor Summary
Constructors Constructor Description ClientTubeAssemblerContext(EndpointAddress address, WSDLPort wsdlModel, WSService rootOwner, WSBinding binding)ClientTubeAssemblerContext(EndpointAddress address, WSDLPort wsdlModel, WSService rootOwner, WSBinding binding, Container container)ClientTubeAssemblerContext(EndpointAddress address, WSDLPort wsdlModel, WSService rootOwner, WSBinding binding, Container container, Codec codec)ClientTubeAssemblerContext(EndpointAddress address, WSDLPort wsdlModel, WSService rootOwner, WSBinding binding, Container container, Codec codec, SEIModel seiModel, Class sei)ClientTubeAssemblerContext(EndpointAddress address, WSDLPort wsdlModel, WSBindingProvider bindingProvider, WSBinding binding, Container container, Codec codec, SEIModel seiModel, Class sei)This constructor should be used only by JAX-WS Runtime and is not meant for external consumption.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TubecreateClientMUTube(Tube next)Creates aTubethat performs SOAP mustUnderstand processing.TubecreateDumpTube(String name, PrintStream out, Tube next)creates aTubethat dumps messages that pass through.TubecreateHandlerTube(Tube next)Creates aTubethat invokes protocol and logical handlers.TubecreateSecurityTube(Tube next)Creates aTubethat adds container specific securityTubecreateTransportTube()Creates a transport pipe (for client), which becomes the terminal pipe.TubecreateValidationTube(Tube next)creates aTubethat validates messages against schemaTubecreateWsaTube(Tube next)Creates aTubethat invokes protocol and logical handlers.EndpointAddressgetAddress()The endpoint address.WSBindinggetBinding()The binding of the new pipeline to be created.WSBindingProvidergetBindingProvider()The pipeline is created for thisWSBindingProvider.CodecgetCodec()Gets theCodecthat is set bysetCodec(com.sun.xml.ws.api.pipe.Codec)or the default codec based on the binding.ContainergetContainer()Returns the Container in which the client is runningWSPortInfogetPortInfo()The pipeline is created for thisWSPortInfo.ClassgetSEI()The SEI class for the endpointSEIModelgetSEIModel()The created pipeline will use seiModel to get java concepts for the endpointWSServicegetService()The pipeline is created for thisWSService.WSDLPortgetWsdlModel()The created pipeline will be used to serve this port.voidsetCodec(Codec codec)
-
-
-
Constructor Detail
-
ClientTubeAssemblerContext
public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding)Deprecated.This constructor should be used only by JAX-WS Runtime and is not meant for external consumption.
-
ClientTubeAssemblerContext
public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container)Deprecated.This constructor should be used only by JAX-WS Runtime and is not meant for external consumption.
-
ClientTubeAssemblerContext
public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container, Codec codec)Deprecated.This constructor should be used only by JAX-WS Runtime and is not meant for external consumption.
-
ClientTubeAssemblerContext
public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSService rootOwner, @NotNull WSBinding binding, @NotNull Container container, Codec codec, SEIModel seiModel, Class sei)Deprecated.This constructor should be used only by JAX-WS Runtime and is not meant for external consumption.
-
ClientTubeAssemblerContext
public ClientTubeAssemblerContext(@NotNull EndpointAddress address, @Nullable WSDLPort wsdlModel, @NotNull WSBindingProvider bindingProvider, @NotNull WSBinding binding, @NotNull Container container, Codec codec, SEIModel seiModel, Class sei)This constructor should be used only by JAX-WS Runtime and is not meant for external consumption.- Since:
- JAX-WS 2.2
-
-
Method Detail
-
getAddress
@NotNull public EndpointAddress getAddress()
The endpoint address. Always non-null. This parameter is taken separately fromWSDLPort(even though there'sWSDLPort.getAddress()) because sometimes WSDL is not available.
-
getWsdlModel
@Nullable public WSDLPort getWsdlModel()
The created pipeline will be used to serve this port. Null if the service isn't associated with any port definition in WSDL, and otherwise non-null.
-
getService
@NotNull public WSService getService()
-
getPortInfo
@Nullable public WSPortInfo getPortInfo()
The pipeline is created for thisWSPortInfo. Nullable incase of backwards compatible usages of this class.
-
getBindingProvider
@Nullable public WSBindingProvider getBindingProvider()
The pipeline is created for thisWSBindingProvider. Nullable incase of backwards compatible usages of this class.
-
getBinding
@NotNull public WSBinding getBinding()
The binding of the new pipeline to be created.
-
getSEIModel
@Nullable public SEIModel getSEIModel()
The created pipeline will use seiModel to get java concepts for the endpoint- Returns:
- Null if the service doesn't have SEI model e.g. Dispatch, and otherwise non-null.
-
getSEI
@Nullable public Class getSEI()
The SEI class for the endpoint- Returns:
- Null if the service doesn't have SEI model e.g. Dispatch, and otherwise non-null.
-
getContainer
public Container getContainer()
Returns the Container in which the client is running- Returns:
- Container in which client is running
-
createDumpTube
public Tube createDumpTube(String name, PrintStream out, Tube next)
creates aTubethat dumps messages that pass through.
-
createSecurityTube
@NotNull public Tube createSecurityTube(@NotNull Tube next)
Creates aTubethat adds container specific security
-
createWsaTube
public Tube createWsaTube(Tube next)
Creates aTubethat invokes protocol and logical handlers.
-
createHandlerTube
public Tube createHandlerTube(Tube next)
Creates aTubethat invokes protocol and logical handlers.
-
createClientMUTube
public Tube createClientMUTube(Tube next)
Creates aTubethat performs SOAP mustUnderstand processing. This pipe should be before HandlerPipes.
-
createValidationTube
public Tube createValidationTube(Tube next)
creates aTubethat validates messages against schema
-
createTransportTube
public Tube createTransportTube()
Creates a transport pipe (for client), which becomes the terminal pipe.
-
getCodec
@NotNull public Codec getCodec()
Gets theCodecthat is set bysetCodec(com.sun.xml.ws.api.pipe.Codec)or the default codec based on the binding.- Returns:
- codec to be used for web service requests
-
setCodec
public void setCodec(@NotNull Codec codec)Interception point to changeCodecduringTubeline assembly. The new codec will be used by jax-ws client runtime for encoding/decoding web service request/response messages. The new codec should be used by the transport tubes.the codec should correctly implement
Codec.copy()since it is used while serving requests concurrently.- Parameters:
codec- codec to be used for web service requests
-
-