Methods Summary |
---|
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.
NameValuePairDescriptor prop =
getCallPropertyByName(property.getName());
if( prop != null ) {
prop.setValue(property.getValue());
} else {
callProperties.add(property);
}
|
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.
NameValuePairDescriptor prop =
getStubPropertyByName(property.getName());
if( prop != null ) {
prop.setValue(property.getValue());
} else {
stubProperties.add(property);
}
|
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.
NameValuePairDescriptor nvPair = new NameValuePairDescriptor();
nvPair.setName(name);
nvPair.setValue(value);
addStubProperty(nvPair);
|
private BundleDescriptor | getBundleDescriptor()
return serviceRef.getBundleDescriptor();
|
public java.util.Set | getCallProperties()
return callProperties;
|
public NameValuePairDescriptor | getCallPropertyByName(java.lang.String name)
NameValuePairDescriptor prop = null;
for(Iterator iter = callProperties.iterator(); iter.hasNext();) {
NameValuePairDescriptor next = (NameValuePairDescriptor)
iter.next();
if( next.getName().equals(name) ) {
prop = next;
break;
}
}
return prop;
|
public com.sun.enterprise.deployment.runtime.common.MessageSecurityBindingDescriptor | getMessageSecurityBinding()
return messageSecBindingDesc;
|
public java.lang.String | getMtomEnabled()
return mtomEnabled;
|
public WebServiceEndpoint | getPortComponentLink()
return portComponentLink;
|
public java.lang.String | getPortComponentLinkName()
return portComponentLinkName;
|
public java.lang.String | getServiceEndpointInterface()
return serviceEndpointInterface;
|
public ServiceReferenceDescriptor | getServiceReference()
return serviceRef;
|
public java.util.Set | getStubProperties()
return stubProperties;
|
public NameValuePairDescriptor | getStubPropertyByName(java.lang.String name)
NameValuePairDescriptor prop = null;
for(Iterator iter = stubProperties.iterator(); iter.hasNext();) {
NameValuePairDescriptor next = (NameValuePairDescriptor)
iter.next();
if( next.getName().equals(name) ) {
prop = next;
break;
}
}
return prop;
|
public java.lang.String | getStubPropertyValue(java.lang.String name)
String value = null;
for(Iterator iter = stubProperties.iterator(); iter.hasNext();) {
NameValuePairDescriptor next = (NameValuePairDescriptor)iter.next();
if( next.getName().equals(name) ) {
value = next.getValue();
break;
}
}
return value;
|
public java.lang.String | getTargetEndpointAddress()
return targetEndpointAddress;
|
public javax.xml.namespace.QName | getWsdlPort()
return wsdlPort;
|
public boolean | hasCallProperty(java.lang.String name)
return (getCallPropertyByName(name) != null);
|
public boolean | hasPortComponentLinkName()
return (portComponentLinkName != null);
|
public boolean | hasServiceEndpointInterface()
return (serviceEndpointInterface != null);
|
public boolean | hasStubProperty(java.lang.String name)
return (getStubPropertyValue(name) != null);
|
public boolean | hasTargetEndpointAddress()
return (targetEndpointAddress != null);
|
public boolean | hasWsdlPort()
return (wsdlPort != null);
|
public boolean | isClientManaged()
return !containerManaged;
|
public boolean | isContainerManaged()
return containerManaged;
|
public boolean | isLinkedToPortComponent()
return (portComponentLinkName != null ) && (portComponentLink != null);
|
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.
NameValuePairDescriptor prop =
getCallPropertyByName(property.getName());
if( prop != null ) {
callProperties.remove(property);
}
|
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.
NameValuePairDescriptor prop =
getStubPropertyByName(property.getName());
if (prop != null) {
stubProperties.remove(property);
}
|
public WebServiceEndpoint | resolveLinkName()Try to resolve the current link name value to a WebServiceEndpoint
object.
WebServiceEndpoint port = null;
String linkName = portComponentLinkName;
if( (linkName != null) && (linkName.length() > 0) ) {
int hashIndex = linkName.indexOf('#");
boolean absoluteLink = (hashIndex != -1);
BundleDescriptor bundleDescriptor = getBundleDescriptor();
Application app = bundleDescriptor.getApplication();
BundleDescriptor targetBundle = bundleDescriptor;
String portName = linkName;
if( (app != null) && absoluteLink ) {
// Resolve <module>#<port-component-name> style link
String relativeModuleUri = linkName.substring(0, hashIndex);
portName = linkName.substring(hashIndex + 1);
targetBundle = app.getRelativeBundle(bundleDescriptor,
relativeModuleUri);
}
// targetBundle will only be null here if module lookup for
// absolute link failed.
if( targetBundle != null ) {
LinkedList bundles = new LinkedList();
bundles.addFirst(targetBundle);
if( (app != null) && !absoluteLink ) {
bundles.addAll(app.getBundleDescriptors());
}
for(Iterator iter = bundles.iterator(); iter.hasNext();) {
BundleDescriptor next = (BundleDescriptor) iter.next();
port = next.getWebServiceEndpointByName(portName);
if( port != null ) {
setPortComponentLink(port);
break;
}
}
}
}
return port;
|
public void | setIsContainerManaged(boolean flag)
containerManaged = flag;
|
public void | setMessageSecurityBinding(com.sun.enterprise.deployment.runtime.common.MessageSecurityBindingDescriptor messageSecBindingDesc)
this.messageSecBindingDesc = messageSecBindingDesc;
|
public void | setMtomEnabled(java.lang.String value)
mtomEnabled = value;
|
public void | setPortComponentLink(WebServiceEndpoint newPort)
if( newPort != null ) {
// Keep port component link name in synch with port component
// object.
BundleDescriptor bundleDescriptor = getBundleDescriptor();
BundleDescriptor targetBundleDescriptor =
newPort.getBundleDescriptor();
String linkName = newPort.getEndpointName();
if( bundleDescriptor != targetBundleDescriptor ) {
Application app = bundleDescriptor.getApplication();
String relativeUri = app.getRelativeUri(bundleDescriptor,
targetBundleDescriptor);
linkName = relativeUri + "#" + linkName;
}
portComponentLinkName = linkName;
}
portComponentLink = newPort;
|
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(linkName, false);
|
public WebServiceEndpoint | setPortComponentLinkName(java.lang.String linkName, boolean resolve)
portComponentLinkName = linkName;
return resolve ? resolveLinkName() : null;
|
public void | setServiceEndpointInterface(java.lang.String sei)
serviceEndpointInterface = sei;
|
public void | setServiceReference(ServiceReferenceDescriptor desc)
serviceRef = desc;
|
public void | setTargetEndpointAddress(java.lang.String address)
targetEndpointAddress = address;
|
public void | setWsdlPort(javax.xml.namespace.QName port)
wsdlPort = port;
|