java.lang.Object
com.sun.xml.ws.client.sei.StubHandler
- All Implemented Interfaces:
ClientCallBridge
- Direct Known Subclasses:
StubAsyncHandler
MethodHandler
that handles synchronous method invocations.
This is refactored from SEIMethodHandler.
This class mainly performs the following two tasks:
- Accepts Object[] that represents arguments for a Java method,
and creates
JAXBMessage
that represents a request message. - Takes a
Message
that represents a response, and extracts the return value (and updatesHolder
s.)
Creating JAXBMessage
At the construction time, we prepare BodyBuilder
and MessageFiller
s
that know how to move arguments into a Message
.
Some arguments go to the payload, some go to headers, still others go to attachments.
- Author:
- Kohsuke Kawaguchi, Jitendra Kotamraju, [email protected]
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<QName,
CheckedExceptionImpl> protected final boolean
protected final JavaMethodImpl
protected MessageContextFactory
protected ResponseBuilder
protected final String
protected SOAPVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a requestJAXBMessage
from method arguments.protected void
boolean
isOneWay()
readResponse
(Packet p, JavaCallInfo call)
-
Field Details
-
soapAction
-
isOneWay
protected final boolean isOneWay -
javaMethod
-
checkedExceptions
-
soapVersion
-
responseBuilder
-
packetFactory
-
-
Constructor Details
-
StubHandler
-
-
Method Details
-
createRequestPacket
Creates a requestJAXBMessage
from method arguments.- Specified by:
createRequestPacket
in interfaceClientCallBridge
- Parameters:
args
- proxy invocation arguments- Returns:
- Message for the arguments
-
readResponse
- Specified by:
readResponse
in interfaceClientCallBridge
- Throws:
Throwable
-
getOperationName
-
getSoapAction
-
isOneWay
public boolean isOneWay() -
initArgs
- Throws:
Exception
-
getMethod
- Specified by:
getMethod
in interfaceClientCallBridge
-
getOperationModel
- Specified by:
getOperationModel
in interfaceClientCallBridge
-