KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > protocol > AddressingDispositionException


1 /*
2  * @(#)AddressingDispositionException.java 1.6 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.protocol;
9
10 import com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr;
11
12 /**
13  * This exception is thrown while reading GIOP 1.2 Request, LocateRequest
14  * to indicate that a TargetAddress disposition is unacceptable.
15  * If this exception is caught explicitly, this need to be rethrown. This
16  * is eventually handled within RequestPRocessor and an appropriate reply
17  * is sent back to the client.
18  *
19  * GIOP 1.2 allows three dispositions : KeyAddr (ObjectKey), ProfileAddr (ior
20  * profile), IORAddressingInfo (IOR). If the ORB does not support the
21  * disposition contained in the GIOP Request / LocateRequest 1.2 message,
22  * then it sends a Reply / LocateReply indicating the correct disposition,
23  * which the client ORB shall use to transparently retry the request
24  * with the correct disposition.
25  *
26  */

27 public class AddressingDispositionException extends RuntimeException JavaDoc {
28
29     private short expectedAddrDisp = KeyAddr.value;
30
31     public AddressingDispositionException(short expectedAddrDisp) {
32         this.expectedAddrDisp = expectedAddrDisp;
33     }
34
35     public short expectedAddrDisp() {
36         return this.expectedAddrDisp;
37     }
38 }
39
Popular Tags