protected HTTPConduitFactory findFactory(EndpointInfo endpointInfo, Bus bus) { HTTPConduitFactory f = endpointInfo.getProperty(HTTPConduitFactory.class.getName(), HTTPConduitFactory.class); if (f == null) { f = bus.getExtension(HTTPConduitFactory.class); } return f; } public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException {
private String getAbsoluteAddress(String basePath, AbstractDestination d) { String endpointAddress = (String)d.getEndpointInfo().getProperty("publishedEndpointUrl"); if (endpointAddress != null) { return endpointAddress; } endpointAddress = d.getEndpointInfo().getAddress(); if (endpointAddress.startsWith("http://") || endpointAddress.startsWith("https://")) { if (endpointAddress.startsWith(basePath) || showForeignContexts) { return endpointAddress; } return null; } String address = basePath; if (address.endsWith("/") && endpointAddress.startsWith("/")) { address = address.substring(0, address.length() - 1); } return address + endpointAddress; }
private String getAbsoluteAddress(String basePath, AbstractDestination d) { String endpointAddress = (String)d.getEndpointInfo().getProperty("publishedEndpointUrl"); if (endpointAddress != null) { return endpointAddress; } endpointAddress = d.getEndpointInfo().getAddress(); if (d instanceof ServletDestination && (endpointAddress.startsWith("http://") || endpointAddress.startsWith("https://"))) { String path = ((ServletDestination)d).getPath(); return basePath + path; } else if (basePath == null || endpointAddress.startsWith(basePath)) { return endpointAddress; } else { return basePath + endpointAddress; } } }
EndpointInfo endpointInfo = getEndpointInfo(exchange); if (endpointInfo != null) { URI wsdlDescription = endpointInfo.getProperty("URI", URI.class); if (wsdlDescription == null) { String address = endpointInfo.getAddress();
builder.serviceName(ep.getService().getName()); builder.endpointName(ep.getEndpointInfo().getName()); URI wsdlDescription = ep.getEndpointInfo().getProperty("URI", URI.class); if (wsdlDescription == null) { String address = ep.getEndpointInfo().getAddress();
protected HTTPConduitFactory findFactory(EndpointInfo endpointInfo, Bus bus) { HTTPConduitFactory f = endpointInfo.getProperty(HTTPConduitFactory.class.getName(), HTTPConduitFactory.class); if (f == null) { f = bus.getExtension(HTTPConduitFactory.class); } return f; } public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException {
public void updateWSDLPublishedEndpointAddress(Definition def, EndpointInfo endpointInfo) { synchronized (def) { //writing a def is not threadsafe. Sync on it to make sure //we don't get any ConcurrentModificationExceptions if (endpointInfo.getProperty(PUBLISHED_ENDPOINT_URL) != null) { String epurl = String.valueOf(endpointInfo.getProperty(PUBLISHED_ENDPOINT_URL)); updatePublishedEndpointUrl(epurl, def, endpointInfo.getName()); } } }
public void updateWSDLPublishedEndpointAddress(Definition def, EndpointInfo endpointInfo) { synchronized (def) { //writing a def is not threadsafe. Sync on it to make sure //we don't get any ConcurrentModificationExceptions if (endpointInfo.getProperty(PUBLISHED_ENDPOINT_URL) != null) { String epurl = String.valueOf(endpointInfo.getProperty(PUBLISHED_ENDPOINT_URL)); updatePublishedEndpointUrl(epurl, def, endpointInfo.getName()); } } }
protected void shutdownResources(EndpointInfo info) { TokenStore ts = (TokenStore)info.getProperty(SecurityConstants.TOKEN_STORE_CACHE_INSTANCE); if (ts instanceof Closeable) { close((Closeable)ts); } ReplayCache rc = (ReplayCache)info.getProperty(SecurityConstants.NONCE_CACHE_INSTANCE); if (rc != null) { close(rc); } rc = (ReplayCache)info.getProperty(SecurityConstants.TIMESTAMP_CACHE_INSTANCE); if (rc != null) { close(rc); } }
protected HTTPConduitFactory findFactory(EndpointInfo endpointInfo) { HTTPConduitFactory f = endpointInfo.getProperty(HTTPConduitFactory.class.getName(), HTTPConduitFactory.class); if (f == null) { f = bus.getExtension(HTTPConduitFactory.class); } return f; } public Destination getDestination(EndpointInfo endpointInfo) throws IOException {
getProperty("org.apache.cxf.ws.addressing.MAPAggregator.decoupledDestination")) {
protected String getBaseURI(Message m, UriInfo ui) { EndpointInfo ei = m.getExchange().getEndpoint().getEndpointInfo(); String publishedEndpointUrl = (String)ei.getProperty("publishedEndpointUrl"); if (publishedEndpointUrl == null) { return ui.getBaseUri().toString(); } return publishedEndpointUrl; }
protected String getBaseURI(Message m, UriInfo ui) { EndpointInfo ei = m.getExchange().getEndpoint().getEndpointInfo(); String publishedEndpointUrl = (String)ei.getProperty("publishedEndpointUrl"); if (publishedEndpointUrl == null) { return ui.getBaseUri().toString(); } return publishedEndpointUrl; }
private String getBaseURI(Message m, UriInfo ui) { EndpointInfo ei = m.getExchange().get(Endpoint.class).getEndpointInfo(); String publishedEndpointUrl = (String)ei.getProperty("publishedEndpointUrl"); if (publishedEndpointUrl == null) { return ui.getBaseUri().toString(); } else { return publishedEndpointUrl; } }
protected TokenStore getTokenStore(SoapMessage message) { EndpointInfo info = message.getExchange().getEndpoint().getEndpointInfo(); synchronized (info) { TokenStore tokenStore = (TokenStore)message.getContextualProperty(SecurityConstants.TOKEN_STORE_CACHE_INSTANCE); if (tokenStore == null) { tokenStore = (TokenStore)info.getProperty(SecurityConstants.TOKEN_STORE_CACHE_INSTANCE); } return tokenStore; } }
protected TokenStore getTokenStore(SoapMessage message) { EndpointInfo info = message.getExchange().getEndpoint().getEndpointInfo(); synchronized (info) { TokenStore tokenStore = (TokenStore)message.getContextualProperty(SecurityConstants.TOKEN_STORE_CACHE_INSTANCE); if (tokenStore == null) { tokenStore = (TokenStore)info.getProperty(SecurityConstants.TOKEN_STORE_CACHE_INSTANCE); } return tokenStore; } }
public void clientDestroyed(Client client) { Destination dest = client.getEndpoint().getEndpointInfo() .getProperty(DECOUPLED_DESTINATION, Destination.class); if (dest != null) { dest.setMessageObserver(null); dest.shutdown(); } }
private Object getProperty(Server server, String s) { Object o = server.getEndpoint().get(s); if (o == null) { o = server.getEndpoint().getEndpointInfo().getProperty(s); } return o; }
private Object getProperty(Server server, String s) { Object o = server.getEndpoint().get(s); if (o == null) { o = server.getEndpoint().getEndpointInfo().getProperty(s); } return o; }
public void clientDestroyed(Client client) { Destination dest = client.getEndpoint().getEndpointInfo() .getProperty(DECOUPLED_DESTINATION, Destination.class); if (dest != null) { dest.setMessageObserver(null); dest.shutdown(); } }