/** * This no-op PolicyInterceptorProvider prevents the policy enforcement * logic making it impossible to assert the HTTPClientPolicy upfront * before the HTTPConduit becomes involved (e.g. via a WSPolicyFeature * applied to the <jaxws:client> bean). */ @NoJSR250Annotations public class NoOpPolicyInterceptorProvider extends AbstractPolicyInterceptorProvider { private static final long serialVersionUID = -5554625221910391930L; private static final Collection<QName> ASSERTION_TYPES; private static final QName HTTP_CONF_NAME = new QName("http://cxf.apache.org/transports/http/configuration", "client"); static { Collection<QName> types = new ArrayList<>(); types.add(HTTP_CONF_NAME); ASSERTION_TYPES = types; } public NoOpPolicyInterceptorProvider() { super(ASSERTION_TYPES); } }
public static boolean processable(Class<?> cls, Object o) { if (cls.getName().startsWith("java.") || cls.getName().startsWith("javax.")) { return false; } NoJSR250Annotations njsr = cls.getAnnotation(NoJSR250Annotations.class); if (njsr != null) { for (String s : njsr.unlessNull()) { try { Field f = getField(cls, s); ReflectionUtil.setAccessible(f); if (f.get(o) == null) { return true; } } catch (Exception ex) { return true; } } return false; } return true; }
public static boolean processable(Class<?> cls, Object o) { if (cls.getName().startsWith("java.") || cls.getName().startsWith("javax.")) { return false; } NoJSR250Annotations njsr = cls.getAnnotation(NoJSR250Annotations.class); if (njsr != null) { for (String s : njsr.unlessNull()) { try { Field f = getField(cls, s); ReflectionUtil.setAccessible(f); if (f.get(o) == null) { return true; } } catch (Exception ex) { return true; } } return false; } return true; }
@NoJSR250Annotations(unlessNull = "bus") public class WebServiceContextResourceResolver implements ResourceResolver {
public static boolean processable(Class<?> cls, Object o) { if (cls.getName().startsWith("java.") || cls.getName().startsWith("javax.")) { return false; } NoJSR250Annotations njsr = cls.getAnnotation(NoJSR250Annotations.class); if (njsr != null) { for (String s : njsr.unlessNull()) { try { Field f = getField(cls, s); ReflectionUtil.setAccessible(f); if (f.get(o) == null) { return true; } } catch (Exception ex) { return true; } } return false; } return true; }
@NoJSR250Annotations public static class SpringEndpointImpl extends EndpointImpl implements ApplicationContextAware { boolean checkBlockConstruct; public SpringEndpointImpl(Object o) { super(o instanceof Bus ? (Bus)o : null, o instanceof Bus ? null : o); } public SpringEndpointImpl(Bus bus, Object implementor) { super(bus, implementor); } public void setCheckBlockConstruct(Boolean b) { checkBlockConstruct = b; } public void setApplicationContext(ApplicationContext ctx) throws BeansException { if (checkBlockConstruct) { setBlocking(ctx, this); } if (getBus() == null) { setBus(BusWiringBeanFactoryPostProcessor.addDefaultBus(ctx)); } } }
public static boolean processable(Class<?> cls, Object o) { if (cls.getName().startsWith("java.") || cls.getName().startsWith("javax.")) { return false; } NoJSR250Annotations njsr = cls.getAnnotation(NoJSR250Annotations.class); if (njsr != null) { for (String s : njsr.unlessNull()) { try { Field f = getField(cls, s); ReflectionUtil.setAccessible(f); if (f.get(o) == null) { return true; } } catch (Exception ex) { return true; } } return false; } return true; }
@NoJSR250Annotations public final class HTTPWSDLExtensionLoader implements WSDLExtensionLoader {
public static boolean processable(Class<?> cls, Object o) { if (cls.getName().startsWith("java.") || cls.getName().startsWith("javax.")) { return false; } NoJSR250Annotations njsr = cls.getAnnotation(NoJSR250Annotations.class); if (njsr != null) { for (String s : njsr.unlessNull()) { try { Field f = getField(cls, s); ReflectionUtil.setAccessible(f); if (f.get(o) == null) { return true; } } catch (Exception ex) { return true; } } return false; } return true; }
@NoJSR250Annotations public static class BPJaxWsServerFactoryBean extends JaxWsServerFactoryBean { private Server server; public BPJaxWsServerFactoryBean() { super(); } public BPJaxWsServerFactoryBean(JaxWsServiceFactoryBean fact) { super(fact); } public Server getServer() { return server; } public void init() { create(); } @Override public Server create() { if (server == null) { server = super.create(); } return server; } public void destroy() { if (server != null) { server.destroy(); server = null; } } }
@NoJSR250Annotations public static class SpringServerFactoryBean extends JaxWsServerFactoryBean implements ApplicationContextAware {
@NoJSR250Annotations public class HTTPServerAssertionBuilder extends JaxbAssertionBuilder<HTTPServerPolicy> { public static final List<QName> KNOWN_ELEMENTS
@NoJSR250Annotations public class HTTPClientAssertionBuilder extends JaxbAssertionBuilder<HTTPClientPolicy> { public static final List<QName> KNOWN_ELEMENTS
@NoJSR250Annotations public static class JAXWSSpringClientProxyFactoryBean extends JaxWsProxyFactoryBean implements ApplicationContextAware, FactoryBean<Object>, DisposableBean {
@NoJSR250Annotations public final class Address {
@NoJSR250Annotations public class CertConstraintsFeature extends AbstractFeature { CertificateConstraintsType contraints;
@NoJSR250Annotations public class JaxWsProxyFactoryBean extends ClientProxyFactoryBean { @SuppressWarnings("rawtypes")
@NoJSR250Annotations public class HTTPTransportFactory extends AbstractTransportFactory
@NoJSR250Annotations public class JaxWsServiceFactoryBean extends ReflectionServiceFactoryBean {
@NoJSR250Annotations public abstract class HTTPConduit extends AbstractConduit