Polishing
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user