01: package org.apache.ws.scout.registry;
02:
03: import javax.xml.registry.JAXRException;
04: import javax.xml.registry.JAXRResponse;
05:
06: /**
07: * Implementation of JAXRResponse
08:
09: * @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:
43: public boolean isAvailable() throws JAXRException {
44: return this.available;
45: }
46: }
|