com.sun.xml.ws.assembler
Class ClientTubelineAssemblyContext

java.lang.Object
  extended by com.sun.xml.ws.assembler.TubelineAssemblyContext
      extended by com.sun.xml.ws.assembler.ClientTubelineAssemblyContext

public class ClientTubelineAssemblyContext
extends TubelineAssemblyContext

The context is a wrapper around the existing JAX-WS ClientTubeAssemblerContext with additional features


Constructor Summary
ClientTubelineAssemblyContext(com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext context)
           
 
Method Summary
 com.sun.xml.ws.api.EndpointAddress getAddress()
          The endpoint address.
 com.sun.xml.ws.api.WSBinding getBinding()
          The binding of the new pipeline to be created.
 com.sun.xml.ws.api.pipe.Codec getCodec()
          Gets the Codec that is set by setCodec(com.sun.xml.ws.api.pipe.Codec) or the default codec based on the binding.
 com.sun.xml.ws.api.server.Container getContainer()
          Returns the Container in which the client is running
 com.sun.xml.ws.policy.PolicyMap getPolicyMap()
           
 com.sun.xml.ws.api.client.WSPortInfo getPortInfo()
           
 SecureConversationInitiator getScInitiator()
           
 com.sun.xml.ws.api.model.SEIModel getSEIModel()
          The created pipeline will use seiModel to get java concepts for the endpoint
 com.sun.xml.ws.api.WSService getService()
          The pipeline is created for this WSService.
 com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext getWrappedContext()
           
 com.sun.xml.ws.api.model.wsdl.WSDLPort getWsdlPort()
          The created pipeline will be used to serve this port.
 boolean isPolicyAvailable()
           
 void setCodec(com.sun.xml.ws.api.pipe.Codec codec)
          Interception point to change Codec during Tubeline assembly.
 void setScInitiator(SecureConversationInitiator initiator)
           
 
Methods inherited from class com.sun.xml.ws.assembler.TubelineAssemblyContext
getAdaptedTubelineHead, getImplementation, getTubelineHead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientTubelineAssemblyContext

public ClientTubelineAssemblyContext(@NotNull
                                     com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext context)
Method Detail

getPolicyMap

public com.sun.xml.ws.policy.PolicyMap getPolicyMap()

isPolicyAvailable

public boolean isPolicyAvailable()

getWsdlPort

public com.sun.xml.ws.api.model.wsdl.WSDLPort getWsdlPort()
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. Replaces ClientTubeAssemblerContext#getWSDLModel()


getPortInfo

public com.sun.xml.ws.api.client.WSPortInfo getPortInfo()

getAddress

@NotNull
public com.sun.xml.ws.api.EndpointAddress getAddress()
The endpoint address. Always non-null. This parameter is taken separately from WSDLPort (even though there's WSDLPort.getAddress()) because sometimes WSDL is not available.


getService

@NotNull
public com.sun.xml.ws.api.WSService getService()
The pipeline is created for this WSService. Always non-null. (To be precise, the newly created pipeline is owned by a proxy or a dispatch created from this WSService.)


getBinding

@NotNull
public com.sun.xml.ws.api.WSBinding getBinding()
The binding of the new pipeline to be created.


getSEIModel

@Nullable
public com.sun.xml.ws.api.model.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.

getContainer

public com.sun.xml.ws.api.server.Container getContainer()
Returns the Container in which the client is running

Returns:
Container in which client is running

getCodec

@NotNull
public com.sun.xml.ws.api.pipe.Codec getCodec()
Gets the Codec that is set by setCodec(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
                     com.sun.xml.ws.api.pipe.Codec codec)
Interception point to change Codec during Tubeline 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

getScInitiator

public SecureConversationInitiator getScInitiator()

setScInitiator

public void setScInitiator(SecureConversationInitiator initiator)

getWrappedContext

public com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext getWrappedContext()