private static void serializeEndpoints(OMElement definitions, Map<String, Endpoint> endpoints) { for (Endpoint endpoint: endpoints.values()) { definitions.addChild(EndpointSerializer.getElementFromEndpoint(endpoint)); } }
private static void serializeEndpoints(OMElement definitions, Map<String, Endpoint> endpoints) { for (Endpoint endpoint: endpoints.values()) { definitions.addChild(EndpointSerializer.getElementFromEndpoint(endpoint)); } }
Endpoint ep = getSynapseConfiguration().getDefinedEndpoints().get(artifactName); OMElement epElem = EndpointSerializer.getElementFromEndpoint(ep); if (ep.getFileName() != null) { String fileName = getServerConfigurationInformation().getSynapseXMLLocation()
failoverElement.addChild(EndpointSerializer.getElementFromEndpoint(childEndpoint));
loadbalanceElement.addChild(EndpointSerializer.getElementFromEndpoint(childEndpoint));
public OMElement serializeEndpoint(Endpoint epr, SynapseConfiguration synapseConfig, OMElement parent) throws Exception { File eprDir = createDirectory(currentDirectory, MultiXMLConfigurationBuilder.ENDPOINTS_DIR); OMElement eprElem = EndpointSerializer.getElementFromEndpoint(epr); String fileName = epr.getFileName(); if (fileName != null) { if (currentDirectory == rootDirectory) { handleDeployment(eprDir, fileName, epr.getName(), synapseConfig.getArtifactDeploymentStore()); } File eprFile = new File(eprDir, fileName); writeToFile(eprElem, eprFile); } else if (parent != null) { parent.addChild(eprElem); } return eprElem; }
OMElement epElem = EndpointSerializer.getElementFromEndpoint(ep); if (ep.getFileName() != null) { String fileName = getServerConfigurationInformation().getSynapseXMLLocation()
public OMElement serializeEndpoint(Endpoint epr, SynapseConfiguration synapseConfig, OMElement parent) throws Exception { File eprDir = createDirectory(currentDirectory, MultiXMLConfigurationBuilder.ENDPOINTS_DIR); OMElement eprElem = EndpointSerializer.getElementFromEndpoint(epr); String fileName = epr.getFileName(); if (fileName != null) { if (currentDirectory == rootDirectory) { handleDeployment(eprDir, fileName, epr.getName(), synapseConfig.getArtifactDeploymentStore()); } File eprFile = new File(eprDir, fileName); writeToFile(eprElem, eprFile); } else if (parent != null) { parent.addChild(eprElem); } return eprElem; }
failoverElement.addChild(EndpointSerializer.getElementFromEndpoint(childEndpoint));
loadbalanceElement.addChild(EndpointSerializer.getElementFromEndpoint(childEndpoint));
public OMElement serializeSpecificMediator(Mediator m) { if (!(m instanceof SendMediator)) { handleException("Unsupported mediator passed in for serialization : " + m.getType()); } SendMediator mediator = (SendMediator) m; OMElement send = fac.createOMElement("send", synNS); saveTracingState(send, mediator); Endpoint activeEndpoint = mediator.getEndpoint(); if (activeEndpoint != null) { send.addChild(EndpointSerializer.getElementFromEndpoint(activeEndpoint)); } Value receive = mediator.getReceivingSequence(); if (receive != null) { ValueSerializer serializer = new ValueSerializer(); serializer.serializeValue(receive, XMLConfigConstants.RECEIVE, send); } return send; }
loadbalanceElement.addChild(EndpointSerializer.getElementFromEndpoint(childEndpoint));
loadbalanceElement.addChild(EndpointSerializer.getElementFromEndpoint(childEndpoint));
public OMElement serializeSpecificMediator(Mediator m) { if (!(m instanceof SendMediator)) { handleException("Unsupported mediator passed in for serialization : " + m.getType()); } SendMediator mediator = (SendMediator) m; OMElement send = fac.createOMElement("send", synNS); saveTracingState(send, mediator); Endpoint activeEndpoint = mediator.getEndpoint(); if (activeEndpoint != null) { send.addChild(EndpointSerializer.getElementFromEndpoint(activeEndpoint)); } Value receive = mediator.getReceivingSequence(); if (receive != null) { ValueSerializer serializer = new ValueSerializer(); serializer.serializeValue(receive, XMLConfigConstants.RECEIVE, send); } if (mediator.isBuildMessage()) { send.addAttribute(fac.createOMAttribute("buildmessage", nullNS,"true")); } return send; }
for (Endpoint childEndpoint : recipientListEndpoint.getChildren()) { recipientListElement.addChild(EndpointSerializer .getElementFromEndpoint(childEndpoint));
for (Endpoint childEndpoint : recipientListEndpoint.getChildren()) { recipientListElement.addChild(EndpointSerializer .getElementFromEndpoint(childEndpoint));
targetElem.addChild(EndpointSerializer.getElementFromEndpoint(endpoint));
public OMElement serializeSpecificMediator(Mediator m) { if (!(m instanceof CallMediator)) { handleException("Unsupported mediator passed in for serialization : " + m.getType()); } CallMediator mediator = (CallMediator) m; OMElement call = fac.createOMElement("call", synNS); saveTracingState(call, mediator); Endpoint activeEndpoint = mediator.getEndpoint(); if (activeEndpoint != null) { call.addChild(EndpointSerializer.getElementFromEndpoint(activeEndpoint)); } if (mediator.isBlocking()) { call.addAttribute(fac.createOMAttribute("blocking", nullNS, "true")); if (!mediator.getInitClientOptions()) { call.addAttribute(fac.createOMAttribute("initAxis2ClientOptions", nullNS, "false")); } if (mediator.getClientRepository() != null) { call.addAttribute(fac.createOMAttribute("repository", nullNS, mediator.getClientRepository())); } if (mediator.getAxis2xml() != null) { call.addAttribute(fac.createOMAttribute("axis2xml", nullNS, mediator.getAxis2xml())); } } return call; }
targetElem.addChild(EndpointSerializer.getElementFromEndpoint(target.getEndpoint()));
targetElem.addChild(EndpointSerializer.getElementFromEndpoint(target.getEndpoint()));