public static final class ResponseBuilder.Composite extends ResponseBuilder
ResponseBuilder that is a composition of multiple
ResponseBuilders.
Sometimes we need to look at multiple parts of the reply message
(say, two header params, one body param, and three attachments, etc.)
and that's when this object is used to combine multiple ResponseBuilders
(that each responsible for handling one part).
The model guarantees that only at most one ResponseBuilder will
return a value as a return value (and everything else has to go to
Holders.)
ResponseBuilder.AttachmentBuilder, ResponseBuilder.Body, ResponseBuilder.Composite, ResponseBuilder.DocLit, ResponseBuilder.Header, ResponseBuilder.None, ResponseBuilder.NullSetter, ResponseBuilder.RpcLit, ResponseBuilder.WrappedPartBuilderNONE, wrappedParts, wrapperName| Constructor and Description |
|---|
ResponseBuilder.Composite(Collection<? extends ResponseBuilder> builders) |
ResponseBuilder.Composite(ResponseBuilder... builders) |
| Modifier and Type | Method and Description |
|---|---|
Object |
readResponse(Message msg,
Object[] args)
Reads a response
Message, disassembles it, and moves obtained Java values
to the expected places. |
getVMUninitializedValue, getWSDLPartName, readWrappedResponsepublic ResponseBuilder.Composite(ResponseBuilder... builders)
public ResponseBuilder.Composite(Collection<? extends ResponseBuilder> builders)
public Object readResponse(Message msg, Object[] args) throws JAXBException, javax.xml.stream.XMLStreamException
ResponseBuilderMessage, disassembles it, and moves obtained Java values
to the expected places.readResponse in class ResponseBuildermsg - 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.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.Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.