Class PortInfoImpl

java.lang.Object
com.sun.xml.ws.handler.PortInfoImpl
All Implemented Interfaces:
jakarta.xml.ws.handler.PortInfo

public class PortInfoImpl extends Object implements jakarta.xml.ws.handler.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.

An instance is created by WSServiceDelegate when used to place a handler chain into the HandlerResolver map. Another is created later by WSServiceDelegate to retrieve the necessary handler chain to set on a binding instance.

Author:
WS Development Team
See Also:
  • Constructor Details

    • PortInfoImpl

      public PortInfoImpl(BindingID bindingId, QName portName, QName serviceName)
      The class is constructed with the information needed to identify a port. This information cannot be changed later.
      Parameters:
      bindingId - The binding ID string.
      portName - The QName of the port.
      serviceName - The QName of the service.
  • Method Details

    • getBindingID

      public String getBindingID()
      Specified by:
      getBindingID in interface jakarta.xml.ws.handler.PortInfo
    • getPortName

      public QName getPortName()
      Specified by:
      getPortName in interface jakarta.xml.ws.handler.PortInfo
    • getServiceName

      public QName getServiceName()
      Specified by:
      getServiceName in interface jakarta.xml.ws.handler.PortInfo
    • equals

      public boolean equals(Object obj)
      Object.equals is overridden here so that PortInfo objects can be compared when using them as keys in the map in HandlerResolverImpl. This method relies on the equals() methods of java.lang.String and javax.xml.namespace.QName.
      Overrides:
      equals in class Object
      Parameters:
      obj - The PortInfo object to test for equality.
      Returns:
      True if they match, and false if they do not or if the object passed in is not a PortInfo.
    • hashCode

      public int hashCode()
      Needed so PortInfoImpl can be used as a key in a map. This method just delegates to the hashCode method of java.lang.String.
      Overrides:
      hashCode in class Object