com.sun.xml.ws.client
Class PortInfo

java.lang.Object
  extended by 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 by WSServiceDelegate to keep track of a port, since a port maybe added dynamically.


Field Summary
 BindingID bindingId
           
 WSDLPort portModel
          If a port is known statically to a WSDL, PortInfo may have the corresponding WSDL model.
 QName portName
           
 EndpointAddress targetEndpoint
           
 
Constructor Summary
PortInfo(WSServiceDelegate owner, EndpointAddress targetEndpoint, QName name, BindingID bindingId)
           
PortInfo(WSServiceDelegate owner, WSDLPort port)
           
 
Method Summary
 BindingImpl createBinding(javax.xml.ws.WebServiceFeature[] webServiceFeatures, Class<?> portInterface)
          Creates BindingImpl for this PortInfo.
 BindingID getBindingId()
          Returns the same information as PortInfo.getBindingID() but in a strongly-typed fashion
 String getBindingID()
          Deprecated. Only meant to be used via PortInfo. Use bindingId.
 EndpointAddress getEndpointAddress()
          Gets the endpoint address of this port.
 WSService getOwner()
          Returns WSService object that owns this port.
 WSDLPort getPort()
          Gets the WSDLPort object that represents this port, if WSService is configured with WSDL.
 QName getPortName()
          Deprecated. Only meant to be used via PortInfo. Use portName.
 QName getServiceName()
          Deprecated. Only meant to be used via PortInfo. Use WSServiceDelegate.getServiceName().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portName

@NotNull
public final QName portName

targetEndpoint

@NotNull
public final EndpointAddress targetEndpoint

bindingId

@NotNull
public final BindingID bindingId

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.

Constructor Detail

PortInfo

public PortInfo(WSServiceDelegate owner,
                EndpointAddress targetEndpoint,
                QName name,
                BindingID bindingId)

PortInfo

public PortInfo(@NotNull
                WSServiceDelegate owner,
                @NotNull
                WSDLPort port)
Method Detail

createBinding

public BindingImpl createBinding(javax.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

getPort

@Nullable
public WSDLPort getPort()
Description copied from interface: WSPortInfo
Gets the WSDLPort object that represents this port, if WSService is configured with WSDL. Otherwise null.

Specified by:
getPort in interface WSPortInfo

getOwner

@NotNull
public WSService getOwner()
Description copied from interface: WSPortInfo
Returns WSService object that owns this port.

Specified by:
getOwner in interface WSPortInfo

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

getEndpointAddress

@NotNull
public EndpointAddress getEndpointAddress()
Description copied from interface: WSPortInfo
Gets the endpoint address of this port.

Specified by:
getEndpointAddress in interface WSPortInfo

getServiceName

public QName getServiceName()
Deprecated. Only meant to be used via PortInfo. Use WSServiceDelegate.getServiceName().

Specified by:
getServiceName in interface javax.xml.ws.handler.PortInfo

getPortName

public QName getPortName()
Deprecated. Only meant to be used via PortInfo. Use portName.

Specified by:
getPortName in interface javax.xml.ws.handler.PortInfo

getBindingID

public String getBindingID()
Deprecated. Only meant to be used via PortInfo. Use bindingId.

Specified by:
getBindingID in interface javax.xml.ws.handler.PortInfo