1 17 package org.apache.geronimo.webservices.builder; 18 19 import java.net.URI ; 20 import javax.wsdl.Definition; 21 import javax.wsdl.Port; 22 import javax.xml.namespace.QName ; 23 24 import org.apache.geronimo.xbeans.j2ee.JavaWsdlMappingType; 25 import org.apache.geronimo.xbeans.j2ee.PortComponentHandlerType; 26 import org.apache.geronimo.xbeans.j2ee.ServiceEndpointInterfaceMappingType; 27 28 31 public class PortInfo { 32 private final String portComponentName; 33 private final QName portQName; 34 private final SchemaInfoBuilder schemaInfoBuilder; 35 private final JavaWsdlMappingType javaWsdlMapping; 36 private final ServiceEndpointInterfaceMappingType seiMapping; 37 private final String seInterfaceName; 38 private final PortComponentHandlerType[] handlers; 39 private final Port port; 40 private final URI contextURI; 41 42 private final String wsdlLocation; 43 44 public PortInfo(String portComponentName, QName portQName, SchemaInfoBuilder schemaInfoBuilder, JavaWsdlMappingType javaWsdlMapping, String seiInterfaceName, PortComponentHandlerType[] handlers, Port port, ServiceEndpointInterfaceMappingType seiMapping, String wsdlLocation, URI contextURI) { 45 this.portComponentName = portComponentName; 46 this.portQName = portQName; 47 this.schemaInfoBuilder = schemaInfoBuilder; 48 this.javaWsdlMapping = javaWsdlMapping; 49 this.seInterfaceName = seiInterfaceName; 50 this.handlers = handlers; 51 this.port = port; 52 this.seiMapping = seiMapping; 53 this.wsdlLocation = wsdlLocation; 54 this.contextURI = contextURI; 55 } 56 57 public String getWsdlLocation() { 58 return wsdlLocation; 59 } 60 61 public String getPortComponentName() { 62 return portComponentName; 63 } 64 65 public QName getPortQName() { 66 return portQName; 67 } 68 69 public Port getPort() { 70 return port; 71 } 72 73 public SchemaInfoBuilder getSchemaInfoBuilder() { 74 return schemaInfoBuilder; 75 } 76 77 public Definition getDefinition() { 78 return schemaInfoBuilder.getDefinition(); 79 } 80 81 public JavaWsdlMappingType getJavaWsdlMapping() { 82 return javaWsdlMapping; 83 } 84 85 public String getServiceEndpointInterfaceName() { 86 return seInterfaceName; 87 } 88 89 90 public ServiceEndpointInterfaceMappingType getServiceEndpointInterfaceMapping() { 91 return seiMapping; 92 } 93 94 public PortComponentHandlerType[] getHandlers() { 95 return handlers; 96 } 97 98 public URI getContextURI() { 99 return contextURI; 100 } 101 } 102 | Popular Tags |