1 17 package org.apache.geronimo.axis.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 portName; 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 portName, QName portQName, SchemaInfoBuilder schemaInfoBuilder, JavaWsdlMappingType javaWsdlMapping, String seiInterfaceName, PortComponentHandlerType[] handlers, Port port, ServiceEndpointInterfaceMappingType seiMapping, String wsdlLocation, URI contextURI) { 45 this.portName = portName; 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 getPortName() { 62 return getPortComponentName(); 63 } 64 65 public String getPortComponentName() { 66 return portName; 67 } 68 69 public QName getPortQName() { 70 return portQName; 71 } 72 73 public Port getPort() { 74 return port; 75 } 76 77 public SchemaInfoBuilder getSchemaInfoBuilder() { 78 return schemaInfoBuilder; 79 } 80 81 public Definition getDefinition() { 82 return schemaInfoBuilder.getDefinition(); 83 } 84 85 public JavaWsdlMappingType getJavaWsdlMapping() { 86 return javaWsdlMapping; 87 } 88 89 public String getServiceEndpointInterfaceName() { 90 return seInterfaceName; 91 } 92 93 94 public ServiceEndpointInterfaceMappingType getServiceEndpointInterfaceMapping() { 95 return seiMapping; 96 } 97 98 public PortComponentHandlerType[] getHandlers() { 99 return handlers; 100 } 101 102 public URI getContextURI() { 103 return contextURI; 104 } 105 } 106 | Popular Tags |