com.sun.xml.ws.assembler
Class DefaultServerTubelineAssemblyContext

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

 class DefaultServerTubelineAssemblyContext
extends TubelineAssemblyContextImpl
implements ServerTubelineAssemblyContext

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


Constructor Summary
DefaultServerTubelineAssemblyContext(ServerTubeAssemblerContext context)
           
 
Method Summary
 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.
 WSEndpoint getEndpoint()
          The created pipeline is used to serve this WSEndpoint.
 com.sun.xml.ws.policy.PolicyMap getPolicyMap()
           
 SEIModel getSEIModel()
          The created pipeline will use seiModel to get java concepts for the endpoint
 Tube getTerminalTube()
          The last Pipe in the pipeline.
 ServerTubeAssemblerContext getWrappedContext()
           
 WSDLPort getWsdlPort()
          The created pipeline will be used to serve this port.
 boolean isPolicyAvailable()
           
 boolean isSynchronous()
          If this server pipeline is known to be used for serving synchronous transport, then this method returns true.
 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

DefaultServerTubelineAssemblyContext

public DefaultServerTubelineAssemblyContext(@NotNull
                                            ServerTubeAssemblerContext context)
Method Detail

getPolicyMap

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

isPolicyAvailable

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

getSEIModel

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

Specified by:
getSEIModel in interface ServerTubelineAssemblyContext
Returns:
Null if the service doesn't have SEI model e.g. Provider endpoints, and otherwise non-null.

getWsdlPort

@Nullable
public WSDLPort getWsdlPort()
The created pipeline will be used to serve this port.

Specified by:
getWsdlPort in interface ServerTubelineAssemblyContext
Returns:
Null if the service isn't associated with any port definition in WSDL, and otherwise non-null.

getEndpoint

@NotNull
public WSEndpoint getEndpoint()
The created pipeline is used to serve this WSEndpoint. Specifically, its WSBinding should be of interest to many Pipes.

Specified by:
getEndpoint in interface ServerTubelineAssemblyContext
Returns:
Always non-null.

getTerminalTube

@NotNull
public Tube getTerminalTube()
The last Pipe in the pipeline. The assembler is expected to put additional Pipes in front of it.

(Just to give you the idea how this is used, normally the terminal pipe is the one that invokes the user application or Provider.)

Specified by:
getTerminalTube in interface ServerTubelineAssemblyContext
Returns:
always non-null terminal pipe

isSynchronous

public boolean isSynchronous()
If this server pipeline is known to be used for serving synchronous transport, then this method returns true. This can be potentially use as an optimization hint, since often synchronous versions are cheaper to execute than asycnhronous versions.

Specified by:
isSynchronous in interface ServerTubelineAssemblyContext

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. The codec is a full codec that is responsible for encoding/decoding entire protocol message(for e.g: it is responsible to encode/decode entire MIME messages in SOAP binding)

Specified by:
getCodec in interface ServerTubelineAssemblyContext
Returns:
codec to be used for web service requests
See Also:
com.sun.xml.ws.api.pipe.Codecs}

setCodec

public void setCodec(@NotNull
                     Codec codec)
Interception point to change Codec during Tubeline assembly. The new codec will be used by jax-ws server runtime for encoding/decoding web service request/response messages. WSEndpoint.createCodec() will return a copy of this new codec and will be used in the server runtime.

The codec is a full codec that is responsible for encoding/decoding entire protocol message(for e.g: it is responsible to encode/decode entire MIME messages in SOAP binding)

the codec should correctly implement Codec.copy() since it is used while serving requests concurrently.

Specified by:
setCodec in interface ServerTubelineAssemblyContext
Parameters:
codec - codec to be used for web service requests
See Also:
com.sun.xml.ws.api.pipe.Codecs}

getWrappedContext

public ServerTubeAssemblerContext getWrappedContext()
Specified by:
getWrappedContext in interface ServerTubelineAssemblyContext


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