com.sun.xml.ws.client.sei
Class ResponseBuilder.AttachmentBuilder

java.lang.Object
  extended by com.sun.xml.ws.client.sei.ResponseBuilder
      extended by com.sun.xml.ws.client.sei.ResponseBuilder.AttachmentBuilder
Enclosing class:
ResponseBuilder

abstract static class ResponseBuilder.AttachmentBuilder
extends ResponseBuilder

Reads an Attachment into a Java parameter.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.ws.client.sei.ResponseBuilder
ResponseBuilder.AttachmentBuilder, ResponseBuilder.Body, ResponseBuilder.Composite, ResponseBuilder.DocLit, ResponseBuilder.Header, ResponseBuilder.None, ResponseBuilder.NullSetter, ResponseBuilder.RpcLit
 
Field Summary
protected  ParameterImpl param
           
protected  ValueSetter setter
           
 
Fields inherited from class com.sun.xml.ws.client.sei.ResponseBuilder
NONE
 
Constructor Summary
ResponseBuilder.AttachmentBuilder(ParameterImpl param, ValueSetter setter)
           
 
Method Summary
static ResponseBuilder createAttachmentBuilder(ParameterImpl param, ValueSetter setter)
          Creates an AttachmentBuilder based on the parameter type
(package private) abstract  Object mapAttachment(Attachment att, Object[] args)
           
 Object readResponse(Message msg, Object[] args)
          Reads a response Message, disassembles it, and moves obtained Java values to the expected places.
 
Methods inherited from class com.sun.xml.ws.client.sei.ResponseBuilder
getVMUninitializedValue, getWSDLPartName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

setter

protected final ValueSetter setter

param

protected final ParameterImpl param
Constructor Detail

ResponseBuilder.AttachmentBuilder

ResponseBuilder.AttachmentBuilder(ParameterImpl param,
                                  ValueSetter setter)
Method Detail

createAttachmentBuilder

public static ResponseBuilder createAttachmentBuilder(ParameterImpl param,
                                                      ValueSetter setter)
Creates an AttachmentBuilder based on the parameter type

Parameters:
param - runtime Parameter that abstracts the annotated java parameter
setter - specifies how the obtained value is set into the argument. Takes care of Holder arguments.

readResponse

public Object readResponse(Message msg,
                           Object[] args)
                    throws JAXBException,
                           javax.xml.stream.XMLStreamException
Description copied from class: ResponseBuilder
Reads a response Message, disassembles it, and moves obtained Java values to the expected places.

Specified by:
readResponse in class ResponseBuilder
Parameters:
msg - The reply Message to be de-composed.
args - The Java arguments given to the SEI method invocation. Some parts of the reply message may be set to Holders in the arguments.
Returns:
If a part of the reply message is returned as a return value from the SEI method, this method returns that value. Otherwise null.
Throws:
JAXBException - if there's an error during unmarshalling the reply message.
javax.xml.stream.XMLStreamException - if there's an error during unmarshalling the reply message.

mapAttachment

abstract Object mapAttachment(Attachment att,
                              Object[] args)
                       throws JAXBException
Throws:
JAXBException