public abstract class AutodiscoverRequest extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AutodiscoverRequest(AutodiscoverService service,
URI url)
Initializes a new instance of the AutodiscoverResponse class.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract AutodiscoverResponse |
createServiceResponse()
Creates the service response.
|
protected abstract String |
getRequestXmlElementName()
Gets the name of the request XML element.
|
protected static InputStream |
getResponseStream(HttpWebRequest request)
Gets the response stream (may be wrapped with GZip/Deflate stream to
decompress content).
|
protected abstract String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
protected AutodiscoverService |
getService()
Gets the Service.
|
protected URI |
getUrl()
Gets the URL.
|
protected abstract String |
getWsAddressingActionName()
Gets the WS-Addressing action name.
|
protected AutodiscoverResponse |
internalExecute()
Executes this instance.
|
static boolean |
isRedirectionResponse(HttpWebRequest request)
Determines whether response is a redirection.
|
protected AutodiscoverResponse |
loadFromXml(EwsXmlReader reader)
Loads response from XML.
|
protected AutodiscoverResponse |
readSoapBody(EwsXmlReader reader)
Read SOAP body.
|
protected void |
readSoapHeader(EwsXmlReader reader)
Reads a single SOAP header.
|
protected void |
readSoapHeaders(EwsXmlReader reader)
Read SOAP header.
|
protected void |
validate()
Validates the request.
|
protected abstract void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes attribute to request XML.
|
protected void |
writeBodyToXml(EwsServiceXmlWriter writer)
Writes XML body.
|
protected abstract void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to request XML.
|
protected void |
writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer)
Write extra headers.
|
protected void |
writeSoapRequest(URI requestUrl,
EwsServiceXmlWriter writer)
Writes the autodiscover SOAP request.
|
protected AutodiscoverRequest(AutodiscoverService service, URI url)
service - Autodiscover service associated with this request.url - URL of Autodiscover service.public static boolean isRedirectionResponse(HttpWebRequest request) throws EWSHttpException
request - the requestEWSHttpException - the EWS http exceptionprotected void validate() throws Exception
Exception - the exceptionprotected AutodiscoverResponse internalExecute() throws Exception
Exception - the exceptionprotected void writeSoapRequest(URI requestUrl, EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
requestUrl - request URLwriter - writer objectXMLStreamException - the XML stream exceptionServiceXmlSerializationException - the service xml serialization exceptionprotected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writer - the writerServiceXmlSerializationException - the service xml serialization exceptionXMLStreamException - the XML stream exceptionprotected void writeBodyToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException
writer - the writerServiceXmlSerializationException - the service xml serialization exceptionXMLStreamException - the XML stream exceptionprotected static InputStream getResponseStream(HttpWebRequest request) throws EWSHttpException, IOException
request - the requestEWSHttpException - the EWS http exceptionIOException - signals that an I/O exception has occurred.protected void readSoapHeaders(EwsXmlReader reader) throws Exception
reader - EwsXmlReader.Exception - the exceptionprotected void readSoapHeader(EwsXmlReader reader) throws Exception
reader - EwsXmlReaderException - on errorprotected AutodiscoverResponse readSoapBody(EwsXmlReader reader) throws Exception
reader - EwsXmlReader.Exception - the exceptionprotected AutodiscoverResponse loadFromXml(EwsXmlReader reader) throws Exception
reader - The reader.Exception - the exceptionprotected abstract String getRequestXmlElementName()
protected abstract String getResponseXmlElementName()
protected abstract String getWsAddressingActionName()
protected abstract AutodiscoverResponse createServiceResponse()
protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writer - The writer.ServiceXmlSerializationException - the service xml serialization exceptionprotected abstract void writeElementsToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
writer - the writerXMLStreamException - the XML stream exceptionServiceXmlSerializationException - the service xml serialization exceptionprotected AutodiscoverService getService()
Copyright © 2012–2015 Microsoft. All rights reserved.