com.sun.xml.ws.assembler
Class DefaultClientTubelineAssemblyContext

java.lang.Object
  extended by com.sun.xml.ws.assembler.TubelineAssemblyContextImpl
      extended by com.sun.xml.ws.assembler.DefaultClientTubelineAssemblyContext
All Implemented Interfaces:
ClientTubelineAssemblyContext, TubelineAssemblyContext

 class DefaultClientTubelineAssemblyContext
extends TubelineAssemblyContextImpl
implements ClientTubelineAssemblyContext

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


Constructor Summary
DefaultClientTubelineAssemblyContext(ClientTubeAssemblerContext context)
           
 
Method Summary
 EndpointAddress getAddress()
          The endpoint address.
 WSBinding getBinding()
          The binding of the new pipeline to be created.
 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.
 Container getContainer()
          Returns the Container in which the client is running
 com.sun.xml.ws.policy.PolicyMap getPolicyMap()
           
 WSPortInfo getPortInfo()
           
 SEIModel getSEIModel()
          The created pipeline will use seiModel to get java concepts for the endpoint
 WSService getService()
          The pipeline is created for this WSService.
 ClientTubeAssemblerContext getWrappedContext()
           
 WSDLPort getWsdlPort()
          The created pipeline will be used to serve this port.
 boolean isPolicyAvailable()
           
 void setCodec(Codec codec)
          Interception point to change Codec during Tubeline assembly.
 
Methods inherited from class com.sun.xml.ws.assembler.TubelineAssemblyContextImpl
getAdaptedTubelineHead, getImplementation, getTubelineHead, setTubelineHead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.ws.assembler.dev.TubelineAssemblyContext
getAdaptedTubelineHead, getImplementation, getTubelineHead
 

Constructor Detail

DefaultClientTubelineAssemblyContext

public DefaultClientTubelineAssemblyContext(@NotNull
                                            ClientTubeAssemblerContext context)
Method Detail

getPolicyMap

public com.sun.xml.ws.policy.PolicyMap getPolicyMap()
Specified by:
getPolicyMap in interface ClientTubelineAssemblyContext

isPolicyAvailable

public boolean isPolicyAvailable()
Specified by:
isPolicyAvailable in interface ClientTubelineAssemblyContext

getWsdlPort

public 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()

Specified by:
getWsdlPort in interface ClientTubelineAssemblyContext

getPortInfo

public WSPortInfo getPortInfo()
Specified by:
getPortInfo in interface ClientTubelineAssemblyContext

getAddress

@NotNull
public 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.

Specified by:
getAddress in interface ClientTubelineAssemblyContext

getService

@NotNull
public 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.)

Specified by:
getService in interface ClientTubelineAssemblyContext

getBinding

@NotNull
public WSBinding getBinding()
The binding of the new pipeline to be created.

Specified by:
getBinding in interface ClientTubelineAssemblyContext

getSEIModel

@Nullable
public SEIModel getSEIModel()
The created pipeline will use seiModel to get java concepts for the endpoint

Specified by:
getSEIModel in interface ClientTubelineAssemblyContext
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

Specified by:
getContainer in interface ClientTubelineAssemblyContext
Returns:
Container in which client is running

getCodec

@NotNull
public 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.

Specified by:
getCodec in interface ClientTubelineAssemblyContext
Returns:
codec to be used for web service requests

setCodec

public void setCodec(@NotNull
                     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.

Specified by:
setCodec in interface ClientTubelineAssemblyContext
Parameters:
codec - codec to be used for web service requests

getWrappedContext

public ClientTubeAssemblerContext getWrappedContext()
Specified by:
getWrappedContext in interface ClientTubelineAssemblyContext


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.