KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > service > soap > AddressingEndpointFactory


1 package org.jbpm.bpel.service.soap;
2
3 import javax.xml.namespace.QName JavaDoc;
4
5
6 import org.jbpm.bpel.service.exe.ServiceReference;
7 import org.jbpm.bpel.service.spi.EndpointReference;
8 import org.jbpm.bpel.service.spi.EndpointReferenceFactory;
9
10 /**
11  * @author Alejandro Guízar
12  * @version $Revision: 1.3 $ $Date: 2005/06/17 01:31:31 $
13  */

14 public class AddressingEndpointFactory extends EndpointReferenceFactory {
15   
16   /** {@inheritDoc} */
17   public boolean acceptsReference(QName JavaDoc endpointRefName, String JavaDoc refScheme) {
18     return (refScheme == null || refScheme.equals("") || refScheme.equals(AddressingConstants.NS_ADDRESSING))
19     && endpointRefName.getNamespaceURI().equals(AddressingConstants.NS_ADDRESSING)
20     && endpointRefName.getLocalPart().equals(AddressingConstants.ELEM_ENDPOINT_REFERENCE);
21   }
22
23   /** {@inheritDoc} */
24   public EndpointReference createEndpoint(ServiceReference serviceRef) {
25     // TODO Auto-generated method stub
26
return null;
27   }
28 }
29
Popular Tags