Package com.sun.xml.ws.client.sei
Class ResponseBuilder.Composite
- java.lang.Object
-
- com.sun.xml.ws.client.sei.ResponseBuilder
-
- com.sun.xml.ws.client.sei.ResponseBuilder.Composite
-
- Enclosing class:
- ResponseBuilder
public static final class ResponseBuilder.Composite extends ResponseBuilder
ResponseBuilderthat is a composition of multipleResponseBuilders.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
ResponseBuilderwill return a value as a return value (and everything else has to go toHolders.)
-
-
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.NullSetter, ResponseBuilder.RpcLit
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.client.sei.ResponseBuilder
NONE, wrappedParts, wrapperName
-
-
Constructor Summary
Constructors Constructor Description Composite(ResponseBuilder... builders)Composite(Collection<? extends ResponseBuilder> builders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectreadResponse(Message msg, Object[] args)Reads a responseMessage, disassembles it, and moves obtained Java values to the expected places.-
Methods inherited from class com.sun.xml.ws.client.sei.ResponseBuilder
getVMUninitializedValue, getWSDLPartName, readWrappedResponse
-
-
-
-
Constructor Detail
-
Composite
public Composite(ResponseBuilder... builders)
-
Composite
public Composite(Collection<? extends ResponseBuilder> builders)
-
-
Method Detail
-
readResponse
public Object readResponse(Message msg, Object[] args) throws jakarta.xml.bind.JAXBException, XMLStreamException
Description copied from class:ResponseBuilderReads a responseMessage, disassembles it, and moves obtained Java values to the expected places.- Specified by:
readResponsein classResponseBuilder- Parameters:
msg- The replyMessageto be de-composed.args- The Java arguments given to the SEI method invocation. Some parts of the reply message may be set toHolders 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:
jakarta.xml.bind.JAXBException- if there's an error during unmarshalling the reply message.XMLStreamException- if there's an error during unmarshalling the reply message.
-
-