41 |
import gnu.CORBA.CDR.cdrInput; |
import gnu.CORBA.CDR.cdrInput; |
42 |
import gnu.CORBA.CDR.cdrOutput; |
import gnu.CORBA.CDR.cdrOutput; |
43 |
|
|
|
|
|
44 |
/** |
/** |
45 |
* The header of the standard reply. |
* The header of the standard reply. |
46 |
* |
* |
47 |
* @author Audrius Meskauskas (AudriusA@Bioinformatics.org) |
* @author Audrius Meskauskas (AudriusA@Bioinformatics.org) |
48 |
*/ |
*/ |
49 |
public abstract class ReplyHeader |
public abstract class ReplyHeader |
50 |
|
extends contextSupportingHeader |
51 |
{ |
{ |
52 |
/** |
/** |
53 |
* Reply status, if no exception occured. |
* Reply status, if no exception occured. |
65 |
public static final int SYSTEM_EXCEPTION = 2; |
public static final int SYSTEM_EXCEPTION = 2; |
66 |
|
|
67 |
/** |
/** |
68 |
* Reply status, if the client ORB must re - send |
* Reply status, if the client ORB must re - send the request to another |
69 |
* the request to another destination. The body |
* destination. The body contains IOR. |
|
* contains IOR. |
|
70 |
*/ |
*/ |
71 |
public static final int LOCATION_FORWARD = 3; |
public static final int LOCATION_FORWARD = 3; |
72 |
|
|
83 |
public static final int NEEDS_ADDRESSING_MODE = 5; |
public static final int NEEDS_ADDRESSING_MODE = 5; |
84 |
|
|
85 |
/** |
/** |
|
* Empty array, indicating that no service context is available. |
|
|
*/ |
|
|
protected static final ServiceContext[] NO_CONTEXT = new ServiceContext[ 0 ]; |
|
|
|
|
|
/** |
|
|
* The ORB service data. |
|
|
*/ |
|
|
public ServiceContext[] service_context = NO_CONTEXT; |
|
|
|
|
|
/** |
|
86 |
* The status of this reply, holds one of the reply status constants. |
* The status of this reply, holds one of the reply status constants. |
87 |
*/ |
*/ |
88 |
public int reply_status; |
public int reply_status; |
99 |
{ |
{ |
100 |
switch (reply_status) |
switch (reply_status) |
101 |
{ |
{ |
102 |
case NO_EXCEPTION : |
case NO_EXCEPTION: |
103 |
return "ok"; |
return "ok"; |
104 |
|
|
105 |
case USER_EXCEPTION : |
case USER_EXCEPTION: |
106 |
return "user exception"; |
return "user exception"; |
107 |
|
|
108 |
case SYSTEM_EXCEPTION : |
case SYSTEM_EXCEPTION: |
109 |
return "system exception"; |
return "system exception"; |
110 |
|
|
111 |
case LOCATION_FORWARD : |
case LOCATION_FORWARD: |
112 |
return "moved"; |
return "moved"; |
113 |
|
|
114 |
default : |
default: |
115 |
return null; |
return null; |
116 |
} |
} |
117 |
} |
} |