use of org.jboss.wsf.spi.metadata.config.SOAPAddressRewriteMetadata in project jbossws-cxf by jbossws.
the class EndpointImpl method getSOAPAddressRewriteMetadata.
private SOAPAddressRewriteMetadata getSOAPAddressRewriteMetadata() {
if (sarm == null) {
Deployment dep = (Deployment) getBus().getProperty(Deployment.class.getName());
sarm = dep.getAttachment(SOAPAddressRewriteMetadata.class);
}
return sarm;
}
use of org.jboss.wsf.spi.metadata.config.SOAPAddressRewriteMetadata in project jbossws-cxf by jbossws.
the class MetadataBuilder method build.
public DDBeans build(Deployment dep) {
final SOAPAddressRewriteMetadata sarm = dep.getAttachment(SOAPAddressRewriteMetadata.class);
Map<QName, String> serviceNameAddressMap = new HashMap<QName, String>();
Map<String, SOAPAddressWSDLParser> soapAddressWsdlParsers = new HashMap<String, SOAPAddressWSDLParser>();
DDBeans dd = new DDBeans();
for (Endpoint ep : dep.getService().getEndpoints()) {
DDEndpoint ddep = createDDEndpoint(ep.getTargetBeanClass(), (ArchiveDeployment) dep, ep);
if (ep instanceof HttpEndpoint) {
ddep.setInvoker(JBossWSInvoker.class.getName());
}
processWSDDContribution(ddep, (ArchiveDeployment) dep);
URL wsdlLocation = getWsdlLocationURL(ddep, ((ArchiveDeployment) dep).getResourceResolver());
processAddressRewrite(ddep, wsdlLocation, sarm, soapAddressWsdlParsers);
METADATA_LOGGER.addingServiceEndpointMetadata(METADATA_LOGGER.isDebugEnabled() ? ddep.toStringExtended() : ddep.toString());
dd.addEndpoint(ddep);
serviceNameAddressMap.put(ddep.getServiceName(), ddep.getAddress());
}
dep.setProperty("ServiceAddressMap", serviceNameAddressMap);
return dd;
}
use of org.jboss.wsf.spi.metadata.config.SOAPAddressRewriteMetadata in project jbossws-cxf by jbossws.
the class BusHolder method setInterceptors.
protected void setInterceptors(Bus bus, Deployment dep, Map<String, String> props) {
// Install the EndpointAssociationInterceptor for linking every message exchange
// with the proper spi Endpoint retrieved in CXFServletExt
bus.getInInterceptors().add(new EndpointAssociationInterceptor());
bus.getInInterceptors().add(new NsCtxSelectorStoreInterceptor());
bus.getInInterceptors().add(new GracefulShutdownInterceptor());
final String p = (props != null) ? props.get(Constants.JBWS_CXF_DISABLE_HANDLER_AUTH_CHECKS) : null;
if ((p == null || (!"true".equalsIgnoreCase(p) && !"1".equalsIgnoreCase(p))) && !Boolean.getBoolean(Constants.JBWS_CXF_DISABLE_HANDLER_AUTH_CHECKS)) {
bus.getInInterceptors().add(new HandlerAuthInterceptor());
}
final SOAPAddressRewriteMetadata sarm = dep.getAttachment(SOAPAddressRewriteMetadata.class);
if (SoapAddressRewriteHelper.isPathRewriteRequired(sarm) || SoapAddressRewriteHelper.isSchemeRewriteRequired(sarm)) {
bus.getInInterceptors().add(new WSDLSoapAddressRewriteInterceptor(sarm));
}
InterceptorUtils.addInterceptors(bus, props);
}
Aggregations