com.sun.enterprise.deployment
Class ServiceRefPortInfo

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.ServiceRefPortInfo
All Implemented Interfaces:
java.io.Serializable

public class ServiceRefPortInfo
extends Descriptor

Information about a single WSDL port or port type in a service reference.

Author:
Kenneth Saks
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
ServiceRefPortInfo()
           
ServiceRefPortInfo(ServiceRefPortInfo other)
           
 
Method Summary
 void addCallProperty(NameValuePairDescriptor property)
          Add call property, using property name as a key.
 void addStubProperty(NameValuePairDescriptor property)
          Add stub property, using property name as a key.
 void addStubProperty(java.lang.String name, java.lang.String value)
          Add stub property, using property name as a key.
 java.util.Set getCallProperties()
           
 NameValuePairDescriptor getCallPropertyByName(java.lang.String name)
           
 MessageSecurityBindingDescriptor getMessageSecurityBinding()
           
 java.lang.String getMtomEnabled()
           
 WebServiceEndpoint getPortComponentLink()
           
 java.lang.String getPortComponentLinkName()
           
 java.lang.String getServiceEndpointInterface()
           
 ServiceReferenceDescriptor getServiceReference()
           
 java.util.Set getStubProperties()
           
 NameValuePairDescriptor getStubPropertyByName(java.lang.String name)
           
 java.lang.String getStubPropertyValue(java.lang.String name)
           
 java.lang.String getTargetEndpointAddress()
           
 javax.xml.namespace.QName getWsdlPort()
           
 boolean hasCallProperty(java.lang.String name)
           
 boolean hasPortComponentLinkName()
           
 boolean hasServiceEndpointInterface()
           
 boolean hasStubProperty(java.lang.String name)
           
 boolean hasTargetEndpointAddress()
           
 boolean hasWsdlPort()
           
 boolean isClientManaged()
           
 boolean isContainerManaged()
           
 boolean isLinkedToPortComponent()
           
 void removeCallProperty(NameValuePairDescriptor property)
          Remove call property, using property name as a key.
 void removeStubProperty(NameValuePairDescriptor property)
          Remove stub property, using property name as a key.
 WebServiceEndpoint resolveLinkName()
          Try to resolve the current link name value to a WebServiceEndpoint object.
 void setIsContainerManaged(boolean flag)
           
 void setMessageSecurityBinding(MessageSecurityBindingDescriptor messageSecBindingDesc)
           
 void setMtomEnabled(java.lang.String value)
           
 void setPortComponentLink(WebServiceEndpoint newPort)
           
 void setPortComponentLinkName(java.lang.String linkName)
          Sets the name of the port component to which I refer.
 WebServiceEndpoint setPortComponentLinkName(java.lang.String linkName, boolean resolve)
           
 void setServiceEndpointInterface(java.lang.String sei)
           
 void setServiceReference(ServiceReferenceDescriptor desc)
           
 void setTargetEndpointAddress(java.lang.String address)
           
 void setWsdlPort(javax.xml.namespace.QName port)
           
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, print, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceRefPortInfo

public ServiceRefPortInfo(ServiceRefPortInfo other)

ServiceRefPortInfo

public ServiceRefPortInfo()
Method Detail

setServiceReference

public void setServiceReference(ServiceReferenceDescriptor desc)

getServiceReference

public ServiceReferenceDescriptor getServiceReference()

hasServiceEndpointInterface

public boolean hasServiceEndpointInterface()

setServiceEndpointInterface

public void setServiceEndpointInterface(java.lang.String sei)

getServiceEndpointInterface

public java.lang.String getServiceEndpointInterface()

setIsContainerManaged

public void setIsContainerManaged(boolean flag)

isContainerManaged

public boolean isContainerManaged()

isClientManaged

public boolean isClientManaged()

setPortComponentLinkName

public void setPortComponentLinkName(java.lang.String linkName)
Sets the name of the port component to which I refer. NOTE : Does *NOT* attempt to resolve link name. Use overloaded version or resolveLink if link resolution is required.


setPortComponentLinkName

public WebServiceEndpoint setPortComponentLinkName(java.lang.String linkName,
                                                   boolean resolve)

hasPortComponentLinkName

public boolean hasPortComponentLinkName()

getPortComponentLinkName

public java.lang.String getPortComponentLinkName()

setMessageSecurityBinding

public void setMessageSecurityBinding(MessageSecurityBindingDescriptor messageSecBindingDesc)

getMessageSecurityBinding

public MessageSecurityBindingDescriptor getMessageSecurityBinding()

isLinkedToPortComponent

public boolean isLinkedToPortComponent()
Returns:
true only if there is a port component link AND it has been resolved to a valid port component within the application.

resolveLinkName

public WebServiceEndpoint resolveLinkName()
Try to resolve the current link name value to a WebServiceEndpoint object.

Returns:
WebServiceEndpoint to which link was resolved, or null if link name resolution failed.

getPortComponentLink

public WebServiceEndpoint getPortComponentLink()

setPortComponentLink

public void setPortComponentLink(WebServiceEndpoint newPort)
Parameters:
portComponenet - the port component to which I refer

hasWsdlPort

public boolean hasWsdlPort()

setWsdlPort

public void setWsdlPort(javax.xml.namespace.QName port)

getWsdlPort

public javax.xml.namespace.QName getWsdlPort()

getStubProperties

public java.util.Set getStubProperties()

hasStubProperty

public boolean hasStubProperty(java.lang.String name)

getStubPropertyValue

public java.lang.String getStubPropertyValue(java.lang.String name)

getStubPropertyByName

public NameValuePairDescriptor getStubPropertyByName(java.lang.String name)

addStubProperty

public void addStubProperty(NameValuePairDescriptor property)
Add stub property, using property name as a key. This will replace the property value of any existing stub property with the same name.


removeStubProperty

public void removeStubProperty(NameValuePairDescriptor property)
Remove stub property, using property name as a key. This will remove the property value of an existing stub property with the matching name.


addStubProperty

public void addStubProperty(java.lang.String name,
                            java.lang.String value)
Add stub property, using property name as a key. This will replace the property value of any existing stub property with the same name.


getCallProperties

public java.util.Set getCallProperties()

hasCallProperty

public boolean hasCallProperty(java.lang.String name)

getCallPropertyByName

public NameValuePairDescriptor getCallPropertyByName(java.lang.String name)

addCallProperty

public void addCallProperty(NameValuePairDescriptor property)
Add call property, using property name as a key. This will replace the property value of any existing stub property with the same name.


removeCallProperty

public void removeCallProperty(NameValuePairDescriptor property)
Remove call property, using property name as a key. This will remove the property value of an existing stub property with the matching name.


hasTargetEndpointAddress

public boolean hasTargetEndpointAddress()

setTargetEndpointAddress

public void setTargetEndpointAddress(java.lang.String address)

getTargetEndpointAddress

public java.lang.String getTargetEndpointAddress()

setMtomEnabled

public void setMtomEnabled(java.lang.String value)

getMtomEnabled

public java.lang.String getMtomEnabled()


Copyright © 2012 GlassFish Community. All Rights Reserved.