Browse Source

Polishing

pull/29692/head
Juergen Hoeller 3 years ago
parent
commit
98f152e8d5
  1. 10
      spring-web/src/main/java/org/springframework/http/codec/ClientCodecConfigurer.java
  2. 8
      spring-web/src/main/java/org/springframework/http/codec/ServerCodecConfigurer.java
  3. 2
      spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java

10
spring-web/src/main/java/org/springframework/http/codec/ClientCodecConfigurer.java

@ -84,11 +84,11 @@ public interface ClientCodecConfigurer extends CodecConfigurer { @@ -84,11 +84,11 @@ public interface ClientCodecConfigurer extends CodecConfigurer {
/**
* Configure the {@code Decoder} to use for Server-Sent Events.
* <p>By default if this is not set, and Jackson is available, the
* {@link #jackson2JsonDecoder} override is used instead. Use this property
* if you want to further customize the SSE decoder.
* <p>Note that {@link #maxInMemorySize(int)}, if configured, will be
* applied to the given decoder.
* <p>By default if this is not set, and Jackson is available,
* the {@link #jackson2JsonDecoder} override is used instead.
* Use this method to customize the SSE decoder.
* <p>Note that {@link #maxInMemorySize(int)}, if configured,
* will be applied to the given decoder.
* @param decoder the decoder to use
*/
void serverSentEventDecoder(Decoder<?> decoder);

8
spring-web/src/main/java/org/springframework/http/codec/ServerCodecConfigurer.java

@ -78,15 +78,15 @@ public interface ServerCodecConfigurer extends CodecConfigurer { @@ -78,15 +78,15 @@ public interface ServerCodecConfigurer extends CodecConfigurer {
/**
* {@link CodecConfigurer.DefaultCodecs} extension with extra client-side options.
* {@link CodecConfigurer.DefaultCodecs} extension with extra server-side options.
*/
interface ServerDefaultCodecs extends DefaultCodecs {
/**
* Configure the {@code Encoder} to use for Server-Sent Events.
* <p>By default if this is not set, and Jackson is available, the
* {@link #jackson2JsonEncoder} override is used instead. Use this method
* to customize the SSE encoder.
* <p>By default if this is not set, and Jackson is available,
* the {@link #jackson2JsonEncoder} override is used instead.
* Use this method to customize the SSE encoder.
*/
void serverSentEventEncoder(Encoder<?> encoder);
}

2
spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java

@ -119,7 +119,7 @@ public abstract class AbstractServerHttpResponse implements ServerHttpResponse { @@ -119,7 +119,7 @@ public abstract class AbstractServerHttpResponse implements ServerHttpResponse {
@Override
@Nullable
public Integer getRawStatusCode() {
return this.statusCode != null ? this.statusCode.value() : null;
return (this.statusCode != null ? this.statusCode.value() : null);
}
@Override

Loading…
Cancel
Save