コード例 #1
0
  @Override
  protected void process(
      IContinuation continuation,
      UserDataRequest udr,
      Document doc,
      ActiveSyncRequest request,
      Responder responder) {

    MeetingHandlerRequest meetingRequest;
    try {

      meetingRequest = meetingProtocol.getRequest(doc);
      MeetingHandlerResponse meetingResponse = doTheJob(meetingRequest, udr);
      Document document = meetingProtocol.encodeResponses(meetingResponse);
      sendResponse(responder, document);

    } catch (NoDocumentException e) {
      sendErrorResponse(responder, MeetingResponseStatus.INVALID_MEETING_RREQUEST);
    } catch (CollectionNotFoundException e) {
      sendErrorResponse(responder, MeetingResponseStatus.INVALID_MEETING_RREQUEST);
    } catch (ProcessingEmailException e) {
      logger.error(e.getMessage(), e);
      sendErrorResponse(responder, MeetingResponseStatus.SERVER_ERROR);
    } catch (ConversionException e) {
      logger.error(e.getMessage(), e);
      sendErrorResponse(responder, MeetingResponseStatus.SERVER_ERROR);
    }
  }
コード例 #2
0
  private void deleteInvitationEmail(UserDataRequest udr, MeetingResponse item) {

    try {
      contentsImporter.importMessageDeletion(
          udr, PIMDataType.EMAIL, item.getCollectionId(), item.getReqId(), false);
    } catch (ItemNotFoundException e) {
      logger.warn(e.getMessage(), e);
    } catch (UnexpectedObmSyncServerException e) {
      logger.warn(e.getMessage(), e);
    } catch (ProcessingEmailException e) {
      logger.warn(e.getMessage(), e);
    } catch (DaoException e) {
      logger.warn(e.getMessage(), e);
    } catch (CollectionNotFoundException e) {
      logger.warn(e.getMessage(), e);
    } catch (UnsupportedBackendFunctionException e) {
      logger.warn(e.getMessage(), e);
    }
  }