@Override public EndpointDefinition createEndpointDefinition(OMElement elem) { DefinitionFactory fac = getEndpointDefinitionFactory(); EndpointDefinition endpointDefinition; if (fac == null) { fac = new EndpointDefinitionFactory(); endpointDefinition = fac.createDefinition(elem); } else{ endpointDefinition = fac.createDefinition(elem); } extractSpecificEndpointProperties(endpointDefinition, elem); return endpointDefinition; }
definition.setAddressingVersion(version.getAttributeValue()); } else { handleException("Unknown value for the addressing version. Possible values " + "for the addressing version are 'final' and 'submission' only."); definition.setWsSecPolicyKey(p); } catch (JaxenException e) { handleException("Couldn't assign dynamic endpoint policy as Synapse expression"); handleException("Endpoint timeout duration expected as a " + "number but was not a number"); } catch (JaxenException e) { handleException("Couldn't assign dynamic endpoint timeout as Synapse expression"); definition.setTimeoutAction(SynapseConstants.DISCARD_AND_FAULT); } else { handleException("Invalid timeout action, action : " + actionString + " is not supported"); definition.addTimeoutErrorCode(Integer.parseInt(s)); } catch (NumberFormatException e) { handleException("The timeout error codes should be specified " + "as valid numbers separated by commas : " + timeoutCodes.getText(), e); Integer.parseInt(retriesBeforeSuspend.getText().trim())); } catch (NumberFormatException e) { handleException("The retries before suspend [for timeouts] should be " + "specified as a valid number : " + retriesBeforeSuspend.getText(), e);
/** * Creates an EndpointDefinition instance using the XML fragment specification. Configuration * for EndpointDefinition always resides inside a configuration of an AddressEndpoint. This * factory extracts the details related to the EPR provided for address endpoint. * * @param elem XML configuration element * @return EndpointDefinition object containing the endpoint details. */ public EndpointDefinition createEndpointDefinition(OMElement elem) { DefinitionFactory fac = getEndpointDefinitionFactory(); EndpointDefinition endpointDefinition; if (fac == null) { fac = new EndpointDefinitionFactory(); endpointDefinition = fac.createDefinition(elem); } else{ endpointDefinition = fac.createDefinition(elem); } extractSpecificEndpointProperties(endpointDefinition, elem); return endpointDefinition; }
definition.setAddressingVersion(version.getAttributeValue()); } else { handleException("Unknown value for the addressing version. Possible values " + "for the addressing version are 'final' and 'submission' only."); definition.setTimeoutDuration(timeoutMilliSeconds); } catch (NumberFormatException e) { handleException("Endpoint timeout duration expected as a " + "number but was not a number"); handleException("Invalid timeout action, action : " + actionString + " is not supported"); definition.addTimeoutErrorCode(Integer.parseInt(s)); } catch (NumberFormatException e) { handleException("The timeout error codes should be specified " + "as valid numbers separated by commas : " + timeoutCodes.getText(), e); Integer.parseInt(retriesBeforeSuspend.getText().trim())); } catch (NumberFormatException e) { handleException("The retries before suspend [for timeouts] should be " + "specified as a valid number : " + retriesBeforeSuspend.getText(), e); Integer.parseInt(retryDelay.getText().trim())); } catch (NumberFormatException e) { handleException("The retry delay for timeouts should be specified " + "as a valid number : " + retryDelay.getText(), e); definition.setSuspendProgressionFactor((float) 1.0);
/** * Creates an EndpointDefinition instance using the XML fragment specification. Configuration * for EndpointDefinition always resides inside a configuration of an AddressEndpoint. This * factory extracts the details related to the EPR provided for address endpoint. * * @param elem XML configuration element * @return EndpointDefinition object containing the endpoint details. */ @Override public EndpointDefinition createEndpointDefinition(OMElement elem) { OMAttribute address = elem.getAttribute(new QName("uri")); DefinitionFactory fac = getEndpointDefinitionFactory(); EndpointDefinition endpointDefinition; if (fac == null) { fac = new EndpointDefinitionFactory(); endpointDefinition = fac.createDefinition(elem); } else{ endpointDefinition = fac.createDefinition(elem); } if (address != null) { endpointDefinition.setAddress(address.getAttributeValue().trim()); } extractSpecificEndpointProperties(endpointDefinition, elem); return endpointDefinition; } }
/** * Creates an EndpointDefinition instance using the XML fragment specification. Configuration * for EndpointDefinition always resides inside a configuration of an AddressEndpoint. This * factory extracts the details related to the EPR provided for address endpoint. * * @param elem XML configuration element * @return EndpointDefinition object containing the endpoint details. */ public EndpointDefinition createEndpointDefinition(OMElement elem) { DefinitionFactory fac = getEndpointDefinitionFactory(); EndpointDefinition endpointDefinition; if (fac == null) { fac = new EndpointDefinitionFactory(); endpointDefinition = fac.createDefinition(elem); } else{ endpointDefinition = fac.createDefinition(elem); } extractSpecificEndpointProperties(endpointDefinition, elem); return endpointDefinition; }
EndpointDefinition endpoint; if (fac == null) { fac = new EndpointDefinitionFactory(); endpoint = fac.createDefinition(wsdlElement); } else {
EndpointDefinition endpoint; if (fac == null) { fac = new EndpointDefinitionFactory(); endpoint = fac.createDefinition(wsdlElement); } else {
EndpointDefinition endpointDefinition; if (fac == null) { fac = new EndpointDefinitionFactory(); endpointDefinition = fac.createDefinition(elem); } else{