public interface HttpValidator
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.channel.Channel channel, ActionListener<Void> listener)
    An async HTTP request validating function that receives as arguments the initial part of a decoded HTTP request (which contains all the HTTP headers, but not the body contents), as well as the netty channel that the request is being received over, and must then call the ActionListener#onResponse method on the listener parameter in case the authentication is to be considered successful, or otherwise call ActionListener#onFailure and pass the failure exception.
  • Method Details

    • validate

      void validate(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.channel.Channel channel, ActionListener<Void> listener)
      An async HTTP request validating function that receives as arguments the initial part of a decoded HTTP request (which contains all the HTTP headers, but not the body contents), as well as the netty channel that the request is being received over, and must then call the ActionListener#onResponse method on the listener parameter in case the authentication is to be considered successful, or otherwise call ActionListener#onFailure and pass the failure exception.