service.traceMessage(TraceFlags.DebugMessage, logMessage); } catch (final XMLStreamException e) { LOG.error(e);
/** * Traces the response. * * @param request the response * @param memoryStream the response content in a MemoryStream * @throws XMLStreamException the XML stream exception * @throws IOException signals that an I/O exception has occurred * @throws EWSHttpException the EWS http exception */ protected void traceResponse(HttpWebRequest request, ByteArrayOutputStream memoryStream) throws XMLStreamException, IOException, EWSHttpException { this.service.processHttpResponseHeaders(TraceFlags.EwsResponseHttpHeaders, request); String contentType = request.getResponseContentType(); if (!isNullOrEmpty(contentType) && (contentType.startsWith("text/") || contentType .startsWith("application/soap"))) { this.service.traceXml(TraceFlags.EwsResponse, memoryStream); } else { this.service.traceMessage(TraceFlags.EwsResponse, "Non-textual response"); } }
} catch (AutodiscoverLocalException ex) { this.traceMessage(TraceFlags.AutodiscoverResponse, String .format("Autodiscover service call " + "failed with error '%s'. " this.traceMessage(TraceFlags.AutodiscoverResponse, String .format("Autodiscover service call " + "failed with error '%s'. "
this.traceMessage(TraceFlags.AutodiscoverConfiguration, String .format("No EWS Url returned for user %s, " + "error code is %s", emailAddress, response
service.traceMessage(TraceFlags.DebugMessage, logMessage); } catch (final XMLStreamException e) { LOG.error(e);
/** * Traces the response. * * @param request the response * @param memoryStream the response content in a MemoryStream * @throws XMLStreamException the XML stream exception * @throws IOException signals that an I/O exception has occurred * @throws EWSHttpException the EWS http exception */ protected void traceResponse(HttpWebRequest request, ByteArrayOutputStream memoryStream) throws XMLStreamException, IOException, EWSHttpException { this.service.processHttpResponseHeaders(TraceFlags.EwsResponseHttpHeaders, request); String contentType = request.getResponseContentType(); if (!isNullOrEmpty(contentType) && (contentType.startsWith("text/") || contentType .startsWith("application/soap"))) { this.service.traceXml(TraceFlags.EwsResponse, memoryStream); } else { this.service.traceMessage(TraceFlags.EwsResponse, "Non-textual response"); } }
} catch (AutodiscoverLocalException ex) { this.traceMessage(TraceFlags.AutodiscoverResponse, String .format("Autodiscover service call " + "failed with error '%s'. " this.traceMessage(TraceFlags.AutodiscoverResponse, String .format("Autodiscover service call " + "failed with error '%s'. "
this.traceMessage(TraceFlags.AutodiscoverConfiguration, String .format("No EWS Url returned for user %s, " + "error code is %s", emailAddress, response