|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.autodiscover.request.AutodiscoverRequest
public abstract class AutodiscoverRequest
Represents the base class for all requested made to the Autodiscover service.
| Constructor Summary | |
|---|---|
protected |
AutodiscoverRequest(AutodiscoverService service,
URI url)
Initializes a new instance of the AutodiscoverResponse class. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AutodiscoverRequest(AutodiscoverService service,
URI url)
service - Autodiscover service associated with this request.url - URL of Autodiscover service.| Method Detail |
|---|
public static boolean isRedirectionResponse(HttpWebRequest request)
throws EWSHttpException
request - the request
EWSHttpException - the EWS http exception
protected void validate()
throws Exception
Exception - the exception
protected AutodiscoverResponse internalExecute()
throws Exception
Exception - the exception
protected void writeSoapRequest(URI requestUrl,
EwsServiceXmlWriter writer)
throws XMLStreamException,
ServiceXmlSerializationException
requestUrl - request URLwriter - writer object
XMLStreamException - the XML stream exception
ServiceXmlSerializationException - the service xml serialization exception
protected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer)
throws XMLStreamException,
ServiceXmlSerializationException
writer - the writer
ServiceXmlSerializationException - the service xml serialization exception
XMLStreamException - the XML stream exception
protected void writeBodyToXml(EwsServiceXmlWriter writer)
throws ServiceXmlSerializationException,
XMLStreamException
writer - the writer
ServiceXmlSerializationException - the service xml serialization exception
XMLStreamException - the XML stream exception
protected static InputStream getResponseStream(HttpWebRequest request)
throws EWSHttpException,
IOException
request - the request
EWSHttpException - the EWS http exception
IOException - signals that an I/O exception has occurred.
protected void readSoapHeaders(EwsXmlReader reader)
throws Exception
reader - EwsXmlReader.
Exception - the exception
protected void readSoapHeader(EwsXmlReader reader)
throws Exception
reader - EwsXmlReader
Exception - on error
protected AutodiscoverResponse readSoapBody(EwsXmlReader reader)
throws Exception
reader - EwsXmlReader.
Exception - the exception
protected 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 exception
protected abstract void writeElementsToXml(EwsServiceXmlWriter writer)
throws XMLStreamException,
ServiceXmlSerializationException
writer - the writer
XMLStreamException - the XML stream exception
ServiceXmlSerializationException - the service xml serialization exceptionprotected AutodiscoverService getService()
protected URI getUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||