|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.MoveCopyItemRequest<MoveCopyItemResponse>
microsoft.exchange.webservices.data.CopyItemRequest
public class CopyItemRequest
Represents a CopyItem request.
Constructor Summary | |
---|---|
protected |
CopyItemRequest(ExchangeService service,
microsoft.exchange.webservices.data.ServiceErrorHandling errorHandlingMode)
* Initializes a new instance of the class. |
Method Summary | |
---|---|
protected AsyncRequestResult |
beginExecute(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state)
Begins executing this async request. |
protected OutParam<microsoft.exchange.webservices.data.HttpWebRequest> |
buildEwsHttpWebRequest()
|
protected MoveCopyItemResponse |
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> |
endExecute(IAsyncResult asyncResult)
Ends executing this async request. |
protected microsoft.exchange.webservices.data.HttpWebRequest |
endGetEwsHttpWebResponse(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> request,
AsyncRequestResult asyncResult)
Ends getting the specified async HttpWebRequest object from the specified IEwsHttpWebRequest object with exception handling. |
protected java.lang.Object |
endInternalExecute(IAsyncResult asyncResult)
Ends executing this async request. |
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 microsoft.exchange.webservices.data.HttpWebRequest |
getEwsHttpWebResponse(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> outparam)
Gets the IEwsHttpWebRequest object from the specifiedHttpWebRequest object with exception handling |
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version. |
protected java.lang.String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element. |
protected static java.io.InputStream |
getResponseStream(microsoft.exchange.webservices.data.HttpWebRequest request)
* Gets the response stream (may be wrapped with GZip/Deflate stream to decompress content). |
protected java.lang.String |
getResponseXmlElementName()
Gets the name of the response XML element. |
protected ExchangeService |
getService()
Gets the service. |
protected java.lang.String |
getXmlElementName()
Gets the name of the XML element. |
protected java.lang.Object |
internalExecute()
Executes this request. |
protected java.lang.Object |
parseResponse(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Parses the response. |
protected void |
processWebException(java.lang.Exception webException,
microsoft.exchange.webservices.data.HttpWebRequest req)
* Processes the web exception. |
protected void |
readPreamble(microsoft.exchange.webservices.data.EwsServiceXmlReader ewsXmlReader)
* Reads any preamble data not part of the core response. |
protected java.lang.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 |
throwIfNotSupportedByRequestedServerVersion()
* Throw exception if request is not supported in requested server version. |
protected void |
traceResponse(microsoft.exchange.webservices.data.HttpWebRequest request,
java.io.ByteArrayOutputStream memoryStream)
* Traces the response. |
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 |
writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes XML. |
Methods inherited from class microsoft.exchange.webservices.data.MoveCopyItemRequest |
---|
getExpectedResponseMessageCount, getItemIds, getReturnNewItemIds, setReturnNewItemIds, validate, writeIdsToXml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CopyItemRequest(ExchangeService service, microsoft.exchange.webservices.data.ServiceErrorHandling errorHandlingMode) throws java.lang.Exception
service
- the serviceerrorHandlingMode
- the error handling mode
java.lang.Exception
Method Detail |
---|
protected MoveCopyItemResponse createServiceResponse(ExchangeService service, int responseIndex)
service
- the serviceresponseIndex
- the response index
protected java.lang.String getXmlElementName()
protected java.lang.String getResponseXmlElementName()
protected java.lang.String getResponseMessageXmlElementName()
protected ExchangeVersion getMinimumRequiredServerVersion()
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws java.lang.Exception
writer
- the writer
java.lang.Exception
- the exceptionpublic FolderId getDestinationFolderId()
public void setDestinationFolderId(FolderId destinationFolderId)
destinationFolderId
- the new destination folder idprotected java.lang.Object parseResponse(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws java.lang.Exception
reader
- The reader.
java.lang.Exception
- the exceptionprotected ServiceResponseCollection<TResponse> execute() throws java.lang.Exception
java.lang.Exception
- the exceptionprotected ServiceResponseCollection<TResponse> endExecute(IAsyncResult asyncResult) throws java.lang.Exception
asyncResultThe
- async result
java.lang.Exception
protected microsoft.exchange.webservices.data.ServiceErrorHandling getErrorHandlingMode()
protected java.lang.Object internalExecute() throws ServiceLocalException, java.lang.Exception
java.lang.Exception
ServiceLocalException
protected java.lang.Object endInternalExecute(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- The async result
java.lang.Exception
protected AsyncRequestResult beginExecute(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state) throws java.lang.Exception
callback
- The AsyncCallback delegate.state
- An object that contains state information for this request.
java.lang.Exception
protected void writeBodyToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws java.lang.Exception
writer
- The writer.
java.lang.Exception
- the exceptionprotected 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 exceptionprotected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws java.lang.Exception
writer
- The writer.
java.lang.Exception
- the exceptionprotected microsoft.exchange.webservices.data.HttpWebRequest emit(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> request) throws java.lang.Exception
java.lang.Exception
- the exceptionprotected static java.io.InputStream getResponseStream(microsoft.exchange.webservices.data.HttpWebRequest request) throws java.io.IOException, EWSHttpException
request
- HttpWebRequest object from which response stream can be read.
java.io.IOException
- Signals that an I/O exception has occurred.
EWSHttpException
- the eWS http exceptionprotected void traceResponse(microsoft.exchange.webservices.data.HttpWebRequest request, java.io.ByteArrayOutputStream memoryStream) throws javax.xml.stream.XMLStreamException, java.io.IOException, EWSHttpException
request
- The response.memoryStream
- The response content in a MemoryStream.
javax.xml.stream.XMLStreamException
- the xML stream exception
java.io.IOException
- Signals that an I/O exception has occurred.
EWSHttpException
- the eWS http exceptionprotected java.lang.Object readResponse(microsoft.exchange.webservices.data.EwsServiceXmlReader ewsXmlReader) throws java.lang.Exception
ewsXmlReader
- The XML reader.
java.lang.Exception
- the exceptionprotected void readPreamble(microsoft.exchange.webservices.data.EwsServiceXmlReader ewsXmlReader) throws java.lang.Exception
ewsXmlReader
- The EwsServiceXmlReader.
java.lang.Exception
protected microsoft.exchange.webservices.data.HttpWebRequest endGetEwsHttpWebResponse(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> request, AsyncRequestResult asyncResult) throws java.lang.Exception
request
- The specified HttpWebRequestasyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
protected void processWebException(java.lang.Exception webException, microsoft.exchange.webservices.data.HttpWebRequest req) throws java.lang.Exception
webException
- The web exception.req
- http Request object used to send the http request.
java.lang.Exception
java.lang.Exception
protected 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, java.lang.Exception
request
- The request.
ServiceLocalException
java.lang.Exception
protected OutParam<microsoft.exchange.webservices.data.HttpWebRequest> buildEwsHttpWebRequest() throws java.lang.Exception
java.lang.Exception
protected microsoft.exchange.webservices.data.HttpWebRequest getEwsHttpWebResponse(OutParam<microsoft.exchange.webservices.data.HttpWebRequest> outparam) throws java.lang.Exception
request
- The specified HttpWebRequest
java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |