01: package com.sun.portal.rproxy.configservlet;
02:
03: import java.io.Serializable;
04:
05: public class Response implements Serializable {
06:
07: private Object returnedObject;
08:
09: public Exception getExceptionObject() {
10: return exceptionObject;
11: }
12:
13: private String serviceName;
14:
15: private String requestType;
16:
17: private Exception exceptionObject;
18:
19: private boolean normal;
20:
21: private boolean needRecreateSession = false;
22:
23: public Response(String serviceName, String requestType,
24: Object returnedObject) {
25: this .serviceName = serviceName;
26: this .requestType = requestType;
27: this .returnedObject = returnedObject;
28: this .normal = true;
29: this .exceptionObject = null;
30: }
31:
32: public Response(String serviceName, String requestType,
33: Exception exceptionObject) {
34: this .serviceName = serviceName;
35: this .requestType = requestType;
36: this .exceptionObject = exceptionObject;
37: this .normal = false;
38: this .returnedObject = null;
39: }
40:
41: public Object getReturnedObject() {
42: return returnedObject;
43: }
44:
45: public String getServiceName() {
46: return serviceName;
47: }
48:
49: public String getRequestType() {
50: return requestType;
51: }
52:
53: public boolean isNormal() {
54: return normal;
55: }
56:
57: // iDSAME migration - Mridul
58: public void setReturnedObject(Object obj) {
59: returnedObject = obj;
60: }
61:
62: public void setNormal(boolean norm) {
63: normal = normal;
64: }
65:
66: public void setServiceName(String name) {
67: name = serviceName;
68: }
69:
70: public void setRequestType(String type) {
71: type = requestType;
72: }
73:
74: // EOC : iDSAME migration - Mridul
75:
76: public void setNeedRecreateSession(boolean val) {
77: needRecreateSession = val;
78: }
79:
80: public boolean getNeedRecreateSession() {
81: return needRecreateSession;
82: }
83: }
|