Package com.sun.xml.ws.handler
Class PortInfoImpl
- java.lang.Object
-
- com.sun.xml.ws.handler.PortInfoImpl
-
- All Implemented Interfaces:
javax.xml.ws.handler.PortInfo
public class PortInfoImpl extends Object implements javax.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
WSServiceDelegatewhen used to place a handler chain into the HandlerResolver map. Another is created later byWSServiceDelegateto retrieve the necessary handler chain to set on a binding instance.- Author:
- WS Development Team
- See Also:
WSServiceDelegate,com.sun.xml.ws.client.HandlerResolverImpl
-
-
Constructor Summary
Constructors Constructor Description PortInfoImpl(BindingID bindingId, QName portName, QName serviceName)The class is constructed with the information needed to identify a port.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Object.equals is overridden here so that PortInfo objects can be compared when using them as keys in the map in HandlerResolverImpl.StringgetBindingID()QNamegetPortName()QNamegetServiceName()inthashCode()Needed so PortInfoImpl can be used as a key in a map.
-
-
-
Constructor Detail
-
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 Detail
-
getBindingID
public String getBindingID()
- Specified by:
getBindingIDin interfacejavax.xml.ws.handler.PortInfo
-
getPortName
public QName getPortName()
- Specified by:
getPortNamein interfacejavax.xml.ws.handler.PortInfo
-
getServiceName
public QName getServiceName()
- Specified by:
getServiceNamein interfacejavax.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.
-
-