public class StubHandler extends Object implements ClientCallBridge
MethodHandler that handles synchronous method invocations.
This is refactored from SEIMethodHandler.
This class mainly performs the following two tasks:
JAXBMessage that represents a request message.
At the construction time, we prepare {@link com.sun.xml.ws.client.sei.BodyBuilder} and {@link com.sun.xml.ws.client.sei.MessageFiller}s that know how to move arguments into a {@link com.sun.xml.ws.api.message.Message }. Some arguments go to the payload, some go to headers, still others go to attachments.
| Modifier and Type | Field and Description |
|---|---|
protected Map<QName,CheckedExceptionImpl> |
checkedExceptions |
protected boolean |
isOneWay |
protected JavaMethodImpl |
javaMethod |
protected MessageContextFactory |
packetFactory |
protected ResponseBuilder |
responseBuilder |
protected String |
soapAction |
protected SOAPVersion |
soapVersion |
| Constructor and Description |
|---|
StubHandler(JavaMethodImpl method,
MessageContextFactory mcf) |
| Modifier and Type | Method and Description |
|---|---|
(package private) ResponseBuilder |
buildResponseBuilder(JavaMethodImpl method,
ValueSetterFactory setterFactory) |
Packet |
createRequestPacket(JavaCallInfo call)
Creates a request
JAXBMessage from method arguments. |
Method |
getMethod() |
JavaMethod |
getOperationModel() |
QName |
getOperationName() |
String |
getSoapAction() |
(package private) ValueGetterFactory |
getValueGetterFactory() |
protected void |
initArgs(Object[] args) |
boolean |
isOneWay() |
JavaCallInfo |
readResponse(Packet p,
JavaCallInfo call) |
protected final String soapAction
protected final boolean isOneWay
protected final JavaMethodImpl javaMethod
protected final Map<QName,CheckedExceptionImpl> checkedExceptions
protected SOAPVersion soapVersion
protected ResponseBuilder responseBuilder
protected MessageContextFactory packetFactory
public StubHandler(JavaMethodImpl method, MessageContextFactory mcf)
ResponseBuilder buildResponseBuilder(JavaMethodImpl method, ValueSetterFactory setterFactory)
public Packet createRequestPacket(JavaCallInfo call)
JAXBMessage from method arguments.createRequestPacket in interface ClientCallBridgeargs - proxy invocation argumentsValueGetterFactory getValueGetterFactory()
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable
readResponse in interface ClientCallBridgeThrowablepublic QName getOperationName()
public String getSoapAction()
public boolean isOneWay()
public Method getMethod()
getMethod in interface ClientCallBridgepublic JavaMethod getOperationModel()
getOperationModel in interface ClientCallBridgeCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.