This project has retired. For details please refer to its Attic page.
JAXRResponseImpl xref
View Javadoc
1   package org.apache.ws.scout.registry;
2   
3   import javax.xml.registry.JAXRException;
4   import javax.xml.registry.JAXRResponse;
5   
6   /**
7    * Implementation of JAXRResponse
8   
9    * @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a>
10   */
11  public class JAXRResponseImpl implements JAXRResponse {
12  
13      public final static int STATUS_SUCCESS = 0;
14      public final static int STATUS_FAILURE = 1;
15      public final static int STATUS_UNAVAILABLE = 2;
16      public final static int STATUS_WARNING = 3;
17  
18      private int status = STATUS_SUCCESS;
19  
20      private String requestId = null;
21      private boolean available = false;
22  
23      public String getRequestId() throws JAXRException {
24          return this.requestId;
25      }
26  
27      public void setRequestId(String s) {
28          this.requestId = s;
29      }
30  
31      public int getStatus() throws JAXRException {
32          return this.status;
33      }
34  
35      public void setStatus(int s) {
36          this.status = s;
37      }
38  
39      public void setAvailable(boolean b) {
40          this.available = b;
41      }
42      public boolean isAvailable() throws JAXRException {
43          return this.available;
44      }
45  }