Home | History | Annotate | Download | only in exchange

Lines Matching defs:code

179     // MSFT's custom HTTP result code indicating the need to provision
342 * Determine whether an HTTP code represents an authentication error
343 * @param code the HTTP code returned by the server
344 * @return whether or not the code represents an authentication error
346 protected boolean isAuthError(int code) {
347 return (code == HttpStatus.SC_UNAUTHORIZED) || (code == HttpStatus.SC_FORBIDDEN);
351 * Determine whether an HTTP code represents a provisioning error
352 * @param code the HTTP code returned by the server
353 * @return whether or not the code represents an provisioning error
355 protected boolean isProvisionError(int code) {
356 return (code == HTTP_NEED_PROVISIONING) || (code == HttpStatus.SC_FORBIDDEN);
404 int code = resp.getStatusLine().getStatusCode();
405 userLog("Validation (OPTIONS) response: " + code);
406 if (code == HttpStatus.SC_OK) {
424 code = resp.getStatusLine().getStatusCode();
426 if (code == HttpStatus.SC_FORBIDDEN || code == HTTP_NEED_PROVISIONING) {
438 } else if (code == HttpStatus.SC_NOT_FOUND) {
442 } else if (code != HttpStatus.SC_OK) {
444 userLog("Unexpected response for FolderSync: ", code);
450 if (isAuthError(code)) {
454 // TODO Need to catch other kinds of errors (e.g. policy) For now, report the code.
455 userLog("Validation failed, reporting I/O error: ", code);
501 * @throws IOException on any IOException within the HttpClient code
508 int code = resp.getStatusLine().getStatusCode();
510 if (code == AUTO_DISCOVER_REDIRECT_CODE) {
517 } else if (code == HttpStatus.SC_UNAUTHORIZED) {
531 } else if (code != HttpStatus.SC_OK) {
533 userLog("Code: " + code + ", throwing IOException");
608 // Get the "final" code; if it's not 200, just return null
609 int code = resp.getStatusLine().getStatusCode();
610 userLog("Code: " + code);
611 if (code != HttpStatus.SC_OK) return null;
816 int code = resp.getStatusLine().getStatusCode();
817 if (code == HttpStatus.SC_OK) {
827 svc.userLog("GAL lookup returned " + code);
1052 * @param req the request (message id and response code)
1080 userLog("Meeting response request failed, code: " + status);
1127 // account), send "0". The server will respond with code 449 if there are policies
1346 int code = resp.getStatusLine().getStatusCode();
1347 if (code == HttpStatus.SC_OK) {
1406 int code = resp.getStatusLine().getStatusCode();
1407 if (code == HttpStatus.SC_OK) {
1464 int code = resp.getStatusLine().getStatusCode();
1465 userLog("OPTIONS response: ", code);
1466 if (code == HttpStatus.SC_OK) {
1510 int code = resp.getStatusLine().getStatusCode();
1511 if (code == HttpStatus.SC_OK) {
1522 } else if (isProvisionError(code)) {
1536 } else if (isAuthError(code)) {
1540 userLog("FolderSync response error: ", code);
1781 int code = res.getStatusLine().getStatusCode();
1782 userLog("Ping response: ", code);
1790 if (code == HttpStatus.SC_OK) {
1818 } else if (isAuthError(code)) {
1820 userLog("Authorization error during Ping: ", code);
1930 * This behavior is seemingly random, and therefore we must code defensively
2009 * Common code to sync E+PIM data
2113 int code = resp.getStatusLine().getStatusCode();
2114 if (code == HttpStatus.SC_OK) {
2135 userLog("Sync response error: ", code);
2136 if (isProvisionError(code)) {
2138 } else if (isAuthError(code)) {