ExceptionHandlingBuilder->ExceptionHandlingSpec

Issue: gh-4822
This commit is contained in:
Rob Winch 2017-11-13 15:57:57 -06:00
parent 903cbd7c35
commit 01154614d1
1 changed files with 6 additions and 6 deletions

View File

@ -101,7 +101,7 @@ public class ServerHttpSecurity {
private CsrfSpec csrf = new CsrfSpec();
private ExceptionHandlingBuilder exceptionHandling = new ExceptionHandlingBuilder();
private ExceptionHandlingSpec exceptionHandling = new ExceptionHandlingSpec();
private HttpBasicBuilder httpBasic;
@ -182,9 +182,9 @@ public class ServerHttpSecurity {
return this.headers;
}
public ExceptionHandlingBuilder exceptionHandling() {
public ExceptionHandlingSpec exceptionHandling() {
if(this.exceptionHandling == null) {
this.exceptionHandling = new ExceptionHandlingBuilder();
this.exceptionHandling = new ExceptionHandlingSpec();
}
return this.exceptionHandling;
}
@ -431,8 +431,8 @@ public class ServerHttpSecurity {
* @author Rob Winch
* @since 5.0
*/
public class ExceptionHandlingBuilder {
public ExceptionHandlingBuilder serverAuthenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint) {
public class ExceptionHandlingSpec {
public ExceptionHandlingSpec serverAuthenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint) {
ServerHttpSecurity.this.serverAuthenticationEntryPoint = authenticationEntryPoint;
return this;
}
@ -441,7 +441,7 @@ public class ServerHttpSecurity {
return ServerHttpSecurity.this;
}
private ExceptionHandlingBuilder() {}
private ExceptionHandlingSpec() {}
}
/**