@Override public final Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (AopUtils.getTargetClass(bean).getAnnotation(getEndpointAnnotationType()) != null) { registerMethods(bean); } return bean; } }
/** * Returns a {@link AnnotationActionEndpointMapping} ordered at 2 for * mapping requests to annotated endpoints. */ @Bean public AnnotationActionEndpointMapping annotationActionEndpointMapping() { AnnotationActionEndpointMapping endpointMapping = new AnnotationActionEndpointMapping(); endpointMapping.setOrder(2); endpointMapping.setPostInterceptors(getInterceptors()); return endpointMapping; }
@Bean public AnnotationActionEndpointMapping endpointMapping() { AnnotationActionEndpointMapping endpointMapping = new AnnotationActionEndpointMapping(); endpointMapping.setMessageSender(messageSender()); endpointMapping.setPreInterceptors(new EndpointInterceptor[] { new SoapEnvelopeLoggingInterceptor()}); return endpointMapping; }
@Override protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
@Override protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
@Override public final Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (AopUtils.getTargetClass(bean).getAnnotation(getEndpointAnnotationType()) != null) { registerMethods(bean); } return bean; } }
@Override protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
/** * Returns a {@link AnnotationActionEndpointMapping} ordered at 2 for * mapping requests to annotated endpoints. */ @Bean public AnnotationActionEndpointMapping annotationActionEndpointMapping() { AnnotationActionEndpointMapping endpointMapping = new AnnotationActionEndpointMapping(); endpointMapping.setOrder(2); endpointMapping.setPostInterceptors(getInterceptors()); return endpointMapping; }
public final Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (AopUtils.getTargetClass(bean).getAnnotation(getEndpointAnnotationType()) != null) { registerMethods(bean); } return bean; } }
@Override protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
/** * Returns a {@link AnnotationActionEndpointMapping} ordered at 2 for * mapping requests to annotated endpoints. */ @Bean public AnnotationActionEndpointMapping annotationActionEndpointMapping() { AnnotationActionEndpointMapping endpointMapping = new AnnotationActionEndpointMapping(); endpointMapping.setOrder(2); endpointMapping.setPostInterceptors(getInterceptors()); return endpointMapping; }
public final Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (AopUtils.getTargetClass(bean).getAnnotation(getEndpointAnnotationType()) != null) { registerMethods(bean); } return bean; } }
@Override protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
@Override public final Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (AopUtils.getTargetClass(bean).getAnnotation(getEndpointAnnotationType()) != null) { registerMethods(bean); } return bean; } }
@Override protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
/** * Returns the address property of the given {@link MethodEndpoint}, by looking for the {@link Address} annotation. * The value of this property should match the {@link org.springframework.ws.soap.addressing.core.MessageAddressingProperties#getTo() * destination} of incoming messages. Returns <code>null</code> if the anotation is not present, thus ignoring the * destination property. * * @param endpoint the method endpoint to return the address for * @return the endpoint address; or <code>null</code> to ignore the destination property */ protected URI getEndpointAddress(Object endpoint) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Class endpointClass = methodEndpoint.getMethod().getDeclaringClass(); Address address = AnnotationUtils.findAnnotation(endpointClass, Address.class); if (address != null && StringUtils.hasText(address.value())) { return getActionUri(address.value(), methodEndpoint); } else { return null; } }
protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
@Override protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
/** * Returns the address property of the given {@link MethodEndpoint}, by looking for the {@link Address} annotation. * The value of this property should match the {@link org.springframework.ws.soap.addressing.core.MessageAddressingProperties#getTo() * destination} of incoming messages. Returns {@code null} if the anotation is not present, thus ignoring the * destination property. * * @param endpoint the method endpoint to return the address for * @return the endpoint address; or {@code null} to ignore the destination property */ @Override protected URI getEndpointAddress(Object endpoint) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Class<?> endpointClass = methodEndpoint.getMethod().getDeclaringClass(); Address address = AnnotationUtils.findAnnotation(endpointClass, Address.class); if (address != null && StringUtils.hasText(address.value())) { return getActionUri(address.value(), methodEndpoint); } else { return null; } }
/** * Returns the address property of the given {@link MethodEndpoint}, by looking for the {@link Address} annotation. * The value of this property should match the {@link org.springframework.ws.soap.addressing.core.MessageAddressingProperties#getTo() * destination} of incoming messages. Returns {@code null} if the anotation is not present, thus ignoring the * destination property. * * @param endpoint the method endpoint to return the address for * @return the endpoint address; or {@code null} to ignore the destination property */ @Override protected URI getEndpointAddress(Object endpoint) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Class<?> endpointClass = methodEndpoint.getMethod().getDeclaringClass(); Address address = AnnotationUtils.findAnnotation(endpointClass, Address.class); if (address != null && StringUtils.hasText(address.value())) { return getActionUri(address.value(), methodEndpoint); } else { return null; } }