RequestCacheBuilder->RequestCacheSpec

Issue: gh-4822
This commit is contained in:
Rob Winch 2017-11-13 15:59:12 -06:00
parent eb7edf7092
commit 83d4abb1c6
1 changed files with 5 additions and 5 deletions

View File

@ -105,7 +105,7 @@ public class ServerHttpSecurity {
private HttpBasicSpec httpBasic; private HttpBasicSpec httpBasic;
private final RequestCacheBuilder requestCache = new RequestCacheBuilder(); private final RequestCacheSpec requestCache = new RequestCacheSpec();
private FormLoginBuilder formLogin; private FormLoginBuilder formLogin;
@ -203,7 +203,7 @@ public class ServerHttpSecurity {
return this.logout; return this.logout;
} }
public RequestCacheBuilder requestCache() { public RequestCacheSpec requestCache() {
return this.requestCache; return this.requestCache;
} }
@ -448,10 +448,10 @@ public class ServerHttpSecurity {
* @author Rob Winch * @author Rob Winch
* @since 5.0 * @since 5.0
*/ */
public class RequestCacheBuilder { public class RequestCacheSpec {
private ServerRequestCache requestCache = new WebSessionServerRequestCache(); private ServerRequestCache requestCache = new WebSessionServerRequestCache();
public RequestCacheBuilder requestCache(ServerRequestCache requestCache) { public RequestCacheSpec requestCache(ServerRequestCache requestCache) {
Assert.notNull(requestCache, "requestCache cannot be null"); Assert.notNull(requestCache, "requestCache cannot be null");
this.requestCache = requestCache; this.requestCache = requestCache;
return this; return this;
@ -470,7 +470,7 @@ public class ServerHttpSecurity {
return and(); return and();
} }
private RequestCacheBuilder() {} private RequestCacheSpec() {}
} }
/** /**