Package com.sun.xml.ws.client
Class PortInfo
- java.lang.Object
-
- com.sun.xml.ws.client.PortInfo
-
- All Implemented Interfaces:
WSPortInfo,javax.xml.ws.handler.PortInfo
- Direct Known Subclasses:
SEIPortInfo
public class PortInfo extends Object implements WSPortInfo
Information about a port.
This object is owned byWSServiceDelegateto keep track of a port, since a port maybe added dynamically.- Author:
- JAXWS Development Team
-
-
Constructor Summary
Constructors Constructor Description PortInfo(WSServiceDelegate owner, EndpointAddress targetEndpoint, QName name, BindingID bindingId)PortInfo(WSServiceDelegate owner, WSDLPort port)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BindingImplcreateBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding)BindingImplcreateBinding(javax.xml.ws.WebServiceFeature[] webServiceFeatures, Class<?> portInterface)CreatesBindingImplfor thisPortInfo.PolicyMapcreatePolicyMap()BindingIDgetBindingId()Returns the same information asPortInfo.getBindingID()but in a strongly-typed fashionStringgetBindingID()Deprecated.Only meant to be used viaPortInfo.EndpointAddressgetEndpointAddress()Gets the endpoint address of this port.WSServicegetOwner()ReturnsWSServiceobject that owns this port.PolicyMapgetPolicyMap()Gives the PolicMap that captures the Policy for the PortInfoWSDLPortgetPort()QNamegetPortName()Only meant to be used viaPortInfo.QNamegetServiceName()Deprecated.Only meant to be used viaPortInfo.
-
-
-
Field Detail
-
targetEndpoint
@NotNull public final EndpointAddress targetEndpoint
-
portModel
@Nullable public final WSDLPort portModel
If a port is known statically to a WSDL,PortInfomay 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 aSEIPortInfo, then this is always non-null.
-
-
Constructor Detail
-
PortInfo
public PortInfo(WSServiceDelegate owner, EndpointAddress targetEndpoint, QName name, BindingID bindingId)
-
PortInfo
public PortInfo(@NotNull WSServiceDelegate owner, @NotNull WSDLPort port)
-
-
Method Detail
-
getPolicyMap
public PolicyMap getPolicyMap()
Description copied from interface:WSPortInfoGives the PolicMap that captures the Policy for the PortInfo- Specified by:
getPolicyMapin interfaceWSPortInfo- Returns:
- PolicyMap
-
createPolicyMap
public PolicyMap createPolicyMap()
-
createBinding
public BindingImpl createBinding(javax.xml.ws.WebServiceFeature[] webServiceFeatures, Class<?> portInterface)
CreatesBindingImplfor thisPortInfo.- 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
-
createBinding
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding)
-
getPort
@Nullable public WSDLPort getPort()
Description copied from interface:WSPortInfoGets theWSDLPortobject that represents this port, ifWSServiceis configured with WSDL. Otherwise null.- Specified by:
getPortin interfaceWSPortInfo
-
getOwner
@NotNull public WSService getOwner()
Description copied from interface:WSPortInfoReturnsWSServiceobject that owns this port.- Specified by:
getOwnerin interfaceWSPortInfo
-
getBindingId
@NotNull public BindingID getBindingId()
Description copied from interface:WSPortInfoReturns the same information asPortInfo.getBindingID()but in a strongly-typed fashion- Specified by:
getBindingIdin interfaceWSPortInfo
-
getEndpointAddress
@NotNull public EndpointAddress getEndpointAddress()
Description copied from interface:WSPortInfoGets the endpoint address of this port.- Specified by:
getEndpointAddressin interfaceWSPortInfo
-
getServiceName
public QName getServiceName()
Deprecated.Only meant to be used viaPortInfo. UseWSServiceDelegate.getServiceName().- Specified by:
getServiceNamein interfacejavax.xml.ws.handler.PortInfo
-
getPortName
public QName getPortName()
Only meant to be used viaPortInfo. UseportName.- Specified by:
getPortNamein interfacejavax.xml.ws.handler.PortInfo
-
-