Interface SearchRequestViewAccessErrorHandler
public interface SearchRequestViewAccessErrorHandler
This interface defines an access error handler for the search request views. This is used
to allow customization of search request permission violation and search request not found
errors.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeErrorHeaders
(RequestHeaders requestHeaders) Prints the HTML headers for non-typial HTML such as Word or Excel views.void
writePermissionViolationError
(Writer writer) Prints the error to display to the users if there has been a permission violation error looking up the SearchRequest that this view is meant to service.void
Prints the error to display to the users if there has been a permission violation error looking up the SearchRequest that this view is meant to service.
-
Field Details
-
PERMISSION_VIOLATION
- See Also:
-
SEARCH_REQUEST_DOES_NOT_EXIST
- See Also:
-
-
Method Details
-
writeErrorHeaders
Prints the HTML headers for non-typial HTML such as Word or Excel views. (e.g.: requestHeaders.addHeader("content-disposition", "attachment;filename="sample.doc";");) This method will be called before either writeSearchRequestDoesNotExistError or writePermissionViolationError.Please make certain that you set the content type and character set in this method.
- Parameters:
requestHeaders
-
-
writePermissionViolationError
Prints the error to display to the users if there has been a permission violation error looking up the SearchRequest that this view is meant to service.- Parameters:
writer
-- Throws:
IOException
-
writeSearchRequestDoesNotExistError
Prints the error to display to the users if there has been a permission violation error looking up the SearchRequest that this view is meant to service.- Parameters:
writer
-- Throws:
IOException
-