/[classpath]/classpath/gnu/CORBA/GIOP/ReplyHeader.java
ViewVC logotype

Diff of /classpath/gnu/CORBA/GIOP/ReplyHeader.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.2 by gnu_andrew, Tue Aug 2 20:12:08 2005 UTC revision 1.1.2.3 by gnu_andrew, Sat Sep 10 15:31:35 2005 UTC
# Line 41  package gnu.CORBA.GIOP; Line 41  package gnu.CORBA.GIOP;
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.
# Line 65  public abstract class ReplyHeader Line 65  public abstract class ReplyHeader
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    
# Line 84  public abstract class ReplyHeader Line 83  public abstract class ReplyHeader
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;
# Line 110  public abstract class ReplyHeader Line 99  public abstract class ReplyHeader
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    }    }

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26