| 1 | |
package org.apache.ws.scout.registry; |
| 2 | |
|
| 3 | |
import javax.xml.registry.JAXRException; |
| 4 | |
import javax.xml.registry.JAXRResponse; |
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | 248 | 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 | 248 | private int status = STATUS_SUCCESS; |
| 19 | |
|
| 20 | 248 | private String requestId = null; |
| 21 | 248 | private boolean available = false; |
| 22 | |
|
| 23 | |
public String getRequestId() throws JAXRException { |
| 24 | 0 | return this.requestId; |
| 25 | |
} |
| 26 | |
|
| 27 | |
public void setRequestId(String s) { |
| 28 | 0 | this.requestId = s; |
| 29 | 0 | } |
| 30 | |
|
| 31 | |
public int getStatus() throws JAXRException { |
| 32 | 120 | return this.status; |
| 33 | |
} |
| 34 | |
|
| 35 | |
public void setStatus(int s) { |
| 36 | 0 | this.status = s; |
| 37 | 0 | } |
| 38 | |
|
| 39 | |
public void setAvailable(boolean b) { |
| 40 | 0 | this.available = b; |
| 41 | 0 | } |
| 42 | |
public boolean isAvailable() throws JAXRException { |
| 43 | 0 | return this.available; |
| 44 | |
} |
| 45 | |
} |