com.sun.xml.ws.server.sei
Class TieHandler

java.lang.Object
  extended by com.sun.xml.ws.server.sei.TieHandler
All Implemented Interfaces:
EndpointCallBridge

public final class TieHandler
extends Object
implements EndpointCallBridge

This class mainly performs the following two tasks:

  1. Takes a Message that represents a request, and extracts the arguments (and updates Holders.)
  2. Accepts return value and Holder arguments for a Java method, and creates JAXBMessage that represents a response message.

Creating JAXBMessage

At the construction time, we prepare EndpointArgumentsBuilder that knows how to create endpoint Method invocation arguments. we also prepare EndpointResponseMessageBuilder 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:
Jitendra Kotamraju, shih-chang.chen@oracle.com Refactored from EndpointMethodHandler

Field Summary
protected  MessageContextFactory packetFactory
           
 
Constructor Summary
TieHandler(JavaMethodImpl method, WSBinding binding, MessageContextFactory mcf)
           
 
Method Summary
 Message createResponse(JavaCallInfo call)
           
 JavaCallInfo deserializeRequest(Packet req)
           
 Method getMethod()
           
 JavaMethod getOperationModel()
           
 Object[] readRequest(Message reqMsg)
           
 Packet serializeResponse(JavaCallInfo call)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

packetFactory

protected MessageContextFactory packetFactory
Constructor Detail

TieHandler

public TieHandler(JavaMethodImpl method,
                  WSBinding binding,
                  MessageContextFactory mcf)
Method Detail

readRequest

public Object[] readRequest(Message reqMsg)

createResponse

public Message createResponse(JavaCallInfo call)

getMethod

public Method getMethod()

deserializeRequest

public JavaCallInfo deserializeRequest(Packet req)
Specified by:
deserializeRequest in interface EndpointCallBridge

serializeResponse

public Packet serializeResponse(JavaCallInfo call)
Specified by:
serializeResponse in interface EndpointCallBridge

getOperationModel

public JavaMethod getOperationModel()
Specified by:
getOperationModel in interface EndpointCallBridge


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.