public class XMLCall extends Object
Constructor and Description |
---|
XMLCall() |
Modifier and Type | Method and Description |
---|---|
XMLCall |
addHeader(String name,
String value)
Adds a custom header field to the call
|
XMLStructuredInput |
getInput()
Provides access to the XML answer of the call.
|
Outcall |
getOutcall()
Returns the underlying Outcall.
|
XMLStructuredOutput |
getOutput()
Can be used to generate the XML request.
|
static XMLCall |
to(URL url)
Creates a new XMLCall for the given url with Content-Type 'text/xml'.
|
static XMLCall |
to(URL url,
String contentType)
Creates a new XMLCall for the given url.
|
public static XMLCall to(URL url) throws IOException
url
- the target URL to callIOException
- in case of an IO errorpublic static XMLCall to(URL url, String contentType) throws IOException
url
- the target URL to callcontentType
- the Content-Type to useIOException
- in case of an IO errorpublic XMLCall addHeader(String name, String value)
name
- name of the fieldvalue
- value of the fieldpublic Outcall getOutcall()
public XMLStructuredOutput getOutput() throws IOException
IOException
- in case of an IO error while sending the XML documentpublic XMLStructuredInput getInput() throws IOException
IOException
- in case of an IO error while receiving the resultCopyright © 2018. All rights reserved.