| java.lang.Object com.sun.xml.ws.api.pipe.Stubs
Stubs | abstract public class Stubs (Code) | | Factory methods of various stubs.
This class provides various methods to create "stub"s,
which are the component that turns a method invocation
into a
Message and back into a return value.
This class is meant to serve as the API from JAX-WS to
Tango, so that they don't have hard-code dependency on
our implementation classes.
Common Parameters and Their Meanings
Pipe next
Stubs turn a method invocation into a
Pipe.process(com.sun.xml.ws.api.message.Packet) invocation,
and this pipe passed in as the next parameter will receive a
Message from newly created stub.
BindingImpl binding
Stubs implement
BindingProvider , and its
BindingProvider.getBinding will return this binding object. Stubs often also use this information
to decide which SOAP version a
Message should be created in.
This object represents a
Service that owns the newly created stub.
For example, asynchronous method invocation will use
Service.getExecutor .
If you want the created
Dispatch to talk to the given EPR, specify the parameter.
Otherwise leave it null. Note that the addressing needs to be enabled separately
for this to take effect.
author: Kohsuke Kawaguchi author: Kathy Walsh |
Method Summary | |
public static Dispatch<DataSource> | createDataSourceDispatch(QName portName, WSService owner, WSBinding binding, Service.Mode mode, Tube next, WSEndpointReference epr) Creates a new
Dispatch stub for
DataSource . | public static Dispatch<T> | createDispatch(QName portName, WSService owner, WSBinding binding, Class<T> clazz, Service.Mode mode, Tube next, WSEndpointReference epr) Creates a new
Dispatch stub that connects to the given pipe. | public static Dispatch<Object> | createJAXBDispatch(QName portName, WSService owner, WSBinding binding, JAXBContext jaxbContext, Service.Mode mode, Tube next, WSEndpointReference epr) Creates a new JAXB-based
Dispatch stub that connects to the given pipe. | public static Dispatch<Message> | createMessageDispatch(QName portName, WSService owner, WSBinding binding, Tube next, WSEndpointReference epr) Creates a new
Message -based
Dispatch stub that connects to the given pipe. | public T | createPortProxy(WSService service, WSBinding binding, SEIModel model, Class<T> portInterface, Tube next, WSEndpointReference epr) Creates a new strongly-typed proxy object that implements a given port interface. | public static Dispatch<SOAPMessage> | createSAAJDispatch(QName portName, WSService owner, WSBinding binding, Service.Mode mode, Tube next, WSEndpointReference epr) Creates a new
Dispatch stub for
SOAPMessage . | public static Dispatch<Source> | createSourceDispatch(QName portName, WSService owner, WSBinding binding, Service.Mode mode, Tube next, WSEndpointReference epr) Creates a new
Dispatch stub for
Source . |
createDataSourceDispatch | public static Dispatch<DataSource> createDataSourceDispatch(QName portName, WSService owner, WSBinding binding, Service.Mode mode, Tube next, WSEndpointReference epr)(Code) | | Creates a new
Dispatch stub for
DataSource .
This is short-cut of calling
createDispatch(port,owner,binding,DataSource.class,mode,next);
|
createSAAJDispatch | public static Dispatch<SOAPMessage> createSAAJDispatch(QName portName, WSService owner, WSBinding binding, Service.Mode mode, Tube next, WSEndpointReference epr)(Code) | | Creates a new
Dispatch stub for
SOAPMessage .
This is short-cut of calling
createDispatch(port,owner,binding,SOAPMessage.class,mode,next);
|
createSourceDispatch | public static Dispatch<Source> createSourceDispatch(QName portName, WSService owner, WSBinding binding, Service.Mode mode, Tube next, WSEndpointReference epr)(Code) | | Creates a new
Dispatch stub for
Source .
This is short-cut of calling
createDispatch(port,owner,binding,Source.class,mode,next);
|
|
|