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.
Message that represents a response,
and extracts the return value (and updates Holders.)
JAXBMessage
At the construction time, we prepare BodyBuilder and MessageFillers
that know how to move arguments into a 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 com.sun.xml.ws.api.message.MessageContextFactory |
packetFactory |
protected ResponseBuilder |
responseBuilder |
protected String |
soapAction |
protected SOAPVersion |
soapVersion |
| Constructor and Description |
|---|
StubHandler(JavaMethodImpl method,
com.sun.xml.ws.api.message.MessageContextFactory mcf) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.xml.ws.api.message.Packet |
createRequestPacket(JavaCallInfo args)
Creates a request
JAXBMessage from method arguments. |
Method |
getMethod() |
JavaMethod |
getOperationModel() |
QName |
getOperationName() |
String |
getSoapAction() |
protected void |
initArgs(Object[] args) |
boolean |
isOneWay() |
JavaCallInfo |
readResponse(com.sun.xml.ws.api.message.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 com.sun.xml.ws.api.message.MessageContextFactory packetFactory
public StubHandler(JavaMethodImpl method, com.sun.xml.ws.api.message.MessageContextFactory mcf)
public com.sun.xml.ws.api.message.Packet createRequestPacket(JavaCallInfo args)
JAXBMessage from method arguments.createRequestPacket in interface ClientCallBridgeargs - proxy invocation argumentspublic JavaCallInfo readResponse(com.sun.xml.ws.api.message.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 © 2015 Oracle Corporation. All rights reserved.