1 /****************************************************************************
2 * Copyright (c) 2005, 2006, 2007, 2008, 2009 Imola Informatica.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the LGPL License v2.1
5 * which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 ****************************************************************************/
8 package it.imolinfo.jbi4corba.jbi.endpoint;
9
10
11 import javax.jbi.servicedesc.ServiceEndpoint;
12 import javax.xml.namespace.QName;
13
14 import org.w3c.dom.DocumentFragment;
15
16 /**
17 * This Class Implements ServiceEndpoint for resolve the endpoint dynamically
18 * and use it for setting the dynamic corba object in the exchange
19 *
20 * @author <a href="mailto:lacquaviva@imolinfo.it">Luca Acquaviva</a>
21 */
22 public class Jbi4CorbaSFServiceEndpoint implements ServiceEndpoint{
23
24 /**
25 * The Jbi4CorbaEndpont
26 **/
27 private Jbi4CorbaEndpoint endpoint;
28
29
30 /**
31 * The String that Contain the IOR
32 */
33 private String ior;
34
35 /**
36 * The DocumentFragment that Contain the EPR
37 */
38 private DocumentFragment epr;
39
40 /**
41 * EPR info
42 *
43 * /
44 private EPREndpointInfo eprInfo;
45
46
47 /**
48 * Constructor
49 */
50 public Jbi4CorbaSFServiceEndpoint(Jbi4CorbaEndpoint ep,DocumentFragment epr,String ior){
51 this.epr=epr;
52 endpoint=ep;
53 this.ior=ior;
54 }
55
56 public DocumentFragment getAsReference(QName arg0) {
57
58 return epr;
59 }
60
61 /**
62 * Return the Endpointname
63 * @return the return
64 **/
65 public String getEndpointName() {
66 return endpoint.getEndpointName();
67 }
68
69 /**
70 * Return the Endpointname
71 * @the Return
72 */
73 public QName[] getInterfaces() {
74 throw new UnsupportedOperationException("Not supported yet.");
75 }
76
77 /**
78 * Return the Endpointname
79 * @return
80 */
81 public QName getServiceName() {
82 return endpoint.getServiceName();
83 }
84
85 /**
86 * Return the Jbi4Corba Endpoint
87 */
88 public Jbi4CorbaEndpoint getEndpoint() {
89 return endpoint;
90 }
91
92 /**
93 * Return the IOR
94 */
95 public String getIor() {
96 return this.ior;
97 }
98
99 }