View Javadoc

1   package ch.odi.pam;
2   
3   /**
4    * A response to a message that is sent back to Pam. Instances of this class are immutable.
5    *
6    * @author Ortwin Gl?ck
7    */
8   public class PamResponse {
9       // those are read by the native code. Do not remove!
10      private String resp;
11      private int resp_retcode;
12      
13      /**
14       * Creates a new PamResponse with 0 as the retcode.
15       * 
16       * @param resp The response
17       */
18      public PamResponse(String resp) {
19          this(resp, 0);
20      }
21      
22      /**
23       * Create a new PamResponse.
24       * 
25       * @param resp The response
26       * @param retcode Currently, there are no definitions for retcode values; the normal value is 0.
27       */
28      public PamResponse(String resp, int retcode) {
29          this.resp = resp;
30          this.resp_retcode = retcode;
31      }
32  }