Package com.sun.xml.ws.client.sei
Class StubHandler
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
JAXBMessagethat represents a request message. - Takes a
Messagethat represents a response, and extracts the return value (and updatesHolders.)
Creating 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.
- Author:
- Kohsuke Kawaguchi, Jitendra Kotamraju, shih-chang.chen@oracle.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<QName,CheckedExceptionImpl> protected final booleanprotected final JavaMethodImplprotected MessageContextFactoryprotected ResponseBuilderprotected final Stringprotected SOAPVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a requestJAXBMessagefrom method arguments.protected voidbooleanisOneWay()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 requestJAXBMessagefrom method arguments.- Specified by:
createRequestPacketin interfaceClientCallBridge- Parameters:
args- proxy invocation arguments- Returns:
- Message for the arguments
-
readResponse
- Specified by:
readResponsein interfaceClientCallBridge- Throws:
Throwable
-
getOperationName
-
getSoapAction
-
isOneWay
public boolean isOneWay() -
initArgs
- Throws:
Exception
-
getMethod
- Specified by:
getMethodin interfaceClientCallBridge
-
getOperationModel
- Specified by:
getOperationModelin interfaceClientCallBridge
-