public class SoapDocument extends Object implements AutoCloseable
| Constructor and Description |
|---|
SoapDocument(@Nullable InputStream inputStream,
@Nullable OutputStream outputStream)
Manages a SOAP document originating from the given
InputStream and writing it's request answer to the
given OutputStream. |
SoapDocument(@Nullable URI source,
@Nullable File targetFile)
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes source and target stream.
|
@Nullable URI |
getSource()
Returns the
URI of the document source. |
@Nullable DataHandler |
getSourceDataHandler()
Returns a
DataHandler for the document's source. |
boolean |
isFileSource()
Returns true if the
URI of the document source points to a file. |
void |
save(@Nullable DataHandler resultDataHandler)
Attempts to write the SOAP response document to the given
DataHandler. |
public SoapDocument(@Nullable
@Nullable InputStream inputStream,
@Nullable
@Nullable OutputStream outputStream)
InputStream and writing it's request answer to the
given OutputStream.inputStream - The InputStream the SOAP document is originating from.outputStream - The target OutputStream the request answer shall be written to.@Nullable public @Nullable DataHandler getSourceDataHandler()
DataHandler for the document's source.DataHandler for the document's source.public void save(@Nullable
@Nullable DataHandler resultDataHandler)
throws IOException
DataHandler.resultDataHandler - The DataHandler the SOAP response document shall be written to.IOException - a IOExceptionpublic void close()
close in interface AutoCloseableCopyright © 2017–2022 SoftVision Development GmbH, Fulda, Germany. All rights reserved.