/** * {@inheritDoc */ @Override public SLEndpointProvider toSLEndpoint(QName serviceName, byte[] content, boolean isLive) { EndpointDataType epd = toEndPointData(content); return new SLEndpointProvider(serviceName, epd, isLive); }
public SLEndpointProvider(QName serviceName, EndpointDataType endpointData, boolean live) { super(serviceName, null, extractBinding(endpointData), extractTransport(endpointData), null); EndpointReferenceType epr = toEndPointReference((Element) endpointData.getEndpointReference()); init(extractAddress(epr), extractProperties(epr)); lastTimeStarted = endpointData.getLastTimeStarted(); lastTimeStopped = endpointData.getLastTimeStopped(); isLive = live; }
private SLProperties extractProperties(EndpointReferenceType epr) { MetadataType metadata = epr.getMetadata(); if (metadata != null) { List<Object> metaAny = metadata.getAny(); for (Object any : metaAny) { if (any instanceof Element) { Element root = (Element) any; if (isServiceLocatorProperties(root)) { ServiceLocatorPropertiesType slp = toServiceLocatorProperties(root); return SLPropertiesConverter.toSLProperties(slp); } } } } return new SLPropertiesImpl(); }
private SLProperties extractProperties(EndpointReferenceType epr) { MetadataType metadata = epr.getMetadata(); if (metadata != null) { List<Object> metaAny = metadata.getAny(); for (Object any : metaAny) { if (any instanceof Element) { Element root = (Element) any; if (isServiceLocatorProperties(root)) { ServiceLocatorPropertiesType slp = toServiceLocatorProperties(root); return SLPropertiesConverter.toSLProperties(slp); } } } } return new SLPropertiesImpl(); }
public SLEndpointProvider(QName serviceName, EndpointDataType endpointData, boolean live) { super(serviceName, null, extractBinding(endpointData), extractTransport(endpointData), null); EndpointReferenceType epr = toEndPointReference((Element) endpointData.getEndpointReference()); init(extractAddress(epr), extractProperties(epr)); lastTimeStarted = endpointData.getLastTimeStarted(); lastTimeStopped = endpointData.getLastTimeStopped(); isLive = live; }
/** * {@inheritDoc */ @Override public SLEndpointProvider toSLEndpoint(QName serviceName, byte[] content, boolean isLive) { EndpointDataType epd = toEndPointData(content); return new SLEndpointProvider(serviceName, epd, isLive); }