java.lang.Object
com.sun.xml.ws.handler.PortInfoImpl
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionPortInfoImpl
(BindingID bindingId, QName portName, QName serviceName) The class is constructed with the information needed to identify a port. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Object.equals is overridden here so that PortInfo objects can be compared when using them as keys in the map in HandlerResolverImpl.int
hashCode()
Needed so PortInfoImpl can be used as a key in a map.
-
Constructor Details
-
PortInfoImpl
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
- Specified by:
getBindingID
in interfacejakarta.xml.ws.handler.PortInfo
-
getPortName
- Specified by:
getPortName
in interfacejakarta.xml.ws.handler.PortInfo
-
getServiceName
- Specified by:
getServiceName
in interfacejakarta.xml.ws.handler.PortInfo
-
equals
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. -
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.
-