示例#1
0
 /**
  * Remember the response's user and debug messages for a later response. This is used for
  * redirects, where messages can't be displayed immediately.
  *
  * @param res the response to retrieve the messages from
  */
 public synchronized void storeResponseMessages(ResponseTrans res) {
   message = res.getMessage();
   debugBuffer = res.getDebugBuffer();
   if (message != null || debugBuffer != null) {
     modifiedInRequest = true;
   }
 }
示例#2
0
 /**
  * Set the user and debug messages over from a previous response. This is used for redirects,
  * where messages can't be displayed immediately.
  *
  * @param res the response to set the messages on
  */
 public synchronized void recoverResponseMessages(ResponseTrans res) {
   if (message != null || debugBuffer != null) {
     res.setMessage(message);
     res.setDebugBuffer(debugBuffer);
     message = null;
     debugBuffer = null;
     modifiedInRequest = true;
   }
 }