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 {@link Holder}s.)
  2. Accepts return value and {@link Holder} arguments for a Java method, and creates {@link JAXBMessage} that represents a response message.

Creating {@link JAXBMessage}

At the construction time, we prepare {@link EndpointArgumentsBuilder} that knows how to create endpoint {@link Method} invocation arguments. we also prepare {@link EndpointResponseMessageBuilder} and {@link MessageFiller}s that know how to move arguments into a {@link Message}. Some arguments go to the payload, some go to headers, still others go to attachments.


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()
           
(package private)  Throwable getServiceException(Throwable throwable)
           
 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)

getServiceException

Throwable getServiceException(Throwable throwable)

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 (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.