コード例 #1
0
 /**
  * Helper method for adding to the response's already existing collection. This method should only
  * be called before returning the response to the client.
  */
 public void addCollection(Collection bCollection) {
   if (bCollection != null) {
     Iterator iter = bCollection.iterator();
     while (iter.hasNext()) {
       collection.add(iter.next());
     }
   }
 }
コード例 #2
0
 /**
  * Add multiple exceptions to exception collection. This method should only be called before
  * returning the response to the client.
  */
 public void addException(Collection bException) {
   if (bException != null && bException.size() > 0) {
     setStatus(STATUS_FAILURE);
     initExceptions();
     Iterator iter = bException.iterator();
     while (iter.hasNext()) {
       exceptions.add(iter.next());
     }
   }
 }
コード例 #3
0
 /**
  * Add single exception to exceptions collection. This method should only be called before
  * returning the response to the client.
  */
 public void addException(JAXRException except) {
   initExceptions();
   exceptions.add(except);
   setStatus(STATUS_FAILURE);
 }