|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.MoveCopyItemRequest<TResponse>
TResponse - the generic typepublic abstract class MoveCopyItemRequest<TResponse extends ServiceResponse>
* Represents an abstract Move/Copy Item request.
| Constructor Summary | |
|---|---|
protected |
MoveCopyItemRequest(ExchangeService service,
microsoft.exchange.webservices.data.ServiceErrorHandling errorHandlingMode)
* Initializes a new instance of the class. |
| Method Summary | |
|---|---|
protected abstract TResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
* Creates the service response. |
protected microsoft.exchange.webservices.data.HttpWebRequest |
emit(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> request)
* Send request and get response. |
protected ServiceResponseCollection<TResponse> |
execute()
* Executes this request. |
FolderId |
getDestinationFolderId()
Gets the destination folder id. |
protected microsoft.exchange.webservices.data.ServiceErrorHandling |
getErrorHandlingMode()
Gets a value indicating how errors should be handled. |
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count. |
protected microsoft.exchange.webservices.data.ItemIdWrapperList |
getItemIds()
* Gets the item ids. |
protected abstract ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum server version required to process this request. |
protected abstract String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element. |
protected static InputStream |
getResponseStream(microsoft.exchange.webservices.data.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 Boolean |
getReturnNewItemIds()
|
protected ExchangeService |
getService()
Gets the service. |
protected abstract String |
getXmlElementName()
Gets the name of the XML element. |
protected Object |
internalExecute()
Execute this request. |
protected Object |
parseResponse(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Parses the response. |
protected void |
readPreamble(microsoft.exchange.webservices.data.EwsServiceXmlReader ewsXmlReader)
* Reads any preamble data not part of the core response. |
protected Object |
readResponse(microsoft.exchange.webservices.data.EwsServiceXmlReader ewsXmlReader)
* Reads the response. |
protected microsoft.exchange.webservices.data.SoapFaultDetails |
readSoapFault(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
Reads the SOAP fault. |
void |
setDestinationFolderId(FolderId destinationFolderId)
Sets the destination folder id. |
protected void |
setReturnNewItemIds(Boolean value)
|
protected void |
throwIfNotSupportedByRequestedServerVersion()
* Throw exception if request is not supported in requested server version. |
protected void |
traceResponse(microsoft.exchange.webservices.data.HttpWebRequest request,
ByteArrayOutputStream memoryStream)
* Traces the response. |
void |
validate()
* Validates request. |
protected microsoft.exchange.webservices.data.HttpWebRequest |
validateAndEmitRequest(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> request)
* Validates request parameters, and emits the request to the server. |
protected void |
writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes XML attributes. |
protected void |
writeBodyToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes XML body. |
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
Writes XML elements. |
protected void |
writeIdsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes the ids as XML. |
protected void |
writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MoveCopyItemRequest(ExchangeService service,
microsoft.exchange.webservices.data.ServiceErrorHandling errorHandlingMode)
throws Exception
service - the serviceerrorHandlingMode - the error handling mode
Exception| Method Detail |
|---|
public void validate()
throws Exception
Exception - the exception
protected void writeIdsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writer - the writer
Exception - the exceptionprotected int getExpectedResponseMessageCount()
protected microsoft.exchange.webservices.data.ItemIdWrapperList getItemIds()
protected Boolean getReturnNewItemIds()
protected void setReturnNewItemIds(Boolean value)
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writer - the writer
Exception - the exceptionpublic FolderId getDestinationFolderId()
public void setDestinationFolderId(FolderId destinationFolderId)
destinationFolderId - the new destination folder id
protected Object parseResponse(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
throws Exception
reader - The reader.
Exception - the exception
protected abstract TResponse createServiceResponse(ExchangeService service,
int responseIndex)
throws Exception
service - The service.responseIndex - Index of the response.
Exception - the exceptionprotected abstract String getResponseMessageXmlElementName()
protected ServiceResponseCollection<TResponse> execute()
throws Exception
Exception - the exceptionprotected microsoft.exchange.webservices.data.ServiceErrorHandling getErrorHandlingMode()
protected Object internalExecute()
throws ServiceLocalException,
Exception
Exception
ServiceLocalExceptionprotected abstract String getXmlElementName()
protected abstract String getResponseXmlElementName()
protected abstract ExchangeVersion getMinimumRequiredServerVersion()
protected void writeBodyToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writer - The writer.
Exception - the exception
protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws ServiceXmlSerializationException
writer - The writer.
ServiceXmlSerializationException - the service xml serialization exceptionprotected ExchangeService getService()
protected void throwIfNotSupportedByRequestedServerVersion()
throws ServiceVersionException
ServiceVersionException - the service version exception
protected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writer - The writer.
Exception - the exception
protected microsoft.exchange.webservices.data.HttpWebRequest emit(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> request)
throws Exception
Exception - the exception
protected static InputStream getResponseStream(microsoft.exchange.webservices.data.HttpWebRequest request)
throws IOException,
EWSHttpException
request - HttpWebRequest object from which response stream can be read.
IOException - Signals that an I/O exception has occurred.
EWSHttpException - the eWS http exception
protected void traceResponse(microsoft.exchange.webservices.data.HttpWebRequest request,
ByteArrayOutputStream memoryStream)
throws XMLStreamException,
IOException,
EWSHttpException
request - The response.memoryStream - The response content in a MemoryStream.
XMLStreamException - the xML stream exception
IOException - Signals that an I/O exception has occurred.
EWSHttpException - the eWS http exception
protected Object readResponse(microsoft.exchange.webservices.data.EwsServiceXmlReader ewsXmlReader)
throws Exception
ewsXmlReader - The XML reader.
Exception - the exception
protected void readPreamble(microsoft.exchange.webservices.data.EwsServiceXmlReader ewsXmlReader)
throws Exception
ewsXmlReader - The EwsServiceXmlReader.
Exceptionprotected microsoft.exchange.webservices.data.SoapFaultDetails readSoapFault(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
reader - The reader.
protected microsoft.exchange.webservices.data.HttpWebRequest validateAndEmitRequest(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> request)
throws ServiceLocalException,
Exception
request - The request.
ServiceLocalException
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||