Refine search
private static EndpointInfo getEndpointInfo(Exchange exchange) { if (exchange != null) { Endpoint endpoint = exchange.getEndpoint(); if (endpoint != null) { return endpoint.getEndpointInfo(); } } return null; }
public EndpointReference getEndpointReference(Element... referenceParameters) { WrappedMessageContext ctx = (WrappedMessageContext)getMessageContext(); org.apache.cxf.message.Message msg = ctx.getWrappedMessage(); Endpoint ep = msg.getExchange().getEndpoint(); builder.address(ep.getEndpointInfo().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(); try { wsdlDescription = new URI(address + "?wsdl"); ep.getEndpointInfo().setProperty("URI", wsdlDescription);
private static EndpointInfo getEndpointInfo(Exchange exchange) { if (exchange != null) { Endpoint endpoint = exchange.getEndpoint(); if (endpoint != null) { return endpoint.getEndpointInfo(); } } return null; }
Endpoint ep = exchange.getEndpoint(); if (null != ep && null != ep.getEndpointInfo() && null == ep.getEndpointInfo(). getProperty("org.apache.cxf.ws.addressing.MAPAggregator.decoupledDestination")) {
public static Destination createDecoupledDestination( Exchange exchange, final EndpointReferenceType reference) { final EndpointInfo ei = exchange.getEndpoint().getEndpointInfo(); return new DecoupledDestination(ei, reference); }
private static Destination createDecoupledDestination( Exchange exchange, final EndpointReferenceType reference) { final EndpointInfo ei = exchange.getEndpoint().getEndpointInfo(); return new DecoupledDestination(ei, reference); }
public static Destination createDecoupledDestination( Exchange exchange, final EndpointReferenceType reference) { final EndpointInfo ei = exchange.getEndpoint().getEndpointInfo(); return new DecoupledDestination(ei, reference); }
public static BindingOperationInfo getOperation(Exchange exchange, QName opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); return service.getOperation(opName); } public static BindingOperationInfo getOperationForWrapperElement(Exchange exchange,
public static BindingOperationInfo getOperation(Exchange exchange, QName opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); return service.getOperation(opName); } public static BindingOperationInfo getOperationForWrapperElement(Exchange exchange,
private EndpointInfo getEPInfo(Message message) { Endpoint ep = message.getExchange().getEndpoint(); return (ep == null) ? new EndpointInfo() : ep.getEndpointInfo(); }
private EndpointInfo getEPInfo(Message message) { Endpoint ep = message.getExchange().getEndpoint(); return (ep == null) ? new EndpointInfo() : ep.getEndpointInfo(); }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
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 Document getDocument(WSDLGetUtils utils, Message message, String base, Map<String, String> params, String ctxUri) { // cannot have two wsdl's being generated for the same endpoint at the same // time as the addresses may get mixed up // For WSDL's the WSDLWriter does not share any state between documents. // For XSD's, the WSDLGetUtils makes a copy of any XSD schema documents before updating // any addresses and returning them, so for both WSDL and XSD this is the only part that needs // to be synchronized. synchronized (message.getExchange().getEndpoint()) { return utils.getDocument(message, base, params, ctxUri, message.getExchange().getEndpoint().getEndpointInfo()); } }
private Document getDocument(WSDLGetUtils utils, Message message, String base, Map<String, String> params, String ctxUri) { // cannot have two wsdl's being generated for the same endpoint at the same // time as the addresses may get mixed up // For WSDL's the WSDLWriter does not share any state between documents. // For XSD's, the WSDLGetUtils makes a copy of any XSD schema documents before updating // any addresses and returning them, so for both WSDL and XSD this is the only part that needs // to be synchronized. synchronized (message.getExchange().getEndpoint()) { return utils.getDocument(message, base, params, ctxUri, message.getExchange().getEndpoint().getEndpointInfo()); } }
@Override protected List<SecurityEventListener> configureSecurityEventListeners( SoapMessage msg, WSSSecurityProperties securityProperties ) throws WSSPolicyException { final List<SecurityEventListener> securityEventListeners = new ArrayList<>(2); securityEventListeners.addAll(super.configureSecurityEventListeners(msg, securityProperties)); Endpoint endoint = msg.getExchange().getEndpoint(); PolicyEnforcer policyEnforcer = createPolicyEnforcer(endoint.getEndpointInfo(), msg); securityProperties.addInputProcessor(new PolicyInputProcessor(policyEnforcer, securityProperties)); securityEventListeners.add(policyEnforcer); return securityEventListeners; }
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; } }
@Override protected List<SecurityEventListener> configureSecurityEventListeners( SoapMessage msg, WSSSecurityProperties securityProperties ) throws WSSPolicyException { final List<SecurityEventListener> securityEventListeners = new ArrayList<>(2); securityEventListeners.addAll(super.configureSecurityEventListeners(msg, securityProperties)); Endpoint endoint = msg.getExchange().getEndpoint(); PolicyEnforcer policyEnforcer = createPolicyEnforcer(endoint.getEndpointInfo(), msg); securityProperties.addInputProcessor(new PolicyInputProcessor(policyEnforcer, securityProperties)); securityEventListeners.add(policyEnforcer); return securityEventListeners; }