blob: 3db10dd3a4c4e5129e37158aa1afa3c56cf0c378 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
package com.netscape.certsrv.request;
import javax.ws.rs.core.Response;
import com.netscape.certsrv.base.PKIException;
public class RequestNotFoundException extends PKIException {
private static final long serialVersionUID = -4784839378360933483L;
public RequestId requestId;
public RequestNotFoundException(RequestId requestId) {
this(requestId, "Request ID "+requestId.toHexString()+" not found");
}
public RequestNotFoundException(RequestId requestId, String message) {
super(Response.Status.NOT_FOUND, message);
this.requestId = requestId;
}
public RequestNotFoundException(RequestId requestId, String message, Throwable cause) {
super(Response.Status.NOT_FOUND, message, cause);
this.requestId = requestId;
}
public RequestNotFoundException(Data data) {
super(data);
requestId = new RequestId(data.getAttribute("requestId"));
}
public Data getData() {
Data data = super.getData();
data.setAttribute("requestId", requestId.toString());
return data;
}
public RequestId getRequestId() {
return requestId;
}
public void setRequestId(RequestId requestId) {
this.requestId = requestId;
}
}
|