Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
4 changed files
with
77 additions
and
36 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/boot/MidPointErrorPageRegistrar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.evolveum.midpoint.web.boot; | ||
|
||
import org.springframework.boot.web.server.ErrorPage; | ||
import org.springframework.boot.web.server.ErrorPageRegistrar; | ||
import org.springframework.boot.web.server.ErrorPageRegistry; | ||
import org.springframework.http.HttpStatus; | ||
|
||
import com.evolveum.midpoint.web.security.MidPointApplication; | ||
|
||
public class MidPointErrorPageRegistrar implements ErrorPageRegistrar { | ||
|
||
@Override | ||
public void registerErrorPages(ErrorPageRegistry registry) { | ||
|
||
registry.addErrorPages( | ||
new ErrorPage(HttpStatus.UNAUTHORIZED, MidPointApplication.MOUNT_UNAUTHORIZED_ERROR), | ||
new ErrorPage(HttpStatus.FORBIDDEN, MidPointApplication.MOUNT_FORBIDEN_ERROR), | ||
new ErrorPage(HttpStatus.NOT_FOUND, MidPointApplication.MOUNT_NOT_FOUND_ERROR), | ||
new ErrorPage(HttpStatus.GONE, MidPointApplication.MOUNT_GONE_ERROR), | ||
new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, MidPointApplication.MOUNT_INTERNAL_SERVER_ERROR)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters