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 ServiceRefPortInfo | addContainerManagedPort(java.lang.String serviceEndpointInterface)
ServiceRefPortInfo info = new ServiceRefPortInfo();
info.setServiceEndpointInterface(serviceEndpointInterface);
info.setIsContainerManaged(true);
info.setServiceReference(this);
portsInfo.add(info);
super.changed();
return info;
|
public void | addHandler(WebServiceHandler handler)Append handler to end of handler chain for this endpoint.
handlers.addLast(handler);
super.changed();
|
public void | addHandlerChain(WebServiceHandlerChain handler)HandlerChain related setters, getters, adders, finders
handlerChain.addLast(handler);
super.changed();
|
public void | addPortInfo(ServiceRefPortInfo portInfo)
portInfo.setServiceReference(this);
portsInfo.add(portInfo);
super.changed();
|
public void | addRuntimePortInfo(ServiceRefPortInfo runtimePortInfo)Special handling of case where runtime port info is added.
Ensures that port info is not duplicated when multiple
runtime info instances are parsed using same standard descriptor.
ServiceRefPortInfo existing = null;
if( runtimePortInfo.hasServiceEndpointInterface() ) {
existing =
getPortInfoBySEI(runtimePortInfo.getServiceEndpointInterface());
}
if( (existing == null) && runtimePortInfo.hasWsdlPort() ) {
existing = getPortInfoByPort(runtimePortInfo.getWsdlPort());
}
if( existing == null ) {
if (portsInfo!=null && portsInfo.size()>0) {
LocalStringManagerImpl localStrings =
new LocalStringManagerImpl(ServiceReferenceDescriptor.class);
DOLUtils.getDefaultLogger().warning(
localStrings.getLocalString("enterprise.deployment.unknownportforruntimeinfo",
"Runtime port info SEI {0} is not declared in standard service-ref " +
"deployment descriptors (under port-component-ref), is this intended ?",
new Object[] {runtimePortInfo.getServiceEndpointInterface()}));
}
addPortInfo(runtimePortInfo);
} else {
if( !existing.hasServiceEndpointInterface() ) {
existing.setServiceEndpointInterface
(runtimePortInfo.getServiceEndpointInterface());
}
if( !existing.hasWsdlPort() ) {
existing.setWsdlPort(runtimePortInfo.getWsdlPort());
}
for(Iterator iter = runtimePortInfo.
getStubProperties().iterator(); iter.hasNext();) {
NameValuePairDescriptor next =
(NameValuePairDescriptor) iter.next();
// adds using name as key
existing.addStubProperty(next);
}
for(Iterator iter = runtimePortInfo.getCallProperties()
.iterator(); iter.hasNext();) {
NameValuePairDescriptor next =
(NameValuePairDescriptor) iter.next();
// adds using name as key
existing.addCallProperty(next);
}
if (runtimePortInfo.getMessageSecurityBinding() != null) {
existing.setMessageSecurityBinding(
runtimePortInfo.getMessageSecurityBinding());
}
}
|
public boolean | equals(java.lang.Object object)
if (object instanceof ServiceReferenceDescriptor) {
ServiceReferenceDescriptor thatReference =
(ServiceReferenceDescriptor) object;
return thatReference.getName().equals(this.getName());
}
return false;
|
public BundleDescriptor | getBundleDescriptor()
return bundleDescriptor;
|
public java.util.Set | getCallProperties()Runtime information.
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 java.util.LinkedList | getHandlerChain()
return handlerChain;
|
public java.util.LinkedList | getHandlers()Get ordered list of WebServiceHandler handlers for this endpoint.
return handlers;
|
public java.lang.String | getInjectionTargetType()
return injectionTargetType;
|
public java.lang.String | getMappedName()
return mappedName;
|
public java.io.File | getMappingFile()
return mappingFile;
|
public java.lang.String | getMappingFileUri()
return mappingFileUri;
|
public ServiceRefPortInfo | getPortInfo(java.lang.String serviceEndpointInterface)Lookup port info by service endpoint interface.
return getPortInfoBySEI(serviceEndpointInterface);
|
public ServiceRefPortInfo | getPortInfoByPort(javax.xml.namespace.QName wsdlPort)Lookup port info by wsdl port.
for(Iterator iter = portsInfo.iterator(); iter.hasNext();) {
ServiceRefPortInfo next = (ServiceRefPortInfo) iter.next();
if( next.hasWsdlPort() && wsdlPort.equals(next.getWsdlPort()) ) {
return next;
}
}
return null;
|
public ServiceRefPortInfo | getPortInfoBySEI(java.lang.String serviceEndpointInterface)Lookup port info by service endpoint interface.
for(Iterator iter = portsInfo.iterator(); iter.hasNext();) {
ServiceRefPortInfo next = (ServiceRefPortInfo) iter.next();
if( serviceEndpointInterface.equals
(next.getServiceEndpointInterface()) ) {
return next;
}
}
return null;
|
public java.util.Set | getPortsInfo()
return portsInfo;
|
public java.lang.String | getServiceImplClassName()
return serviceImplClassName;
|
public java.lang.String | getServiceInterface()
return serviceInterface;
|
public java.lang.String | getServiceLocalPart()
return serviceLocalPart;
|
public javax.xml.namespace.QName | getServiceName()
return ( hasServiceName() ?
new QName(serviceNamespaceUri, serviceLocalPart) : null );
|
public java.lang.String | getServiceNameNamespacePrefix()
return serviceNameNamespacePrefix;
|
public java.lang.String | getServiceNamespaceUri()
return serviceNamespaceUri;
|
public java.lang.String | getWsdlFileUri()
return wsdlFileUri;
|
public java.net.URL | getWsdlFileUrl()
return wsdlFileUrl;
|
public java.net.URL | getWsdlOverride()
return wsdlOverride;
|
public boolean | hasClientManagedPorts()
boolean clientManaged = false;
for(Iterator iter = portsInfo.iterator(); iter.hasNext();) {
ServiceRefPortInfo next = (ServiceRefPortInfo) iter.next();
if( next.isClientManaged() ) {
clientManaged = true;
break;
}
}
return clientManaged;
|
public boolean | hasContainerManagedPorts()
boolean containerManaged = false;
for(Iterator iter = portsInfo.iterator(); iter.hasNext();) {
ServiceRefPortInfo next = (ServiceRefPortInfo) iter.next();
if( next.isContainerManaged() ) {
containerManaged = true;
break;
}
}
return containerManaged;
|
public boolean | hasGeneratedServiceInterface()
return !(hasGenericServiceInterface());
|
public boolean | hasGenericServiceInterface()
return serviceInterface.equals("javax.xml.rpc.Service");
|
public boolean | hasHandlerChain()
return (handlerChain.size() > 0);
|
public boolean | hasHandlers()
return (handlers.size() > 0);
|
public boolean | hasMappingFile()
return (mappingFileUri != null);
|
public boolean | hasServiceImplClassName()
return (serviceImplClassName != null);
|
public boolean | hasServiceName()
return ( (serviceNamespaceUri != null) && (serviceLocalPart != null) );
|
public boolean | hasWsdlFile()
return (wsdlFileUri != null);
|
public boolean | hasWsdlOverride()
return (wsdlOverride != 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 | removeHandler(WebServiceHandler handler)
handlers.remove(handler);
super.changed();
|
public void | removeHandlerByName(java.lang.String handlerName)
for(Iterator iter = handlers.iterator(); iter.hasNext();) {
WebServiceHandler next = (WebServiceHandler) iter.next();
if( next.getHandlerName().equals(handlerName) ) {
iter.remove();
super.changed();
break;
}
}
|
public void | removeHandlerChain(WebServiceHandlerChain handler)
handlerChain.remove(handler);
super.changed();
|
public void | removePortInfo(ServiceRefPortInfo portInfo)
portsInfo.remove(portInfo);
super.changed();
|
public void | setBundleDescriptor(BundleDescriptor bundle)
bundleDescriptor = bundle;
|
public void | setInjectionTargetType(java.lang.String type)
injectionTargetType = type;
|
public void | setMappedName(java.lang.String value)
mappedName = value;
|
public void | setMappingFile(java.io.File file)Derived, non-peristent location of mapping file.
Only used at deployment/runtime.
mappingFile = file;
super.changed();
|
public void | setMappingFileUri(java.lang.String uri)
mappingFileUri = uri;
super.changed();
|
public void | setServiceImplClassName(java.lang.String className)
serviceImplClassName = className;
|
public void | setServiceInterface(java.lang.String service)
serviceInterface = service;
super.changed();
|
public void | setServiceLocalPart(java.lang.String localpart)
serviceLocalPart = localpart;
serviceNameNamespacePrefix = null;
super.changed();
|
public void | setServiceName(javax.xml.namespace.QName serviceName)
setServiceName(serviceName, null);
|
public void | setServiceName(javax.xml.namespace.QName serviceName, java.lang.String prefix)
serviceNamespaceUri = serviceName.getNamespaceURI();
serviceLocalPart = serviceName.getLocalPart();
serviceNameNamespacePrefix = prefix;
super.changed();
|
public void | setServiceNameNamespacePrefix(java.lang.String prefix)
serviceNameNamespacePrefix = prefix;
super.changed();
|
public void | setServiceNamespaceUri(java.lang.String uri)
serviceNamespaceUri = uri;
serviceNameNamespacePrefix = null;
super.changed();
|
public void | setWsdlFileUri(java.lang.String uri)
if(uri.startsWith("file:")) {
uri = uri.substring(5);
}
wsdlFileUri = uri;
super.changed();
|
public void | setWsdlFileUrl(java.net.URL url)Derived, non-peristent location of wsdl file.
Only used at deployment/runtime.
wsdlFileUrl = url;
super.changed();
|
public void | setWsdlOverride(java.net.URL override)
wsdlOverride = override;
|