/** * Filter the request. * <p> * An implementation may modify the state of the request or * create a new instance. * * @param request the request. * @return the request. */ @Override public ContainerRequest filter(ContainerRequest request) { try { this.authenticateByHttpRequest.authenticate(request); } catch (Exception exception) { LOGGER.error("Authentication Failure. Exception:", exception); throw new AuthenticationException("Authentication failure."); } return request; } }