Skip to content

Commit

Permalink
Polishing contribution
Browse files Browse the repository at this point in the history
Closes gh-34066
  • Loading branch information
rstoyanchev committed Feb 3, 2025
1 parent 8b07f93 commit 1cea1fe
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2015 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 Down Expand Up @@ -47,26 +47,21 @@ public class ServerResponseResultHandler implements HandlerResultHandler, Initia

private int order = 0;

/**
* Return the configured {@link HttpMessageWriter}'s.
*/
public List<HttpMessageWriter<?>> getMessageWriters() {
return this.messageWriters;
}

/**
* Configure HTTP message writers to serialize the request body with.
* <p>By default this is set to {@link ServerCodecConfigurer}'s default writers.
* <p>By default, this is set to {@link ServerCodecConfigurer}'s default writers.
*/
public void setMessageWriters(List<HttpMessageWriter<?>> configurer) {
this.messageWriters = configurer;
}

/**
* Return the configured {@link ViewResolver}'s.
* Return the configured {@link HttpMessageWriter}'s.
* @since 6.2.3
*/
public List<ViewResolver> getViewResolvers() {
return this.viewResolvers;
public List<HttpMessageWriter<?>> getMessageWriters() {
return this.messageWriters;
}

/**
Expand All @@ -76,9 +71,17 @@ public void setViewResolvers(List<ViewResolver> viewResolvers) {
this.viewResolvers = viewResolvers;
}

/**
* Return the configured {@link ViewResolver}'s.
* @since 6.2.3
*/
public List<ViewResolver> getViewResolvers() {
return this.viewResolvers;
}

/**
* Set the order for this result handler relative to others.
* <p>By default set to 0. It is generally safe to place it early in the
* <p>By default, set to 0. It is generally safe to place it early in the
* order as it looks for a concrete return type.
*/
public void setOrder(int order) {
Expand Down

0 comments on commit 1cea1fe

Please sign in to comment.