FileDocCategorySizeDatePackage
PortInfoImpl.javaAPI DocGlassfish v2 API3489Fri May 04 22:36:10 BST 2007com.sun.enterprise.webservice

PortInfoImpl

public class PortInfoImpl extends Object implements PortInfo
Implementation of the PortInfo interface. This is just a simple class used to hold the info necessary to uniquely identify a port, including the port name, service name, and binding ID. This class is only used on the client side.

Fields Summary
private com.sun.xml.ws.api.BindingID
bindingId
private QName
portName
private QName
serviceName
Constructors Summary
public PortInfoImpl(com.sun.xml.ws.api.BindingID bindingId, QName portName, QName serviceName)

        this.bindingId = bindingId;
        this.portName = portName;
        this.serviceName = serviceName;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if (obj instanceof PortInfo) {
            PortInfo info = (PortInfo) obj;
            if (bindingId.toString().equals(info.getBindingID().toString()) &&
                portName.equals(info.getPortName()) &&
                serviceName.equals(info.getServiceName())) {
                return true;
            }
        }
        return false;
    
public java.lang.StringgetBindingID()

        return bindingId.toString();
    
public javax.xml.namespace.QNamegetPortName()

        return portName;
    
public javax.xml.namespace.QNamegetServiceName()

        return serviceName;
    
public inthashCode()
Needed by JAXWS so PortInfoImpl can be used as a key in a map..

        return bindingId.toString().hashCode();