com.sun.xml.ws.client.sei
Class StubHandler

java.lang.Object
  extended by com.sun.xml.ws.client.sei.StubHandler
All Implemented Interfaces:
ClientCallBridge
Direct Known Subclasses:
StubAsyncHandler

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:

  1. Accepts Object[] that represents arguments for a Java method, and creates JAXBMessage that represents a request message.
  2. Takes a com.sun.xml.ws.api.message.Message] that represents a response, and extracts the return value (and updates {@link javax.xml.ws.Holder }s.)

Creating {@link com.sun.xml.ws.message.jaxb.JAXBMessage }

At the construction time, we prepare {@link com.sun.xml.ws.client.sei.BodyBuilder} and {@link com.sun.xml.ws.client.sei.MessageFiller}s that know how to move arguments into a {@link com.sun.xml.ws.api.message.Message }. Some arguments go to the payload, some go to headers, still others go to attachments.


Field Summary
protected  Map<QName,CheckedExceptionImpl> checkedExceptions
           
protected  boolean isOneWay
           
protected  JavaMethodImpl javaMethod
           
protected  MessageContextFactory packetFactory
           
protected  ResponseBuilder responseBuilder
           
protected  String soapAction
           
protected  SOAPVersion soapVersion
           
 
Constructor Summary
StubHandler(JavaMethodImpl method, MessageContextFactory mcf)
           
 
Method Summary
(package private)  ResponseBuilder buildResponseBuilder(JavaMethodImpl method, ValueSetterFactory setterFactory)
           
 Packet createRequestPacket(JavaCallInfo call)
          Creates a request JAXBMessage from method arguments.
 Method getMethod()
           
 JavaMethod getOperationModel()
           
 QName getOperationName()
           
 String getSoapAction()
           
(package private)  ValueGetterFactory getValueGetterFactory()
           
protected  void initArgs(Object[] args)
           
 boolean isOneWay()
           
 JavaCallInfo readResponse(Packet p, JavaCallInfo call)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

buildResponseBuilder

ResponseBuilder buildResponseBuilder(JavaMethodImpl method,
                                     ValueSetterFactory setterFactory)

createRequestPacket

public Packet createRequestPacket(JavaCallInfo call)
Creates a request JAXBMessage from method arguments.

Specified by:
createRequestPacket in interface ClientCallBridge
Parameters:
args - proxy invocation arguments
Returns:
Message for the arguments

getValueGetterFactory

ValueGetterFactory getValueGetterFactory()

readResponse

public JavaCallInfo readResponse(Packet p,
                                 JavaCallInfo call)
                          throws Throwable
Specified by:
readResponse in interface ClientCallBridge
Throws:
Throwable

getOperationName

public QName getOperationName()

getSoapAction

public String getSoapAction()

isOneWay

public boolean isOneWay()

initArgs

protected void initArgs(Object[] args)
                 throws Exception
Throws:
Exception

getMethod

public 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.