Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

import java.io.IOException;

import org.springframework.lang.Nullable;
import org.jspecify.annotations.Nullable;

import org.springframework.messaging.Message;
import org.springframework.oxm.Marshaller;
import org.springframework.oxm.Unmarshaller;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,9 +25,9 @@
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.dom.DOMSource;

import org.jspecify.annotations.Nullable;
import org.w3c.dom.Document;

import org.springframework.lang.Nullable;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessagingException;
import org.springframework.util.Assert;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2021 the original author or authors.
* Copyright 2020-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,6 +19,8 @@
import java.util.HashMap;
import java.util.Map;

import org.jspecify.annotations.Nullable;

import org.springframework.expression.Expression;
import org.springframework.integration.JavaUtils;
import org.springframework.integration.dsl.MessageHandlerSpec;
Expand Down Expand Up @@ -51,27 +53,27 @@ public abstract class BaseWsOutboundGatewaySpec<

private final Map<String, Expression> uriVariableExpressions = new HashMap<>();

protected WebServiceTemplate template; // NOSONAR
protected @Nullable WebServiceTemplate template; // NOSONAR

protected DestinationProvider destinationProvider; // NOSONAR
protected @Nullable DestinationProvider destinationProvider; // NOSONAR

protected String uri; // NOSONAR
protected @Nullable String uri; // NOSONAR

protected WebServiceMessageFactory webServiceMessageFactory; // NOSONAR
protected @Nullable WebServiceMessageFactory webServiceMessageFactory; // NOSONAR

private SoapHeaderMapper headerMapper;
private @Nullable SoapHeaderMapper headerMapper;

private DefaultUriBuilderFactory.EncodingMode encodingMode;
private DefaultUriBuilderFactory.@Nullable EncodingMode encodingMode;

private boolean ignoreEmptyResponses = true;

private WebServiceMessageCallback requestCallback;
private @Nullable WebServiceMessageCallback requestCallback;

protected FaultMessageResolver faultMessageResolver; // NOSONAR
protected @Nullable FaultMessageResolver faultMessageResolver; // NOSONAR

protected WebServiceMessageSender[] messageSenders; // NOSONAR
protected WebServiceMessageSender @Nullable [] messageSenders; // NOSONAR

protected ClientInterceptor[] gatewayInterceptors; // NOSONAR
protected ClientInterceptor @Nullable [] gatewayInterceptors; // NOSONAR

protected boolean extractPayload = true; // NOSONAR

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2021 the original author or authors.
* Copyright 2020-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,10 +18,13 @@

import java.util.Arrays;

import org.jspecify.annotations.Nullable;

import org.springframework.integration.JavaUtils;
import org.springframework.integration.ws.MarshallingWebServiceOutboundGateway;
import org.springframework.oxm.Marshaller;
import org.springframework.oxm.Unmarshaller;
import org.springframework.oxm.jaxb.Jaxb2Marshaller;
import org.springframework.ws.WebServiceMessageFactory;
import org.springframework.ws.client.core.FaultMessageResolver;
import org.springframework.ws.client.core.WebServiceTemplate;
Expand Down Expand Up @@ -63,9 +66,9 @@ public static class MarshallingWsOutboundGatewayNoTemplateSpec
extends BaseWsOutboundGatewaySpec<MarshallingWsOutboundGatewayNoTemplateSpec,
MarshallingWebServiceOutboundGateway> {

protected Marshaller gatewayMarshaller; // NOSONAR
protected Marshaller gatewayMarshaller = new Jaxb2Marshaller(); // NOSONAR

protected Unmarshaller gatewayUnmarshaller; // NOSONAR
protected @Nullable Unmarshaller gatewayUnmarshaller; // NOSONAR

/**
* Configure the marshaller to use.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2024 the original author or authors.
* Copyright 2020-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,9 +18,10 @@

import java.util.Arrays;

import org.jspecify.annotations.Nullable;

import org.springframework.integration.JavaUtils;
import org.springframework.integration.ws.SimpleWebServiceOutboundGateway;
import org.springframework.lang.Nullable;
import org.springframework.ws.WebServiceMessageFactory;
import org.springframework.ws.client.core.FaultMessageResolver;
import org.springframework.ws.client.core.SourceExtractor;
Expand All @@ -40,8 +41,7 @@
public class SimpleWsOutboundGatewaySpec
extends BaseWsOutboundGatewaySpec<SimpleWsOutboundGatewaySpec, SimpleWebServiceOutboundGateway> {

@Nullable
protected SourceExtractor<?> sourceExtractor; // NOSONAR
protected @Nullable SourceExtractor<?> sourceExtractor; // NOSONAR

protected SimpleWsOutboundGatewaySpec(WebServiceTemplate template) {
this.template = template;
Expand Down Expand Up @@ -100,6 +100,7 @@ protected SimpleWebServiceOutboundGateway create() {
public static class SimpleWsOutboundGatewayNoTemplateSpec
extends BaseWsOutboundGatewaySpec<SimpleWsOutboundGatewayNoTemplateSpec, SimpleWebServiceOutboundGateway> {

@Nullable
protected SourceExtractor<?> sourceExtractor; // NOSONAR

private boolean extractPayload = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Contains classes for DSL support.
*/
@org.springframework.lang.NonNullApi
@org.jspecify.annotations.NullMarked
package org.springframework.integration.ws.dsl;