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 java.lang.Object
- implements ClientCallBridge
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 updates Holders.)
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
soapAction
protected final java.lang.String soapAction
isOneWay
protected final boolean isOneWay
javaMethod
protected final JavaMethodImpl javaMethod
checkedExceptions
protected final java.util.Map<javax.xml.namespace.QName,CheckedExceptionImpl> checkedExceptions
soapVersion
protected SOAPVersion soapVersion
responseBuilder
protected ResponseBuilder responseBuilder
packetFactory
protected MessageContextFactory packetFactory
StubHandler
public StubHandler(JavaMethodImpl method,
MessageContextFactory mcf)
createRequestPacket
public Packet createRequestPacket(com.oracle.webservices.api.databinding.JavaCallInfo args)
- Creates a request
JAXBMessage from method arguments.
- Specified by:
createRequestPacket in interface ClientCallBridge
- Parameters:
args - proxy invocation arguments
- Returns:
- Message for the arguments
readResponse
public com.oracle.webservices.api.databinding.JavaCallInfo readResponse(Packet p,
com.oracle.webservices.api.databinding.JavaCallInfo call)
throws java.lang.Throwable
- Specified by:
readResponse in interface ClientCallBridge
- Throws:
java.lang.Throwable
getOperationName
public javax.xml.namespace.QName getOperationName()
getSoapAction
public java.lang.String getSoapAction()
isOneWay
public boolean isOneWay()
initArgs
protected void initArgs(java.lang.Object[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
getMethod
public java.lang.reflect.Method getMethod()
- Specified by:
getMethod in interface ClientCallBridge
getOperationModel
public JavaMethod getOperationModel()
- Specified by:
getOperationModel in interface ClientCallBridge
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.