Class PortInfo

  • All Implemented Interfaces:
    WSPortInfo, jakarta.xml.ws.handler.PortInfo
    Direct Known Subclasses:
    SEIPortInfo

    public class PortInfo
    extends Object
    implements WSPortInfo
    Information about a port.
    This object is owned by WSServiceDelegate to keep track of a port, since a port maybe added dynamically.
    Author:
    JAXWS Development Team
    • Field Detail

      • portName

        @NotNull
        public final QName portName
      • bindingId

        @NotNull
        public final BindingID bindingId
      • policyMap

        @NotNull
        public final PolicyMap policyMap
      • portModel

        @Nullable
        public final WSDLPort portModel
        If a port is known statically to a WSDL, PortInfo may have the corresponding WSDL model. This would occur when the service was created with the WSDL location and the port is defined in the WSDL.
        If this is a SEIPortInfo, then this is always non-null.
    • Method Detail

      • getPolicyMap

        public PolicyMap getPolicyMap()
        Description copied from interface: WSPortInfo
        Gives the PolicMap that captures the Policy for the PortInfo
        Specified by:
        getPolicyMap in interface WSPortInfo
        Returns:
        PolicyMap
      • createPolicyMap

        public PolicyMap createPolicyMap()
      • createBinding

        public BindingImpl createBinding​(jakarta.xml.ws.WebServiceFeature[] webServiceFeatures,
                                         Class<?> portInterface)
        Creates BindingImpl for this PortInfo.
        Parameters:
        webServiceFeatures - User-specified features.
        portInterface - Null if this is for dispatch. Otherwise the interface the proxy is going to implement
        Returns:
        The initialized BindingImpl
      • getBindingId

        @NotNull
        public BindingID getBindingId()
        Description copied from interface: WSPortInfo
        Returns the same information as PortInfo.getBindingID() but in a strongly-typed fashion
        Specified by:
        getBindingId in interface WSPortInfo
      • getServiceName

        public QName getServiceName()
        Deprecated.
        Only meant to be used via PortInfo. Use WSServiceDelegate.getServiceName().
        Specified by:
        getServiceName in interface jakarta.xml.ws.handler.PortInfo
      • getPortName

        public QName getPortName()
        Only meant to be used via PortInfo. Use portName.
        Specified by:
        getPortName in interface jakarta.xml.ws.handler.PortInfo
      • getBindingID

        public String getBindingID()
        Deprecated.
        Only meant to be used via PortInfo. Use bindingId.
        Specified by:
        getBindingID in interface jakarta.xml.ws.handler.PortInfo