public Endpoint createEndpoint() { return new EndpointImpl(registry); }
public boolean matches(String serviceURI) { String[] parts1 = parseServiceURI(serviceURI); String[] parts2 = parseStructuralURI(getURI()); for (int i = 0; i < parts1.length; i++) { if (parts1[i] == null || parts1[i].equals(parts2[i])) { continue; } else { return false; } } return true; }
@Override protected void reset() { super.reset(); this.xml = null; }
/** * Get the services callbacl enpoint references that * represent endpoint references from which callbacks * originate * * @return callbackEndpoint the reference callback endpoint */ public List<EndpointReference> getCallbackEndpointReferences() { resolve(); return callbackEndpointReferences; }
public ExtensionType getExtensionType() { getBinding(); if (binding instanceof PolicySubject) { return ((PolicySubject)binding).getExtensionType(); } return null; }
public String toString() { return "(@" + this.hashCode() + ")" + toStringWithoutHash(); }
public boolean isAsyncInvocation() { if (service != null && service.getName().endsWith("_asyncCallback")) { // this is a response service at the reference component so don't create a // response reference. return false; } // end if for (Intent intent : getRequiredIntents()) { if (intent.getName().getLocalPart().equals("asyncInvocation")) { return true; } } return false; }
/** * Parse the service URI into an array of names. The service URI is in one of the following formats: * <ul> * <li>componentName * <li>componentName/serviceName * <li>componentName/serviceName/bindingName * </ul> * @param serviceURI * @return */ private static String[] parseServiceURI(String serviceURI) { if (serviceURI.startsWith("/")) { serviceURI = serviceURI.substring(1); } if (serviceURI.contains("#")) { return parseStructuralURI(serviceURI); } String[] names = new String[3]; String[] segments = serviceURI.split("/"); for (int i = 0; i < names.length && i < segments.length; i++) { names[i] = segments[i]; } return names; }
/** * @see java.lang.Object#clone() */ @Override public Object clone() throws CloneNotSupportedException { RuntimeEndpointImpl copy = (RuntimeEndpointImpl)super.clone(); copy.invoker = new RuntimeInvoker(registry, copy); return copy; }
public Component getComponent() { resolve(); return component; }
public ExtensionType getExtensionType() { getBinding(); if (binding instanceof PolicySubject) { return ((PolicySubject)binding).getExtensionType(); } return null; }
public String toString() { return "(@" + this.hashCode() + ")" + toStringWithoutHash(); }
public boolean isAsyncInvocation() { if (service != null && service.getName().endsWith("_asyncCallback")) { // this is a response service at the reference component so don't create a // response reference. return false; } // end if for (Intent intent : getRequiredIntents()) { if (intent.getName().getLocalPart().equals("asyncInvocation")) { return true; } } return false; }
/** * Parse the service URI into an array of names. The service URI is in one of the following formats: * <ul> * <li>componentName * <li>componentName/serviceName * <li>componentName/serviceName/bindingName * </ul> * @param serviceURI * @return */ private static String[] parseServiceURI(String serviceURI) { if (serviceURI.startsWith("/")) { serviceURI = serviceURI.substring(1); } if (serviceURI.contains("#")) { return parseStructuralURI(serviceURI); } String[] names = new String[3]; String[] segments = serviceURI.split("/"); for (int i = 0; i < names.length && i < segments.length; i++) { names[i] = segments[i]; } return names; }
public boolean matches(String serviceURI) { String[] parts1 = parseServiceURI(serviceURI); String[] parts2 = parseStructuralURI(getURI()); for (int i = 0; i < parts1.length; i++) { if (parts1[i] == null || parts1[i].equals(parts2[i])) { continue; } else { return false; } } return true; }
public List<PolicySet> getPolicySets() { resolve(); return policySets; }
public void setService(ComponentService service) { this.service = service; reset(); }
public Endpoint createEndpoint() { return new EndpointImpl(registry); }