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
public class StubHandler extends Object implements ClientCallBridge
MethodHandlerthat 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
JAXBMessageAt the construction time, we prepare
BodyBuilderandMessageFillers that know how to move arguments into aMessage. 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
Fields Modifier and Type Field Description protected Map<QName,CheckedExceptionImpl>checkedExceptionsprotected booleanisOneWayprotected JavaMethodImpljavaMethodprotected MessageContextFactorypacketFactoryprotected ResponseBuilderresponseBuilderprotected StringsoapActionprotected SOAPVersionsoapVersion
-
Constructor Summary
Constructors Constructor Description StubHandler(JavaMethodImpl method, MessageContextFactory mcf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PacketcreateRequestPacket(JavaCallInfo args)Creates a requestJAXBMessagefrom method arguments.MethodgetMethod()JavaMethodgetOperationModel()QNamegetOperationName()StringgetSoapAction()protected voidinitArgs(Object[] args)booleanisOneWay()JavaCallInforeadResponse(Packet p, JavaCallInfo call)
-
-
-
Field Detail
-
soapAction
protected final String soapAction
-
isOneWay
protected final boolean isOneWay
-
javaMethod
protected final JavaMethodImpl javaMethod
-
checkedExceptions
protected final Map<QName,CheckedExceptionImpl> checkedExceptions
-
soapVersion
protected SOAPVersion soapVersion
-
responseBuilder
protected ResponseBuilder responseBuilder
-
packetFactory
protected MessageContextFactory packetFactory
-
-
Constructor Detail
-
StubHandler
public StubHandler(JavaMethodImpl method, MessageContextFactory mcf)
-
-
Method Detail
-
createRequestPacket
public Packet createRequestPacket(JavaCallInfo args)
Creates a requestJAXBMessagefrom method arguments.- Specified by:
createRequestPacketin interfaceClientCallBridge- Parameters:
args- proxy invocation arguments- Returns:
- Message for the arguments
-
readResponse
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable
- Specified by:
readResponsein interfaceClientCallBridge- Throws:
Throwable
-
getOperationName
public QName getOperationName()
-
getSoapAction
public String getSoapAction()
-
isOneWay
public boolean isOneWay()
-
getMethod
public Method getMethod()
- Specified by:
getMethodin interfaceClientCallBridge
-
getOperationModel
public JavaMethod getOperationModel()
- Specified by:
getOperationModelin interfaceClientCallBridge
-
-