示例#1
0
 @Override
 public void setStatus(int status, String message) {
   this.status = status;
   if (!isError()) {
     super.setStatus(status, message);
   }
 }
示例#2
0
 @Override
 public void setStatus(int i) {
   if (i != 200) {
     wrapped = false;
   }
   super.setStatus(i);
 }
示例#3
0
 @Override
 public void setStatus(int status) {
   this.status = status;
   if (!isError()) {
     super.setStatus(status);
   }
 }
 public void setStatus(int statusCode) {
   detectErrorResponse(statusCode);
   super.setStatus(statusCode);
 }
 public void setStatus(int code, String msg) {
   statusCode = code;
   super.setStatus(code);
 }
 public void setStatus(int code) {
   statusCode = code;
   super.setStatus(code);
 }
示例#7
0
 /** @deprecated */
 public void setStatus(int sc, String sm) {
   super.setStatus(sc, sm);
 }
 /** Check for not modified so that users of this class can use it. */
 public void setStatus(int sc) {
   super.setStatus(sc);
   this.status = sc;
 }
 @Override
 public void setStatus(int sc) {
   super.setStatus(sc);
   statusCode = sc;
 }
示例#10
0
 @Override
 public void setStatus(int sc) {
   httpStatus = sc;
   super.setStatus(sc);
 }
示例#11
0
 @SuppressWarnings("deprecation") // This is due to Tomcat 7 (not applicable to AppEngine)
 @Override
 public void setStatus(final int sc, final String sm) {
   status = sc;
   super.setStatus(sc, sm);
 }
示例#12
0
 @Override
 public void setStatus(final int sc) {
   status = sc;
   super.setStatus(sc);
 }
 @SuppressWarnings("deprecation")
 public void setStatus(int statusCode, String statusMessage) {
   super.setStatus(statusCode, statusMessage);
   this.status = statusCode;
 }
 public void setStatus(int statusCode) {
   super.setStatus(statusCode);
   this.status = statusCode;
 }
示例#15
0
 /** Sets the status code for this response. */
 public void setStatus(final int code, final String msg) {
   statusCode = code;
   LOG.warn("Discarding message because this method is deprecated.");
   super.setStatus(code);
 }
 public void setStatus(int statusCode, String message) {
   detectErrorResponse(statusCode);
   super.setStatus(statusCode, message);
 }
 @Override
 public void setStatus(final int status) {
   super.setStatus(status);
   this.status = status;
 }
 @Override
 public void setStatus(int sc, String sm) {
   super.setStatus(sc, sm);
   statusCode = sc;
   message = sm;
 }